id
stringlengths
32
32
text
stringlengths
0
895k
name
stringlengths
0
33k
domain
stringlengths
5
44
bucket
stringclasses
19 values
answers
list
f89b6839b90c7c0f8bc1e0585d172a83
what can i do if i don't make enough money for my back child support payments?
what if i'm financially unable to make my back child support payments?
utahdivorce.biz
2020.16
[ { "text": "solutions are available for non-custodial parents who are unable to meet child support payments due to financial hardship. but, they're only available if you reach out. common ways of resolving back child support obligations include:\r\n\r\n - petitioning the court for a new, more convenient, payment schedule.\r\n - requesting a settlement with the custodial parent for partial forgiveness of the amount due.\r\n - requesting a temporary suspension on the accrued interest due.\r\n - requesting equitable forgiveness for periods of time when your child resided with you.\r\n - requesting a re-determination if you feel the amount owed is incorrect.\r\n - taking out a personal loan to pay the amount past due.\r\n\r\nall of these options must be run through the family court system and approved before they can take place. any one of these will, however, help prevent the court from taking legal action against you.", "name": "", "is_accepted": true }, { "text": "solutions are available for non-custodial parents who are unable to meet child support payments due to financial hardship. but, they're only available if you reach out. common ways of resolving back child support obligations include:\r\n\r\n - petitioning the court for a new, more convenient, payment schedule.\r\n - requesting a settlement with the custodial parent for partial forgiveness of the amount due.\r\n - requesting a temporary suspension on the accrued interest due.\r\n - requesting equitable forgiveness for periods of time when your child resided with you.\r\n - requesting a re-determination if you feel the amount owed is incorrect.\r\n - taking out a personal loan to pay the amount past due.\r\n\r\nall of these options must be run through the family court system and approved before they can take place. any one of these will, however, help prevent the court from taking legal action against you.", "name": "", "is_accepted": false } ]
80df8a14fd963b72efa4ef6975e84d8c
will action be taken against me if i can't pay my back child support?
what happens if i can't pay my back child support?
utahdivorce.biz
2020.16
[ { "text": "in utah, not paying back child support isn't really an option. the american government requires parents to support their children financially. if you're having trouble meeting your obligations, you must contact the court for help. if you can't pay, and you don't notify the family court, actions will be taken again you. these could include revoking your work or driver's license, garnishing your wages, seizing your annual tax return, or even sentencing you to jail time. if you can't pay your back child support, it's vital to seek legal assistance such as that offered by the law office of david pedrazas.", "name": "", "is_accepted": true }, { "text": "the american government requires parents to support their children financially. if you're having trouble meeting your obligations, you must contact the court for help. if you can't pay, and you don't notify the family court, actions will be taken again you. these could include revoking your work or driver's license, garnishing your wages, seizing your annual tax return, or even sentencing you to jail time. if you can't pay your back child support, it's vital to seek legal assistance such as that offered by the law office of david pedrazas.", "name": "", "is_accepted": false } ]
27349bb5b08996446463f720eb082bfa
what do i have to do to collect back child support?
how do i collect back child support?
utahdivorce.biz
2020.16
[ { "text": "it can be difficult to know what to do if you are owed back child support, but the law office of david pedrazas can advise you on how to collect. you may want to begin at the office of recovery services (ors) in utah to help you collect back child support. the ors helps custodial parents collect back child support and medical support from errant spouses. they can investigate paternity, locate fleeing parents, and modify and enforce court-ordered child support payments. if this fails, the law office of david pedrazas can file a motion for contempt on your behalf. this will bring the non-custodial parent back into the courtroom to resolve the situation.", "name": "", "is_accepted": true }, { "text": "you may want to begin at the office of recovery services (ors) in utah to help you collect back child support. the ors helps custodial parents collect back child support and medical support from errant spouses. they can investigate paternity, locate fleeing parents, and modify and enforce court-ordered child support payments. if this fails, the law office of david pedrazas can file a motion for contempt on your behalf. this will bring the non-custodial parent back into the courtroom to resolve the situation.", "name": "", "is_accepted": false } ]
5b38dc174a0e8c5e080817bf78f6cc12
what needs to be done so i can get paid child support?
how to get paid child support?
utahdivorce.biz
2020.16
[ { "text": "struggling with unpaid back child support utah can make life for you and your children much more difficult. stop struggling and call attorney david pedrazas to take on your case and help you collect back child support today. we'll show you what to do if you are owed back child support, and we'll stay with you every step of the way until your case is resolved.", "name": "", "is_accepted": true }, { "text": "struggling with unpaid back child support utah can make life for you and your children much more difficult. stop struggling and call attorney david pedrazas to take on your case and help you collect back child support today. we'll show you what to do if you are owed back child support, and we'll stay with you every step of the way until your case is resolved.", "name": "", "is_accepted": false } ]
1b594ce69867dad336475d0cd11d5d39
what are the pros and cons of a legal separation vs. a military divorce?
what are the pros and cons of a legal separation vs. a military divorce?
utahdivorce.biz
2021.31
[ { "text": "for various reasons, people may want to postpone or avoid divorce are often to delay or prevent the financial losses that come with divorce for many couples who no longer want to be married. other reasons sometimes include a sense of moral responsibility or religious imperative that may disallow divorce as an option. in such cases, a legal separation may be a preferable temporary alternative to filing for divorce.\r\npros\r\nhealth insurance benefits — you can continue getting health insurance benefits under your spouse’s employer group plan, if you prefer it due to its coverage options.\r\ntax filing benefits — there are numerous benefits of filing income taxes jointly as a married couple, vs. filing a return as a single person. a legal separation allows you to stay married for these tax filing purposes.\r\nmilitary benefits — remaining married entitles you to continue tricare and your military benefits as the spouse of a service person, including health insurance, death benefits, base privileges, etc.\r\nsocial security benefits — if you are married for a minimum of 10 years, when you reach retirement age you will probably qualify for social security benefits that are based on your ex-spouse’s income.\r\nkeep in mind that in some states, legal separation is mandatory prior to divorce. others don’t require it, but they legally recognize it. yet others do not acknowledge a legal separation.\r\ncons\r\na continuing need for cooperation with your ex-spouse remains, although minimal, to communicate through mail about changes in insurance carriers or policies, tax filing information, etc.\r\nas the legal separation remains in force, you do not have the freedom to remarry.\r\n", "name": "", "is_accepted": true }, { "text": "for various reasons, people may want to postpone or avoid divorce are often to delay or prevent the financial losses that come with divorce for many couples who no longer want to be married. other reasons sometimes include a sense of moral responsibility or religious imperative that may disallow divorce as an option. in such cases, a legal separation may be a preferable temporary alternative to filing for divorce.\r\npros\r\nhealth insurance benefits — you can continue getting health insurance benefits under your spouse’s employer group plan, if you prefer it due to its coverage options.\r\ntax filing benefits — there are numerous benefits of filing income taxes jointly as a married couple, vs. filing a return as a single person. a legal separation allows you to stay married for these tax filing purposes.\r\nmilitary benefits — remaining married entitles you to continue tricare and your military benefits as the spouse of a service person, including health insurance, death benefits, base privileges, etc.\r\nsocial security benefits — if you are married for a minimum of 10 years, when you reach retirement age you will probably qualify for social security benefits that are based on your ex-spouse’s income.\r\nkeep in mind that in some states, legal separation is mandatory prior to divorce. others don’t require it, but they legally recognize it. yet others do not acknowledge a legal separation.\r\ncons\r\na continuing need for cooperation with your ex-spouse remains, although minimal, to communicate through mail about changes in insurance carriers or policies, tax filing information, etc.\r\nas the legal separation remains in force, you do not have the freedom to remarry.\r\n", "name": "", "is_accepted": false } ]
ccc49518070e4fada7df0c4ea649242c
how are child custody decisions impacted by a military divorce in utah?
how are child custody decisions impacted by a military divorce in utah?
utahdivorce.biz
2021.31
[ { "text": "although you do not have to forfeit your parental right to be considered by the court to be awarded child custody in a divorce, being deployed can present practical issues. in your military divorce, you will need to work with your spouse to develop a family care plan, and make sure you are clear on your rights under the servicemembers civil relief act (scra), including the possibility of delaying legal proceedings to decide child custody until after you return from your service in a foreign location.\r\n", "name": "", "is_accepted": true }, { "text": "although you do not have to forfeit your parental right to be considered by the court to be awarded child custody in a divorce, being deployed can present practical issues. in your military divorce, you will need to work with your spouse to develop a family care plan, and make sure you are clear on your rights under the servicemembers civil relief act (scra), including the possibility of delaying legal proceedings to decide child custody until after you return from your service in a foreign location.\r\n", "name": "", "is_accepted": false } ]
c5eacb8429376ac3a69f6fb4d6515749
what is the military divorce rate?
what is the military divorce rate?
utahdivorce.biz
2021.31
[ { "text": "for nearly two decades, the divorce rate for members of the military has remained around 3.5% for enlisted people and around 1.7% for officers. some statistical representations for particular segments of the military show that divorce rates for women are significantly higher than for men. but, in the overall numbers, the differences in military divorce rates based on gender do not appear to be significant factors. (2020)", "name": "", "is_accepted": true }, { "text": "for nearly two decades, the divorce rate for members of the military has remained around 3.5% for enlisted people and around 1.7% for officers. some statistical representations for particular segments of the military show that divorce rates for women are significantly higher than for men. but, in the overall numbers, the differences in military divorce rates based on gender do not appear to be significant factors. (2020)", "name": "", "is_accepted": false } ]
5697f16d477ab2ec76484c9912342f5d
how to divorce military husband?
how to divorce military husband?
utahdivorce.biz
2021.31
[ { "text": "to obtain a divorce, the first step is to file a petition for divorce with the family court in utah. then, you must have your spouse served with the petition, or a summons to appear in court, or another form of acceptable documentation for the purpose of notifying him or her.\r\nthe document must be served within 120 days of the date that you filed the petition with the court. or, you may have your spouse served first, and must file afterward with the court within 10 days. in divorces and other civil cases, military members have the benefit of special legal protections preventing court judgments against them for default by failure to provide timely response.\r\nthe social security number is the information needed for locating someone in the military. but, there are various other approaches. the military branches offer assistance in civil matters from their legal assistance attorneys (laas), for military service members and their families. an laa may be able to locate your spouse and convey messages through the chain of command. see additional resources for obtaining a military divorce in utah.\r\n", "name": "", "is_accepted": true }, { "text": "to obtain a divorce, the first step is to file a petition for divorce with the family court in utah. then, you must have your spouse served with the petition, or a summons to appear in court, or another form of acceptable documentation for the purpose of notifying him or her.\r\nthe document must be served within 120 days of the date that you filed the petition with the court. or, you may have your spouse served first, and must file afterward with the court within 10 days. in divorces and other civil cases, military members have the benefit of special legal protections preventing court judgments against them for default by failure to provide timely response.\r\nthe social security number is the information needed for locating someone in the military. but, there are various other approaches. the military branches offer assistance in civil matters from their legal assistance attorneys (laas), for military service members and their families. an laa may be able to locate your spouse and convey messages through the chain of command. see additional resources for obtaining a military divorce in utah.\r\n", "name": "", "is_accepted": false } ]
64b93495b2b409de123c9ea757b3fd75
what happens if my spouse divorces me while i’m deployed?
what happens if my spouse divorces me while i’m deployed?
utahdivorce.biz
2021.31
[ { "text": "military service members on active duty have special protection under the law from judgements of default due to failure to respond to a petition for divorce while they are deployed. further, the active military member must be served directly in person in order for a state court to have legal jurisdiction in the divorce case.\r\n", "name": "", "is_accepted": true }, { "text": "military service members on active duty have special protection under the law from judgements of default due to failure to respond to a petition for divorce while they are deployed. further, the active military member must be served directly in person in order for a state court to have legal jurisdiction in the divorce case.\r\n", "name": "", "is_accepted": false } ]
aa0755e3b4cd6bc09615445d7636e61d
how much will a person enlisted in the military pay in child support?
how much will a person enlisted in the military pay in child support?
utahdivorce.biz
2021.31
[ { "text": "the amount of child support ordered by the court is based on both parents’ incomes. under utah law, courts are normally prohibited from ordering child support that exceeds between 50-60 percent of the military service member’s pay and allowances. the amount awarded to the recipient depends upon variables in the payor’s other child support obligations, and possibly other factors that may be considered. if there are payments in arrearage, the maximum can be set up to 65 percent. (2011)\r\nthis is the same limit applied in civilian child support cases in the state of utah. use the utah child support calculator to help you get a preliminary sense of the general process used to determine the child support amount that may apply in your divorce case.\r\nin the divorce case of a military officer, the judge considers that your qualifying income is not necessarily equal to the amount you must report for federal income tax purposes.\r\n", "name": "", "is_accepted": true }, { "text": "the amount of child support ordered by the court is based on both parents’ incomes. under utah law, courts are normally prohibited from ordering child support that exceeds between 50-60 percent of the military service member’s pay and allowances. the amount awarded to the recipient depends upon variables in the payor’s other child support obligations, and possibly other factors that may be considered. if there are payments in arrearage, the maximum can be set up to 65 percent. (2011)\r\nthis is the same limit applied in civilian child support cases in the state of utah. use the utah child support calculator to help you get a preliminary sense of the general process used to determine the child support amount that may apply in your divorce case.\r\nin the divorce case of a military officer, the judge considers that your qualifying income is not necessarily equal to the amount you must report for federal income tax purposes.\r\n", "name": "", "is_accepted": false } ]
e1c53b04bf3432121a266fedf73a90d6
how much will a person enlisted in the military pay in alimony?
how much will a person enlisted in the military pay in alimony?
utahdivorce.biz
2021.31
[ { "text": "federal laws governing military members do not include guidelines regarding amounts of alimony awards in utah divorce cases. the amount of alimony awarded by the court in a military divorce is based on the same criteria for determining the amount in civilian divorce cases, which is calculated based on a number of financial and other factors involving the recipient and the payer.\r\nconsiderations by the court can include the number of years of the marriage, both spouse’s income capacity, various facts of the history of the marriage, among others questions. the total amount of alimony that can be ordered by the court normally cannot exceed 60 percent of a military service person’s pay. if there are payments in arrearage, the maximum can be set up to 65 percent.\r\n", "name": "", "is_accepted": true }, { "text": "federal laws governing military members do not include guidelines regarding amounts of alimony awards in utah divorce cases. the amount of alimony awarded by the court in a military divorce is based on the same criteria for determining the amount in civilian divorce cases, which is calculated based on a number of financial and other factors involving the recipient and the payer.\r\nconsiderations by the court can include the number of years of the marriage, both spouse’s income capacity, various facts of the history of the marriage, among others questions. the total amount of alimony that can be ordered by the court normally cannot exceed 60 percent of a military service person’s pay. if there are payments in arrearage, the maximum can be set up to 65 percent.\r\n", "name": "", "is_accepted": false } ]
c33318ae37bde95364de1f3f894dd9c8
what does it take to change an unfair child support order?
can i change my unfair child support order?
utahdivorce.biz
2020.16
[ { "text": "it is possible to change an existing child support order. when considering requests for change, the courts put the child’s welfare first. in utah, the court must have jurisdiction to make any changes to an existing order. this can get complicated. if the controlling order was written in another state, utah courts may not be at liberty to make any modifications. if either of the parents resides outside of utah, it may be difficult to make changes as well. before pursuing this course of action, establish whether the utah courts can act on your behalf.\r\n\r\neven if you and your child’s other parent have agreed to the change, it requires a court order from a judge to become official. in case of a disagreement, you will likely need a lawyer to represent your side of the argument. the judge listens to both sides and makes a determination of whether to change the order based on the evidence presented.", "name": "", "is_accepted": true }, { "text": "it is possible to change an existing child support order. when considering requests for change, the courts put the child’s welfare first. in utah, the court must have jurisdiction to make any changes to an existing order. this can get complicated. if the controlling order was written in another state, utah courts may not be at liberty to make any modifications. if either of the parents resides outside of utah, it may be difficult to make changes as well. before pursuing this course of action, establish whether the utah courts can act on your behalf.\r\n", "name": "", "is_accepted": false } ]
9c851c47f19c724ec56ba59a9c352e4c
how can i change a child support order?
how can i change a child support order?
utahdivorce.biz
2020.16
[ { "text": "parents may wish to modify existing child support payments. doing so requires a court order. this means a judge must approve changes or agreements to change an order. there are two ways to modify a child support order in utah. first, you can file a motion to modify child support. second, you can file a petition to modify child support. in most cases, you will file a petition. however, there or some circumstances where a motion is appropriate. a motion does not require delivery by mail, as a petition does. you can deliver a motion via mail, email or hand delivery.\r\n\r\na child support order can be modified if it’s more than three years old or if:\r\n\r\n - the difference between child support need and provided is more than 10%\r\n - the different is permanent\r\n - the proposed child support follows the guidelines", "name": "", "is_accepted": true }, { "text": "parents may wish to modify existing child support payments. doing so requires a court order. this means a judge must approve changes or agreements to change an order. there are two ways to modify a child support order in utah. first, you can file a motion to modify child support. second, you can file a petition to modify child support. in most cases, you will file a petition. however, there or some circumstances where a motion is appropriate. a motion does not require delivery by mail, as a petition does. you can deliver a motion via mail, email or hand delivery.\r\n\r\na child support order can be modified if it’s more than three years old or if:\r\n\r\n - the difference between child support need and provided is more than 10%\r\n - the different is permanent\r\n - the proposed child support follows the guidelines", "name": "", "is_accepted": false } ]
7ff921902e774e76745b0a3ba5ebaa09
in an emergency, can the child support order be changed?
in a temporary emergency, can the child support order change?
utahdivorce.biz
2020.16
[ { "text": "modifications are possible and become necessary if either parent’s financial or other circumstances change. they also result in case of a change in the child’s health condition. if one parent loses their job or has a medical emergency, the support agreement may change.", "name": "", "is_accepted": true }, { "text": "modifications are possible and become necessary if either parent’s financial or other circumstances change. they also result in case of a change in the child’s health condition. if one parent loses their job or has a medical emergency, the support agreement may change.", "name": "", "is_accepted": false } ]
c2801a03cad82512cf46ae80e15737f1
when does a child support order change permanently?
when does a child support order change permanently?
utahdivorce.biz
2020.16
[ { "text": "a child support order can change permanently following a material change of one of the following:\r\n\r\n - custody\r\n - relative wealth or assets\r\n - 30% of a parent’s income\r\n - ability to earn permanently changes, such as a disability\r\n - medical needs of the child\r\n - legal responsibility a parent has for others\r\n - cost of health care\r\n - child care costs\r\n - the child becomes emancipated or turns 18\r\n\r\ncontact a lawyer if any of these elements occurs and you need a judgment to end or change the amount of support paid.", "name": "", "is_accepted": true }, { "text": "a child support order can change permanently following a material change of one of the following:\r\n\r\n - custody\r\n - relative wealth or assets\r\n - 30% of a parent’s income\r\n - ability to earn permanently changes, such as a disability\r\n - medical needs of the child\r\n - legal responsibility a parent has for others\r\n - cost of health care\r\n - child care costs\r\n - the child becomes emancipated or turns 18\r\n\r\ncontact a lawyer if any of these elements occurs and you need a judgment to end or change the amount of support paid.", "name": "", "is_accepted": false } ]
117b0b526e46beb49b298bc2b1316974
can i modify my child support order without going to court?
can i modify my child support order without going to court?
utahdivorce.biz
2020.16
[ { "text": "yes. some judges include a cost of living allowance in their child support orders. if your order includes this, the increase occurs automatically without the intercession of a judge. instead, the payment amount increases or decreases with the cola referenced in the order.", "name": "", "is_accepted": true }, { "text": "yes. some judges include a cost of living allowance in their child support orders. if your order includes this, the increase occurs automatically without the intercession of a judge. instead, the payment amount increases or decreases with the cola referenced in the order.", "name": "", "is_accepted": false } ]
15a2c35a6d8d94d51ec9b8d2131b72a0
what is adoption?
what is adoption?
utahdivorce.biz
2020.40
[ { "text": "adoption is the steps required to become the legal guardians of a child. this is a process through which the adoptive parent will assume the legal responsibility for a child. of note, the biological parents have to either give up their child or have their parental rights stripped. in other cases, the biological parents might pass away.\r\n", "name": "", "is_accepted": true }, { "text": "adoption is the steps required to become the legal guardians of a child. this is a process through which the adoptive parent will assume the legal responsibility for a child. of note, the biological parents have to either give up their child or have their parental rights stripped. in other cases, the biological parents might pass away.\r\n", "name": "", "is_accepted": false } ]
07efc2d686fee8e627d78b90e7a1089c
how adoption works?
how adoption works?
utahdivorce.biz
2020.40
[ { "text": "while the system of adoption in utah varies from state to state, adoption processes usually go through a court of law. adoptive parents have to show the court that they can provide a safe, loving environment in which they can raise a child. they also have to prove that the child does not currently have legal guardians or that the current guardians are unfit.\r\n", "name": "", "is_accepted": true }, { "text": "while the system of adoption in utah varies from state to state, adoption processes usually go through a court of law. adoptive parents have to show the court that they can provide a safe, loving environment in which they can raise a child. they also have to prove that the child does not currently have legal guardians or that the current guardians are unfit.\r\n", "name": "", "is_accepted": false } ]
02e00b76ebeff4156f7218f2febc9557
who can be adopted?
who can be adopted?
utahdivorce.biz
2020.40
[ { "text": "any child who is under the age of 18 can be adopted as long as they do not have any current legal guardians or if the legal guardians are proven to be unfit to raise a child.\r\n", "name": "", "is_accepted": true }, { "text": "any child who is under the age of 18 can be adopted as long as they do not have any current legal guardians or if the legal guardians are proven to be unfit to raise a child.\r\n", "name": "", "is_accepted": false } ]
b6957c6164f8bcc97b8db17ef1e08187
who can adopt?
who can adopt?
utahdivorce.biz
2020.40
[ { "text": "anyone who is at least 21 years of age can adopt a child; however, any potential legal guardian must be able to prove to the court how and why that individual (or set of potential parents) should be allowed to adopt a child.\r\n", "name": "", "is_accepted": true }, { "text": "anyone who is at least 21 years of age can adopt a child; however, any potential legal guardian must be able to prove to the court how and why that individual (or set of potential parents) should be allowed to adopt a child.\r\n", "name": "", "is_accepted": false } ]
ba27866e797d85043116a789655bcc99
what is the process of adopting a child in utah?
what is the process of adopting a child in utah?
utahdivorce.biz
2020.40
[ { "text": "first, potential parents have to file the requisite paperwork with the courts. in most cases, there will also be a hearing to prove that the potential adoptive parents are a good fit for the child. finally, the judge will deliver his or her decision and sign the legal order if the potential parents are approved.\r\n", "name": "", "is_accepted": true }, { "text": "first, potential parents have to file the requisite paperwork with the courts. in most cases, there will also be a hearing to prove that the potential adoptive parents are a good fit for the child. finally, the judge will deliver his or her decision and sign the legal order if the potential parents are approved.\r\n", "name": "", "is_accepted": false } ]
765a6b4e60c2aff03ea11bc63891b9ae
what does adoption lawyer do?
what does adoption lawyer do?
utahdivorce.biz
2020.40
[ { "text": "if you are looking for adoption lawyers near me, then you should know that a family law attorney will specialize in the legal services that are required to guide someone through the adoption process. there is a lot of paperwork that goes along with the adoption process and a family law firm will help potential parents make the strongest case possible for the adoption of a child. \r\n", "name": "", "is_accepted": true }, { "text": "if you are looking for adoption lawyers near me, then you should know that a family law attorney will specialize in the legal services that are required to guide someone through the adoption process. there is a lot of paperwork that goes along with the adoption process and a family law firm will help potential parents make the strongest case possible for the adoption of a child. \r\n", "name": "", "is_accepted": false } ]
36e2cceec1f480ee0606eeb691624f08
how much does it cost to adopt a child?
how much does it cost to adopt a child?
utahdivorce.biz
2020.40
[ { "text": "while the cost of adopting a minor in utah will vary, this usually costs a few thousand dollars; however, this only includes court costs and potential legal fees. at the same time, it is also important for families to be familiar with some of the costs that will go along with raising a child. some of the most common costs that accompany raising a child include education, healthcare, food, clothing, and extracurricular activities. proving financial stability is one of the most important aspects of winning an adoption case.\r\n", "name": "", "is_accepted": true }, { "text": "while the cost of adopting a minor in utah will vary, this usually costs a few thousand dollars; however, this only includes court costs and potential legal fees. at the same time, it is also important for families to be familiar with some of the costs that will go along with raising a child. some of the most common costs that accompany raising a child include education, healthcare, food, clothing, and extracurricular activities. proving financial stability is one of the most important aspects of winning an adoption case.\r\n", "name": "", "is_accepted": false } ]
b9e498172dd16413aeabf02192e6951b
what are the requirements for adopting a child?
what are the requirements for adopting a child?
utahdivorce.biz
2020.40
[ { "text": "in order to adopt a child in utah, potential parents must be at least 10 years older than the child being adopted. adoptive parents need to show that they have a safe place to raise a child and that they can financially support a child. if adoptive parents are related to the child in some way, this will strengthen the adoption case.\r\n", "name": "", "is_accepted": true }, { "text": "in order to adopt a child in utah, potential parents must be at least 10 years older than the child being adopted. adoptive parents need to show that they have a safe place to raise a child and that they can financially support a child. if adoptive parents are related to the child in some way, this will strengthen the adoption case.\r\n", "name": "", "is_accepted": false } ]
0552cf4c99c726c14aa12f7951976142
how long does it take to adopt a child?
how long does it take to adopt a child?
utahdivorce.biz
2020.40
[ { "text": "an adoption process usually takes a few months; however, the process could range and vary with the court's schedule and ancillary issues that might arise.\r\n", "name": "", "is_accepted": true }, { "text": "an adoption process usually takes a few months; however, the process could range and vary with the court's schedule and ancillary issues that might arise.\r\n", "name": "", "is_accepted": false } ]
3f07015acaef39962ac0e633c35f0e27
can you adopt a newborn baby?
can you adopt a newborn baby?
utahdivorce.biz
2020.40
[ { "text": "absolutely, adoptive parents can apply for the legal rights of a newborn. in some cases, these proceedings start before the baby is born.\r\n", "name": "", "is_accepted": true }, { "text": "absolutely, adoptive parents can apply for the legal rights of a newborn. in some cases, these proceedings start before the baby is born.\r\n", "name": "", "is_accepted": false } ]
d64d8a22c191d139ae65359c1430f2e8
can you adopt twins?
can you adopt twins?
utahdivorce.biz
2020.40
[ { "text": "yes, adoptive parents can adopt twins. courts often like to keep siblings together.\r\n", "name": "", "is_accepted": true }, { "text": "yes, adoptive parents can adopt twins. courts often like to keep siblings together.\r\n", "name": "", "is_accepted": false } ]
96f914762852d98a35d341f7fc37b278
can parents reclaim an adopted child?
can parents reclaim an adopted child?
utahdivorce.biz
2020.40
[ { "text": "if a child has been legally adopted, then parents cannot reclaim their legal rights.\r\n", "name": "", "is_accepted": true }, { "text": "if a child has been legally adopted, then parents cannot reclaim their legal rights.\r\n", "name": "", "is_accepted": false } ]
3167902111c4d1476fe7a87f09ed97df
do birth parents have any rights after adoption?
do birth parents have any rights after adoption?
utahdivorce.biz
2020.40
[ { "text": "birth parents will not have any legal rights over a child who has been adopted.\r\n", "name": "", "is_accepted": true }, { "text": "birth parents will not have any legal rights over a child who has been adopted.\r\n", "name": "", "is_accepted": false } ]
6fc4d8dcdde39e04a102235b4d799541
can you adopt a child as a single parent?
can you adopt a child as a single parent?
utahdivorce.biz
2020.40
[ { "text": "yes, single parents can adopt a child.\r\n", "name": "", "is_accepted": true }, { "text": "yes, single parents can adopt a child.\r\n", "name": "", "is_accepted": false } ]
ce98a049e2e1a5e04248ef3a7283201c
when should i contact an attorney about child custody mediation?
when should i contact an attorney about child custody mediation?
utahdivorce.biz
2020.05
[ { "text": "knowing when to contact an attorney regarding child custody mediation might be difficult. we recommend contacting them if you’re involved in a dispute about the custody of your child. these mediation professionals can assist parents with finding a custody plan that both parties can agree with. after you’ve tried to reach an agreement on countless occasions and you are unsuccessful, then it may be time to contact an attorney for mediation.", "name": "", "is_accepted": true }, { "text": "knowing when to contact an attorney regarding child custody mediation might be difficult. we recommend contacting them if you’re involved in a dispute about the custody of your child. these mediation professionals can assist parents with finding a custody plan that both parties can agree with. after you’ve tried to reach an agreement on countless occasions and you are unsuccessful, then it may be time to contact an attorney for mediation.", "name": "", "is_accepted": false } ]
a25bee0c247670f3490d0da76b95db7e
what does a child custody mediator do?
what does a child custody mediator do?
utahdivorce.biz
2020.05
[ { "text": "a child custody mediator is typically a skilled and experienced attorney that helps those dealing with child custody disputes. this mediation happens outside the courtroom in order for the parents to work together to find a custody plan that works for them and their child. the basis of these mediators is that they are a neutral party and never choose a side, so they can work with both parents to help come to an agreement that works in the best interest of the child.", "name": "", "is_accepted": true }, { "text": "a child custody mediator is typically a skilled and experienced attorney that helps those dealing with child custody disputes. this mediation happens outside the courtroom in order for the parents to work together to find a custody plan that works for them and their child. the basis of these mediators is that they are a neutral party and never choose a side, so they can work with both parents to help come to an agreement that works in the best interest of the child.", "name": "", "is_accepted": false } ]
09857808692e4d6f0a71ce6b784dd908
how long does child custody mediation take?
how long does child custody mediation take?
utahdivorce.biz
2020.05
[ { "text": "the time it takes for child custody mediation depends on many factors. however, on many occasions, mediation can be completed within three months. parents can set their own schedule with the mediator to make appointments when they’re available, so it’s common for the mediation to run longer than three months. however, if the mediation appointments are successful from the start, the completion of mediation might only last a month or two. it all depends on the accomplishments and progress made within these meetings and if both parties can come to an agreement.", "name": "", "is_accepted": true }, { "text": "the time it takes for child custody mediation depends on many factors. however, on many occasions, mediation can be completed within three months. parents can set their own schedule with the mediator to make appointments when they’re available, so it’s common for the mediation to run longer than three months. however, if the mediation appointments are successful from the start, the completion of mediation might only last a month or two. it all depends on the accomplishments and progress made within these meetings and if both parties can come to an agreement.", "name": "", "is_accepted": false } ]
7fdff7b2bc9143b9c984022baa09625f
what is the difference between child custody mediation and litigation?
what is the difference between child custody mediation and litigation?
utahdivorce.biz
2020.05
[ { "text": "in simple terms, child custody litigation involves the courts and mediation does not. under litigation, each party has their own attorney that will fight on their behalf in court. for child custody mediation, instead of working against each other, parents are working together to come to an agreement about their custody of their child. the decisions made under litigation fall into the hands of the court, but mediation involves the parents consulting together to come to an agreement before the courts are involved.", "name": "", "is_accepted": true }, { "text": "in simple terms, child custody litigation involves the courts and mediation does not. under litigation, each party has their own attorney that will fight on their behalf in court. for child custody mediation, instead of working against each other, parents are working together to come to an agreement about their custody of their child. the decisions made under litigation fall into the hands of the court, but mediation involves the parents consulting together to come to an agreement before the courts are involved.", "name": "", "is_accepted": false } ]
f88e6a191a4c105775fb4efe9756188e
what are the possible outcomes of child custody mediation?
what are the outcomes of child custody mediation?
utahdivorce.biz
2020.05
[ { "text": "the outcomes of child custody mediation vary greatly from situation to situation. in fact, sometimes mediation doesn’t work at all, which could lead to a very troublesome and argumentative court visit. however, many times the mediation process is very effective and parents are able to come to an agreement. the mediator will work with the two parties to discuss their needs and concerns, and the child is also encouraged to join the discussions.", "name": "", "is_accepted": true }, { "text": "the outcomes of child custody mediation vary greatly from situation to situation. in fact, sometimes mediation doesn’t work at all, which could lead to a very troublesome and argumentative court visit. however, many times the mediation process is very effective and parents are able to come to an agreement. the mediator will work with the two parties to discuss their needs and concerns, and the child is also encouraged to join the discussions.", "name": "", "is_accepted": false } ]
ac982c48f3269949533d91088a2bb02c
how does child custody mediation work in a contested divorce?
how does child custody mediation work in a contested divorce?
utahdivorce.biz
2020.05
[ { "text": "a contested divorce is when both parties cannot come to an agreement over the custody of their child. however, it’s important to understand that child custody can still be successful—it just might require more work. a contested divorce can stem from many disagreements, whether it involves the division of assets, alimony, or allocation of debts. however, child custody mediation strictly involves child custody, so that should be the focus at these appointments. so although more difficult, mediation can still be successful in contested divorce cases.", "name": "", "is_accepted": true }, { "text": "a contested divorce is when both parties cannot come to an agreement over the custody of their child. however, it’s important to understand that child custody can still be successful—it just might require more work. a contested divorce can stem from many disagreements, whether it involves the division of assets, alimony, or allocation of debts. however, child custody mediation strictly involves child custody, so that should be the focus at these appointments. so although more difficult, mediation can still be successful in contested divorce cases.", "name": "", "is_accepted": false } ]
9fddbeede7d0af2ecb968b3529de7847
when does child custody mediation happen?
when does child custody mediation happen?
utahdivorce.biz
2020.05
[ { "text": "child custody mediation typically happens after both parties have requested and responded to discovery requests, which is intended for both parties to learn more information about the opposing party, including answers to their questions, documents, and other evidence that is relevant.", "name": "", "is_accepted": true }, { "text": "child custody mediation typically happens after both parties have requested and responded to discovery requests, which is intended for both parties to learn more information about the opposing party, including answers to their questions, documents, and other evidence that is relevant.", "name": "", "is_accepted": false } ]
34b53159cda7109119cb5c137cf928d8
what is the cost of a divorce?
how much does a divorce cost?
utahdivorce.biz
2019.47
[ { "text": "it will depend on the particulars of the case and if it goes to trial. one of the best ways to invest your money is with a reputable divorce lawyer with a proven track record. this sets the foundation for a smooth divorce with an equitable outcome. other professionals, such as accountants and divorce mediators also add to the expenses. each of these professionals must be paid in order for your divorce to progress toward a resolution. other costs of divorce include the following:\r\n• moving expenses\r\n• possible child support (if applicable)\r\n• possible alimony costs\r\n• lost time at work due to meetings and court dates\r\nmediation and collaborative procedures can reduce the stress of a divorce. plenty of people favor this procedure over traditional litigation because they don't want to drain their savings. mediation can reduce the total cost of divorce as each side pays half the cost of mediation services. most divorces, especially those that go to trial, cost much more. \r\na collaborative divorce is also cheaper. the parties to work together to divide assets and agree to a co-parenting plan. the collaborative procedure pairs each party with a matrimonial attorney like a traditional divorce. the lawyers guide their clients through a collaborative process toward mutually beneficial results.\r\n", "name": "", "is_accepted": true }, { "text": "the cost of a divorce will depend on the particulars of the case and if it actually goes to trial. ", "name": "", "is_accepted": false } ]
fbdd3a0e47a466c26d2fa394760b0a64
do you need a divorce lawyer?
do i need a lawyer for divorce?
utahdivorce.biz
2019.47
[ { "text": "no, utah law does not require divorcing parties to have an attorney. however, a divorce attorney is an expert in utah divorce law and knows how divorce is handled in your jurisdiction. in addition, a divorce attorney knows the best time and manner to file petitions and court motions. there's a ton of paperwork involved that you have to get right the first time. involving a lawyer gives you peace of mind and a guiding hand when you are emotionally vulnerable. having an impartial third party to explain how the division of property, spousal support and custody work makes the process much easier.", "name": "", "is_accepted": true }, { "text": "utah law does not require divorcing parties to have an attorney. however, a divorce attorney is an expert in utah divorce law and knows how divorce is handled in your jurisdiction. ", "name": "", "is_accepted": false } ]
1d9e3b66b790d191b6ea6d368167a100
advice on choosing a divorce lawyer
how do i choose a divorce lawyer?
utahdivorce.biz
2019.47
[ { "text": "most lawyers offer a legal case review, and that gives you the opportunity to see if they have the qualities you are looking for, such as:\r\n• ability to communicate well\r\n• skill and experience. they will be touching upon your finances, family life and retirement\r\n• available and have support staff to help when they're busy", "name": "", "is_accepted": true }, { "text": "most lawyers offer a legal case review and that gives you the opportunity to see if they have the qualities you are looking for.", "name": "", "is_accepted": false } ]
5ba5132075a8596116249a6a90a4ece1
what to ask a divorce lawyer
what do i need to ask a divorce lawyer?
utahdivorce.biz
2019.47
[ { "text": "here's an idea of what to ask a divorce lawyer in the initial consultation:\r\n• how many divorces have you handled?\r\n• will any other lawyers to working on my case? can i meet with them?\r\n• what's your initial opinion of my case?\r\n• how do think a judge would rule in my case?\r\nasking good questions is the best advice on how to choose a divorce lawyer.", "name": "", "is_accepted": true }, { "text": "here's an idea of what to ask a divorce lawyer in the initial consultation.", "name": "", "is_accepted": false } ]
3d5186aedfb23d57498aa82601d06761
can both sides in a divorce use the same lawyer?
can a lawyer represent both sides in a divorce?
utahdivorce.biz
2019.47
[ { "text": "no, a lawyer can not represent both sides, even in an uncontested divorce. it's a conflict of interest.", "name": "", "is_accepted": true }, { "text": "no, a lawyer can not represent both sides of a divorce. ", "name": "", "is_accepted": false } ]
ba39c458ff11426ce67d8ab90f2c7337
what to bring when meeting with divorce lawyer for the first time.
what do i need to bring when meeting with divorce lawyer for the first time?
utahdivorce.biz
2019.47
[ { "text": "here's what to bring to divorce lawyer consultations. you should bring financial and legal documents, such as prenups, birth certificates, and other legal documents. you'll also need your paystubs, tax returns and any proof of infidelity or other wrongdoing. your attorney will let you know during your legal case review.", "name": "", "is_accepted": true }, { "text": "you should bring financial and legal documents and other legal documents. \r\n\r\nyou'll also need your paystubs, tax returns and any proof of infidelity or other wrong doing. \r\n", "name": "", "is_accepted": false } ]
769e04bc4bf534aeaf68831189a1fced
what do family and divorce lawyers do?
what does a family and divorce lawyer do?
utahdivorce.biz
2019.47
[ { "text": "a salt lake city family and divorce attorney will guide you to make the best decisions for your case. they advise on legal matters, file appropriate paperwork, create a plan to settle alimony, child support and custody agreements. other matters may arise in more complex cases when you will be glad you have a professional on your side to help things run smoothly.", "name": "", "is_accepted": true }, { "text": "a family and divorce attorney will guide you to make the best decisions for your case.", "name": "", "is_accepted": false } ]
e24ec175ec1bee976068d65919e9ec28
how do i begin a divorce?
how do i begin the divorce process?
utahdivorce.biz
2019.47
[ { "text": "you begin the divorce process by meeting with a lawyer who can protect and represent you. a divorce attorney can advise you on crucial items that come up in the beginning of the process such as if you should move out of your family home, obtaining protective orders, and temporary child custody arrangements. arguably, you should meet with a lawyer before you talk to your spouse in order to talk through your options and learn how to begin divorce process legally.", "name": "", "is_accepted": true }, { "text": "you begin the divorce process by meeting with a lawyer who can protect and represent you. ", "name": "", "is_accepted": false } ]
23d17bb14b307489368b4b786928d806
how long does a divorce take?
how long does the divorce process take?
utahdivorce.biz
2019.47
[ { "text": "utah divorces take a minimum of 90 days. strong disagreements regarding assets and child custody may take longer. under special circumstances, your attorney may request the court to waive the waiting period.", "name": "", "is_accepted": true }, { "text": "utah divorces take a minimum of 90 days. ", "name": "", "is_accepted": false } ]
bcb80e17da9353d94218f3d0829c23b3
<div class="sect4"> <h5 id="\_c\_インターフェースの質問">c ++インターフェースの質問</h5> <div class="paragraph"> <p>私は持っています</p> </div> <div class="paragraph"> <p>internalitems.hppというヘッダーファイルを持つパッケージa(名前空間a)には、作成するアイテムの列挙と、アイテムタイプを取得および設定するメソッドを含むクラスが含まれています。 ここで、このクラスを共通パッケージ(namespace commonと共通のパッケージ)で使用できるようにして、他のパッケージ(名前空間euserのpackage enduserと言います)が列挙型を使用できるようにします。</p> </div> <div class="paragraph"> <p>それを行う最善の方法は何ですか? 貴重なご回答ありがとうございます。</p> </div> </div>
c ++インターフェースの質問
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>internalitems.hppのクラスと列挙型をcommonライブラリのeuserプロジェクトに公開する方法を尋ねていると思います。</p>\n</div>\n<div class=\"paragraph\">\n<p>どのプロジェクトにいても、その中で定義されている列挙型またはクラスを使用する必要があるファイルには、 `#include\" internalitems.hpp \"`が必要になります。 その場合、internalitemsがライブラリ消費者に公開されていない内部ヘッダーファイルである場合、共通ライブラリインターフェイスヘッダーの一部になるように昇格するか、少なくとも外部コードは、パブリックヘッダーファイルに使用する必要があります。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
18f2141c9e191f44bad6a92a11d8b89e
<div class="paragraph"> <p>beginconnectを使用してサーバーに接続しようとしていますが、誤ったipaddressまたはportを指定した場合にsocketexceptionが発生します。</p> </div> <div class="paragraph"> <p>問題は、私のtry / catchがexceptionをキャッチしないことです。</p> </div> <div class="literalblock"> <div class="content"> <pre>プライベートvoid onconnect(iasyncresult result){try {socket.endconnect(result);} status = status.waitack; socket.beginreceive(buffer、0、buffer.length、socketflags.none、ondataready、null); catch(exception ex){if(connectionerror!= null)connectionerror(これ、新しいopenwebneterroreventargs(ex)); }}</pre> </div> </div> <div class="paragraph"> <p>socket.endconnectメソッドvsを呼び出すと、例外が報告されてプログラムがブロックされます。</p> </div> <div class="paragraph"> <p>どうすれば処理できますか?</p> </div> <div class="paragraph"> <p>ありがとうフェデリコ</p> </div>
endconnect例外
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>あなたはデバッガの下でプログラムを実行していますか? もしそうなら、あなたはどちらか投げられている例外でブレークするためにvsを持っているか、投げられているsocketexceptionでブレークします</p>\n</div>\n<div class=\"paragraph\">\n<p>それを修正した場合(その例外の \"throw\"列のチェックを外して)、それはあなたのcatchハンドラが実行できるようにするべきです。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
0907893a8d1cd14cceb7d24d4bce225c
<div class="sect4"> <h5 id="\_更新後にdatagridを同じスクロール位置に維持する方法は">更新後にdatagridを同じスクロール位置に維持する方法は?</h5> <div class="paragraph"> <p>coldfusionサーバーからのデータで60秒ごとに更新されるカスタム ``があります。 datagridが更新および再描画されるたびにスクロール位置が上部にリセットされることに気付きました。</p> </div> <div class="paragraph"> <p>datagridのスクロール位置を保持する方法はありますか?</p> </div> <div class="paragraph"> <p>前もって感謝します。</p> </div> </div>
更新後にdatagridを同じスクロール位置に維持する方法は?
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p><a href=\"http://livedocs.adobe.com/flex/3/langref/mx/core/scrollcontrolbase.html#verticalscrollposition\">verticalscrollposition</a>を使用できると確信しています。 更新前に保存し、更新後にリセットします。 dataproviderを変更する場合、verticalscrollpositionが古いデータプロバイダーと新しいデータプロバイダーの同じ場所を指していない可能性があることに注意してください。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>もう少し詳しく説明します。 私がこれをした方法は、scrollposという変数を作成してから</p>\n</div>\n<div class=\"paragraph\">\n<p><code>私は使用しました</code></p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>scroll=\"scrollpos=someid.verticalscrollposition\"</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>次に、dataproviderが更新された後、関数を呼び出します。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>private function setscrollposition() : void {\n someid.verticalscrollposition = scrollpos;\n}</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>または、関数を呼び出す代わりに変数を設定することもできます。</p>\n</div>\n", "name": "", "is_accepted": false } ]
5e497df76249461de5afb7faf3a345f5
<div class="sect4"> <h5 id="\_net\_3\_5でstringbuilderを再び空にする方法は">.net 3.5でstringbuilderを再び空にする方法は?</h5> <div class="paragraph"> <p>特定の条件に基づいて文字列値を作成するループがあります。 stringbuilderオブジェクトをループの外側に配置しました。ループに新しい行があるたびに、この行のstringbuilderの追加値をクリアする必要があります。</p> </div> <div class="paragraph"> <p>それらをクリアするにはどうすればよいですか?</p> </div> <div class="literalblock"> <div class="content"> <pre> stringbuilder sb = new stringbuilder(); foreach (datarow row in recipientslist.rows) { sb.length = 0; sb.append(""); if (row["needstoactivate"] == "1") { sb.appendformat("{0}", getuserswithoutactivationtemplate()); } if (row["needstoentersite"] == "1") { sb.appendformat("{0}", getuserswithoutenteringwebsitefortwoweekstemplate()); } if (row["needspicture"] == "1") { sb.appendformat("{0}", getuserswithoutpicturestemplate()); } if (row["needstext"] == "1") { sb.appendformat("{0}", getuserswithouttexttemplate()); } if (row["needscharacteristic"] == "1") { sb.appendformat("{0}", getuserswithoutcharateristicstemplate()); } if (row["needshobby"] == "1") { sb.appendformat("{0}", getuserswithouthobbiestemplate()); } sb.append(""); }</pre> </div> </div> <div class="paragraph"> <p>受け入れられた回答を含むコード。</p> </div> </div>
.net 3.5でstringbuilderを再び空にする方法は?
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>簡単にできます。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>sb.length = 0;</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>`stringbuilder.clear();`はあなたが望むものです。</p>\n</div>\n", "name": "", "is_accepted": false } ]
79b7ab1ec6ef835012a4fdaacde8d9f5
<div class="paragraph"> <p>firefoxのプラグインが特定のリクエストを傍受し、ネットワークにアクセスすることなくそれらに応答する方法はありますか?</p> </div> <div class="paragraph"> <p>例:ブラウザがhttp://www.example.com/page.htmlを要求しようとするたびに、プラグインは自動的に "hello world!"を返します。そのページの</p> </div> <div class="paragraph"> <p>乾杯!</p> </div>
特定のhttpリクエストを傍受するfirefoxプラグイン
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p><a href=\"https://addons.mozilla.org/pt-br/firefox/addon/966\" class=\"bare\">https://addons.mozilla.org/pt-br/firefox/addon/966</a> [tamper data]は良いものです。</p>\n</div>\n<div class=\"paragraph\">\n<p><em><em>\\_ </em>\\_</em>\ntamperdataを使用して、http / httpsヘッダーを表示および変更し、パラメーターを送信します。</p>\n</div>\n<div class=\"paragraph\">\n<p>postパラメータを変更してwebアプリケーションのセキュリティをテストします。\n<em><em>\\_ </em>\\_</em></p>\n</div>\n<div class=\"paragraph\">\n<p>改ざんデータソースをチェックアウトして拡張機能がどのように機能するかをhttp://tamperdata.mozdev.org/source.html[mozdev]で確認してアイデアを借りるか、 `adamsplugins [at] gmail {dotで作者に連絡することができます。 }コム。</p>\n</div>\n<div class=\"paragraph\">\n<p>それがまさにあなたが探しているものかどうか私は知りませんが、それは本当に強力です。 私はそれをhttps://addons.mozilla.org/pt-br/firefox/addon/1843 [firebug]でよく使っているので、あなたはその場であなたのページを編集していくつかの動作をテストすることができます。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>回答を変更したい場合は、fiddlerがあなたの友達です。 ライブラリを変更したり、スクリプトを自分の意思で追加することもできます。</p>\n</div>\n<div class=\"paragraph\">\n<p><a href=\"http://fiddler2.com/fiddler2/\" class=\"bare\">http://fiddler2.com/fiddler2/</a></p>\n</div>\n", "name": "", "is_accepted": false } ]
e6b6504689c2c884834707b69e097c02
<div class="sect4"> <h5 id="\_sql\_server\_2005データベースをあるサーバーから別のサーバーに手動プログラムでコピーする方法">sql server 2005:データベースをあるサーバーから別のサーバーに(手動/プログラムで)コピーする方法</h5> <div class="paragraph"> <p>私はsql2005-dbを使用するasp.net-appを開発しています-時々、開発環境からテストまたは本番環境に、またはその逆にdbをコピーする必要があります。 sql2000では、それを行うためのバッチをいくつか作成しましたが、2005年にそれを行う方法を見つける時間がなく、手動で実行しました。 sql mgmnt studioでは、両方のデータベースをデタッチし、mdf + ldf-filesを1つのサーバーから別のサーバーにコピーしてから、ファイルを再アタッチします。 これは1〜2回は機能しましたが、コピーされたデータベースをアタッチすると突然readonly-modeになります。これは実際には役に立ちません。</p> </div> <div class="paragraph"> <p>なぜそれが起こっているのですか、私は何か間違ったことをしているのですか?それをどのように回避できますか? そして、誰かがそれを行うための.batを持っている場合、さらに良い! ;)</p> </div> </div>
sql server 2005:データベースをあるサーバーから別のサーバーに(手動/プログラムで)コピーする方法
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>これを手動で行うには、http://msdn.microsoft.com/en-us/library/ms188664(sql.90).aspx [データベースコピーウィザード]を使用します。</p>\n</div>\n<div class=\"paragraph\">\n<p>management studioでデータベースを右クリックし、[タスク]&gt; [データベースのコピー&#8230;&#8203;]を選択して開始します。 ポップアップメニューから。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
8d64e9c9d6e2d832cade6a9a4d9108ef
<div class="sect4"> <h5 id="\_vbaでibmメインフレーム\_ftpの固定ブロックfbファイルを作成する方法">vbaでibmメインフレーム/ ftpの固定ブロック(fb)ファイルを作成する方法</h5> <div class="paragraph"> <p>いくつかの非常に基本的な情報を含むテキストファイルを生成するvbaコードがあります。 次に、そのファイルをftp経由でアップロードします。</p> </div> <div class="paragraph"> <p>今日、ibmメインフレームのサーバー管理者から、ファイルが可変ブロック(vb)形式であり、ジョブプロセスが最大サイズ256までの固定ブロック(fb)を使用しているというメッセージを受け取りました。</p> </div> <div class="paragraph"> <p>これはどのように行われますか? ファイル作成中? サードパーティのツール?</p> </div> <div class="paragraph"> <p>b</p> </div> </div>
vbaでibmメインフレーム/ ftpの固定ブロック(fb)ファイルを作成する方法
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>実際のプロセスを実行する前に、メインフレームでvbファイルをfbに変換するだけで済みます。変換する</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>fbがブロックサイズの倍数にあることを正しく覚えている場合、それがhttp://en.wikipedia.org/wiki/direct\\_access\\_storage\\_device[dasd]がファイルをディスクに保存する方法であり、その複数のブロックサイズに収まらなければなりません。メインフレームの速度とスループット。 データファイルが複数のブロックサイズの境界内にない場合(これはデータの実際のサイズとは関係ありません)、dasdシステムは256バイトのブロック内のファイルにアクセスするだけです&#8230;&#8203;特別なフィールドのホストがありますデータファイルに挿入してブロッキングなどを記述します&#8230;&#8203;メインフレームに転送されると挿入され、そのデータは磁気テープのバックアップに転送されます&#8230;&#8203;</p>\n</div>\n<div class=\"paragraph\">\n<p>メインフレームには、jcl(ジョブ制御言語)を使用して変換するスクリプトが用意されているはずです。メインフレーム管理者に依頼してください&#8230;&#8203;</p>\n</div>\n<div class=\"paragraph\">\n<p>ちなみに、データファイルで使用した文字セットは、メインフレームがhttp://en.wikipedia.org/wiki/ebcdic[ebcdic]文字セットを使用していることに注意してください。 asciiデータからメインフレームで読み取り可能な形式に変換できるツール、念頭に置いておくべきこと&#8230;&#8203;データが変換されてファイルサイズに影響を与える可能性がある場合&#8230;&#8203;言及する価値があり、重要!</p>\n</div>\n<div class=\"paragraph\">\n<p>`dd`ユーティリティを使用してデータを固定ブロックサイズに変換できるunix / linuxユーティリティがありますが、それを行う正しい方法ではないと思います&#8230;&#8203;</p>\n</div>\n<div class=\"paragraph\">\n<p><a href=\"http://www.docstoc.com/docs/23438052/working-with-mainframe-reports\">this</a>を理解するのに役立つ便利なリンクを次に示します。 また、https://stackoverflow.com/questions/576461/tso-mvs-uploading-problem [so]でも、同様のユーザーがmvs / tsoデータについて尋ねていました&#8230;&#8203;</p>\n</div>\n", "name": "", "is_accepted": false } ]
85f3a2809b892fc4443a89a4bb3d6b58
<div class="sect4"> <h5 id="\_リストビューコントロールc\_でキーボード入力をキャプチャする">リストビューコントロール、c ++でキーボード入力をキャプチャする</h5> <div class="paragraph"> <p>リストビューコントロールにフォーカスがあるときにキーの押下をキャプチャするにはどうすればよいですか?</p> </div> <div class="paragraph"> <p>私のウィンドウ作成コードは次のようになります</p> </div> <div class="literalblock"> <div class="content"> <pre>// window creation hwnd hwnd = createwindowex(ws\_ex\_topmost | ws\_ex\_appwindow, g\_szclassname, "test", ws\_visible | ws\_border | ws\_caption | ws\_dlgframe | ws\_popup | ws\_sysmenu, cw\_usedefault, cw\_usedefault, 209, 351, 0, 0, hinstance, 0); hwnd hwnd\_list = createwindowex(0, wc\_listview, "", ws\_border | ws\_visible | ws\_child | ws\_tabstop | lvs\_report | lvs\_singlesel | lvs\_nocolumnheader | lvs\_ex\_fullrowselect, 1, 246, 201, 55, hwnd, (hmenu)idl\_listview, hinstance, 0);</pre> </div> </div> <div class="paragraph"> <p><code>wndproc`内で、</code> wm\_keypress`メッセージを処理し、仮想コードを表示する `messagebox`を作成しますが、リストビューの外側をクリックした後にキーを押すとトリガーされます。</p> </div> </div>
リストビューコントロール、c ++でキーボード入力をキャプチャする
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>コントロールのサブクラス化、http://msdn.microsoft.com/en-us/library/bb773183%28vs.85%29.aspxを確認する必要があります。</p>\n</div>\n<div class=\"paragraph\">\n<p>mfcを使用している場合は、もう少し苦痛はありません。 (ボーランドがまだ生きていたその当時、それはowlでの風でしたが、それは古代の歴史です。)</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>リストビュープロシージャをサブクラス化してから、「wm\\_keydown」を使用して入力をキャプチャする必要があります。</p>\n</div>\n", "name": "", "is_accepted": false } ]
44e68710970543d6b2c8b0e8b8e0d4a6
<div class="sect4"> <h5 id="\_名前空間の命名規則">名前空間の命名規則</h5> <div class="paragraph"> <p>再利用可能なコンポーネントを書いているあなたにとって、.netフレームワークの機能を拡張する場合、どのようにしてベストプラクティスと考えるのでしょうか。</p> </div> <div class="paragraph"> <p>たとえば、私はpop3ライブラリを作成していますが、.netには存在しません。 カスタム名前空間を作成しますか、それとも `+ system.net.mail`を使用しますか?</p> </div> </div>
名前空間の命名規則
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p><a href=\"http://msdn.microsoft.com/ja-jp/library/893ke618(vs.71).aspx\">namespace naming guidelines</a>から:</p>\n</div>\n<div class=\"paragraph\">\n<p><em><em>\\_ </em>\\_</em>\n名前空間の命名の一般的な規則は、次のようにテクノロジー名とオプションで機能とデザインが後に続く会社名を使用することです。 コードをコピー</p>\n</div>\n<div class=\"paragraph\">\n<p><code>+ companyname.technologyname [.feature] [。design] +</code>\n<em><em>\\_ </em>\\_</em></p>\n</div>\n<div class=\"paragraph\">\n<p>一般的に、フレームワークやライブラリのデフォルトの名前空間にものを含めることを始めるのは本当に悪い習慣です。 これは、新しい名前空間が、全員に配布されるフレームワークの一部である既存のライブラリの一部であるのか、他の人によって追加されたカスタムフレームワークの一部であるのかについて混乱を引き起こす可能性があります。</p>\n</div>\n<div class=\"paragraph\">\n<p>また、命名規則は、 `+ companyname +`のような一意の識別子を持つことにより、名前空間の衝突を回避しようとします。 また、新しいライブラリのソースに関して混乱や問題を減らすことができます。</p>\n</div>\n<div class=\"paragraph\">\n<p>これはマイクロソフトの問題だけでなく、javaの問題でもあります。 「パッケージ」と呼ばれるjavaのネームスペースには、http://www.oracle.com/technetwork/java/codeconventions-135099.html [次の規則]があります。</p>\n</div>\n<div class=\"paragraph\">\n<p><em><em>\\_ </em>\\_</em>\n一意のパッケージ名のプレフィックスは常にすべて小文字のascii文字で書かれており、現在はcom、edu、gov、mil、net、org、または英語の2文字コードのいずれかであるトップレベルドメイン名の1つであるべきですiso規格3166、1981で指定されている国の識別</p>\n</div>\n<div class=\"paragraph\">\n<p>パッケージ名の後続の構成要素は、組織独自の内部命名規則に従って異なります。 このような規則では、特定のディレクトリ名の構成要素が部門名、部門名、プロジェクト名、マシン名、またはログイン名であると指定することがあります。\n<em><em>\\_ </em>\\_</em></p>\n</div>\n<div class=\"paragraph\">\n<p>したがって、私が非常に素晴らしいソフトウェアを持っている場合、それは `+ net.coobird.superawesomesoftware +`パッケージに含まれている可能性があります。</p>\n</div>\n<div class=\"paragraph\">\n<p>そして、デフォルトの <code>+ java。+</code>、 <code>+ javax。+</code>、 `+ com.sun。+`パッケージを含むパッケージ名を使用することは、大したことではありません。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>名前空間の命名に関するガイドラインについては、msdnの次の記事も参照してください。</p>\n</div>\n<div class=\"paragraph\">\n<p><em><em>\\_ </em>\\_</em>\n<a href=\"http://msdn.microsoft.com/en-us/library/ms229026.aspx\" class=\"bare\">http://msdn.microsoft.com/en-us/library/ms229026.aspx</a> [名前空間の名前]</p>\n</div>\n<div class=\"paragraph\">\n<p>名前空間に選ばれた名前は名前空間の型によって利用可能にされた機能性を示すべきです。 たとえば、system.net.sockets名前空間には、開発者がソケットを使用してネットワークを介して通信することを可能にする型が含まれています。</p>\n</div>\n<div class=\"paragraph\">\n<p>名前空間名の一般的な形式は次のとおりです。</p>\n</div>\n<div class=\"paragraph\">\n<p><code>+。(|)[。] [。] +</code></p>\n</div>\n<div class=\"paragraph\">\n<p>たとえば、「+ microsoft.windowsmo​​bile.directx +」。\n<em><em>\\_ </em>\\_</em></p>\n</div>\n", "name": "", "is_accepted": false } ]
1219c1aea1aa5aaec7baa690a91e7287
<div class="sect4"> <h5 id="\_圧縮されたバイナリデータの読み取り書き込み">圧縮されたバイナリデータの読み取り/書き込み</h5> <div class="paragraph"> <p>私は、人々がビット単位でオブジェクトを圧縮することについて話す場所をすべて読みました。 「最初の3ビットはそのようなものを表し、次の2ビットはこれを表し、そのための12ビットを表す」</p> </div> <div class="paragraph"> <p>メモリ使用量を最小限に抑えることが望ましい理由を理解していますが、これを実装する良い方法は考えられません。 私はそれを1つ以上の整数(または長整数)にパックすることを知っていますが、それを扱う簡単な方法を思い描くことはできません。 任意の長さのバイナリフィールドから任意のビットを取得/設定できるクラスがあれば、それはかなりクールであり、それは私のために面倒を見るでしょう、そして私は& 'sと|'でいじり回す必要はありませんsとマスクなど。</p> </div> <div class="paragraph"> <p>この種のものに標準的なパターンはありますか?</p> </div> </div>
圧縮されたバイナリデータの読み取り/書き込み
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p><a href=\"http://msdn.microsoft.com/en-us/library/system.collections.bitarray.aspx\">msdn</a>から:</p>\n</div>\n<div class=\"paragraph\">\n<p><em><em>\\_ </em>\\_</em>\n<em>bitarrayクラス</em></p>\n</div>\n<div class=\"paragraph\">\n<p>ブール値として表されるビット値のコンパクトな配列を管理します。trueはビットがオン(1)であることを示し、falseはビットがオフ(0)であることを示します。\n<em><em>\\_ </em>\\_</em></p>\n</div>\n<div class=\"paragraph\">\n<p>例:</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>bitarray mybitarray = new bitarray(5);\nmybitarray[3] = true; // set bit at offset 3 to 1</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>ただし、bitarrayでは個々のビットのみを設定できます。 より多くのビットで値をエンコードしたい場合は、おそらく&amp;&amp;や| '、マスクなどをいじくり回す方法はないでしょう:-)</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<div class=\"title\">net frameworkのhttp://msdn.microsoft.com/en-us/library/system.collections.specialized.bitvector32.aspx[bitvector32]構造をチェックアウトすることをお勧めします。 int内のビットの範囲である「セクション」を定義し、それらのセクションの値を読み書きできます。</div>\n<p>主な制限は、単一の32ビット整数に制限されることです。これは、何をしようとしているかによって、問題になる場合とそうでない場合があります。 dtbで述べたように、bitarrayは任意のサイズのビットフィールドを処理できますが、一度に取得および設定できるビットは1つだけです。bitvector32のようなセクションのサポートはありません。</p>\n</div>\n", "name": "", "is_accepted": false } ]
1632e6700393c177c0e488586b67441c
<div class="sect4"> <h5 id="\_値がdictionary\_tkeylist\_tvalue\_に含まれているかどうかのテスト">値がdictionary &lt;tkey、list &lt;tvalue &gt;&gt;に含まれているかどうかのテスト</h5> <div class="paragraph"> <p><code>dictionary`に含まれる</code> list`に指定された値が含まれているかどうかを判断する必要があります。 私はlinqが初めてなので、これを達成する正しい方法は次のとおりですか?</p> </div> <div class="literalblock"> <div class="content"> <pre>dictionary lotsofstuff = new dictionary&gt;(); string searchstring; // populate lotsofstuff and searchstring... // detemine if any of the values of lotsofstuff contain searchstring bool existsindictionary = lotsofstuff.values.any(values =&gt; values.contains(searchstring));</pre> </div> </div> <div class="paragraph"> <p>上記が機能する場合、それをより正確にするか、より最適/簡潔にする方法はありますか?</p> </div> </div>
値がdictionary <tkey、list <tvalue >>に含まれているかどうかのテスト
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>このコードは機能し、可能な限り効率的です。 値を検索しているため、検索をガイドするインデックス/ハッシュはありません。 したがって、すべてのオブジェクトを検索して、値が存在するかどうかを判断する必要があります。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>コードは機能しますが、すぐに2つのことが思い浮かびます。 1つ目は、辞書が大きい場合や値リストが大きい場合は遅くなることです。 2番目に思い浮かぶのは、この検索を実行しようとしているという事実が、辞書を逆方向にまとめたということです。 辞書を持っている場合:</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>\"frob\" --&gt; \"foo\", \"bar\", \"baz\"\n\"blob\" --&gt; \"baz\", \"abc\"</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>そして、あなたが尋ねている質問は「abcはどの値リストにもありますか?」です。その後、逆方向に辞書を作成しました。 構築したい辞書は</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>\"foo\" --&gt; \"frob\"\n\"bar\" --&gt; \"frob\"\n\"baz\" --&gt; \"frob\", \"blob\"\n\"abc\" --&gt; \"blob\"</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>そして、あなたが尋ねるべき質問は「abcは辞書のキーですか?」です。辞書を作成するのは\\_backwards\\_?</p>\n</div>\n", "name": "", "is_accepted": false } ]
f7ab9e9f0222132f84abdaa2a9c0809e
<div class="sect4"> <h5 id="\_java\_flex間で文字列定数を同期させる戦略">java / flex間で文字列定数を同期させる戦略?</h5> <div class="paragraph"> <p>文字列定数のif-then比較を中心に構築された多くのビジネスルールを持つwebアプリケーションがあるとします。 これらは、クライアント側とバックエンドの両方のコードで使用され、現時点では両方の場所でひどくハードコーディングされており、多くの重複と時にはエラーが発生します。 それらをリファクタリングする賢明な方法は何ですか? 残念なことに、ポリモーフィズムを使用するとはるかに恐ろしいため、ほとんどの場合、それらは存在しなければなりません。 flex / javaに固有のものはありますか? これらすべての定数を1か所に保持し、クライアントコードとサーバーコードの両方にコンパイルする簡単な方法はありますか?</p> </div> <div class="paragraph"> <p>編集:私は本当にすべてのコンパイル時のチェックでフレックスとjavaの間で文字列定数を共有する方法を探しています。 私が考えることができる唯一のアイデアは、コードジェネレーターです。</p> </div> </div>
java / flex間で文字列定数を同期させる戦略?
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>flexとjavaの両方が、これらのファイルの内容がこの形式の単純な.propertiesファイルをサポートしていない</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>key1=value 1\nkey2=value 2</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>等々&#8230;&#8203;</p>\n</div>\n<div class=\"paragraph\">\n<p>共通の.propertiesファイルを定義して、2つのプロジェクト間で共有してみませんか? ここでもバージョン管理システムが役立ちます。 たとえば、svnを使用している場合、.propertiesファイルを別のリポジトリに配置し、http://svnbook.red-bean.com/en/1.0/ch07s03.html [svn:externals]を使用してそれらを両方で共有できます。フレックスおよびjavaリポジトリ。</p>\n</div>\n<div class=\"paragraph\">\n<p>プロパティの読み込みと使用については、次のページに各言語/プラットフォームでの実行方法を示します。</p>\n</div>\n<div class=\"paragraph\">\n<p>javaの場合:http://www.mkyong.com/java/java-properties-file-examples/</p>\n</div>\n<div class=\"paragraph\">\n<p>flexの場合:http://vatsalad.wordpress.com/2010/03/12/how-to-use-properties-fileresourcebundle-in-flex/</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>コード生成は思ったより簡単です。 あなたがそれがあなたがする必要があることを本当に信じているなら、私はおそらくあなたが目的のために(特に文字列定数のために)修正できる例を(カスタムantタスクはプレーンなjava「メイン」アプリとして実行できますが)提供することができますあなたが欲しい。</p>\n</div>\n<div class=\"paragraph\">\n<p>私が正しく理解していれば、コンパイル時の「キー」チェックを提供するものを探していますか(オートコンプリートサポートも提供します)? そのため、ここではプロパティファイルはあまり役に立ちません。</p>\n</div>\n", "name": "", "is_accepted": false } ]
933bd49696523c4e78b6da90983cf5fa
<div class="sect4"> <h5 id="\_大きなファイルの読み込み速度を上げる">大きなファイルの読み込み速度を上げる</h5> <div class="paragraph"> <p>私のプログラムが使用する2つの大きなテキストファイル(数百万行)があります。 これらのファイルは解析され、ハッシュにロードされるため、データにすばやくアクセスできます。 私が直面している問題は、現在、解析と読み込みがプログラムの最も遅い部分であることです。 以下は、これが行われるコードです。</p> </div> <div class="literalblock"> <div class="content"> <pre>database = extractdatabase(@type).chomp("fasta") + "yml" revdatabase = extractdatabase(@type + "-r").chomp("fasta.reverse") + "yml" @proteins = hash.new @decoyproteins = hash.new file.open(database, "r").each\_line do |line| parts = line.split(": ") @proteins[parts[0]] = parts[1] end file.open(revdatabase, "r").each\_line do |line| parts = line.split(": ") @decoyproteins[parts[0]] = parts[1] end</pre> </div> </div> <div class="paragraph"> <p>また、ファイルは次の例のようになります。 それはyamlファイルとして始まりましたが、形式は解析速度を上げるために修正されました。</p> </div> <div class="literalblock"> <div class="content"> <pre>mtmdk: p31946 q14624 q14624-2 b5bu24 b7zkj8 b7z545 q4vy19 b2rms9 b7z544 q4vy20 mtmdkselvqk: p31946 b5bu24 q4vy19 q4vy20</pre> </div> </div> <div class="literalblock"> <div class="content"> <pre>i've messed around with different ways of setting up the file and parsing them, and so far this is the fastest way, but it's still awfully slow. is there a way to improve the speed of this, or is there a whole other approach i can take? *list of things that don't work*: * yaml. * standard ruby threads. * forking off processes and then retrieving the hash through a pipe.</pre> </div> </div> </div>
大きなファイルの読み込み速度を上げる
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>何十年もの経験を経て考案されたソリューション、データベース、sqlite3を使用してみませんか?</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>私の使用法では、解析する前にファイルの全部または一部をメモリに読み込むと、通常は速くなります。 データベースのサイズが十分に小さい場合、これは次のように簡単です。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>buffer = file.readlines(database)\nbuffer.each do |line|\n ...\nend</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>それらが大きすぎてメモリに収まらない場合は、より複雑になります。データのブロック読み取りに続いて解析を設定するか、読み取りスレッドと解析スレッドを別々にスレッド化する必要があります。</p>\n</div>\n", "name": "", "is_accepted": false } ]
b531d7884c55cf14e29cc2a3da08aa1e
<div class="paragraph"> <p>linux上のすべてのシステムコールをキャッチする方法はありますか? 私が知っている唯一の解決策はld\_preloadを <a href="http://packages.qa.debian.org/f/fakeroot.html">fakeroot</a>のように使用することですが、それは動的にリンクされたアプリケーションに対してのみ機能します。 さらに、この方法ではすべてのシステムコールを列挙する必要がありますが、これは避けたいものです。</p> </div>
linuxでユーザースペースからコールをフックする
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>私はあなたがhttp://www.linuxjournal.com/article/6100 [<code>ptrace(2)</code>]を探していると思います。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>プログラムをトレースすることができます。 straceがどのように機能するのか考えてください。 ヒント: `ld\\_preload`トリックは使いません。</p>\n</div>\n", "name": "", "is_accepted": false } ]
419b5cd1cfd171547f76da0a12d778f8
<div class="paragraph"> <p>私は長年さまざまな言語で使ってきた <a href="http://www.doxygen.nl/">doxygen</a>の大ファンです。 特に、私はそのウィキのような <a href="http://www.doxygen.nl/manual/commands.html#cmdimage">include images</a>およびgraphvizドットジェネレータを実行してhttp:// wwwから任意のインラインダイアグラムを作成できることに感謝します。 doxygen.nl/manual/commands.html#cmddot[inline dot code]または <a href="http://www.doxygen.nl/manual/commands.html#cmdimage">外部ファイル</a>。</p> </div> <div class="literalblock"> <div class="content"> <pre>http://rdoc.sourceforge.net[rdoc]はgraphvizを使ってクラス図を生成するための図表化サポートを持っていますが、任意の画像や図表を含める方法は見当たりません。 また、酸素のような任意のページを作成するのをサポートするようにも見えません。</pre> </div> </div> <div class="paragraph"> <p>これらのdoxygenスタイルの機能をrubyに提供する\_any\_ツールはありますか?</p> </div> <div class="paragraph"> <p>私はrubyツールボックス <a href="http://ruby-toolbox.com/categories/documentation\_tools.html">ツールのリスト</a>を読み飛ばしましたが、それらはすべてrdocの変種のようです。</p> </div> <div class="paragraph"> <p>現時点で私にとって最も可能性の高い解決策は <a href="http://yard.soen.ca/getting\_started.html#extending">extending yard</a>のようです。</p> </div>
図や画像を含めることを可能にするrubyドキュメンテーションツールはありますか?
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>rdocは自動的にurlをhtmlリンクに変換し、画像ファイルを指すurlは自動的にhtml画像に変換されます。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>先週 <a href=\"http://www.perthagilemeetupgroup.com.au/calendar/14469833/\">perth agile meetup</a>で言われたように、graphvizの統合はhttp://gnuu.org/2008/02/29/generating-classです。 -diagrams-with-yard-and-graphviz / [現在入手可能]庭の枝として。</p>\n</div>\n", "name": "", "is_accepted": false } ]
a66eac92f103b60ce121d9eb6a2936bd
<div class="sect4"> <h5 id="\_htmlに欠落しているタグの終了タグを挿入する">htmlに欠落しているタグの終了タグを挿入する</h5> <div class="paragraph"> <p>終了タグが欠落している場所に終了htmlタグを挿入する方法は?</p> </div> <div class="paragraph"> <p>like</p> </div> <div class="literalblock"> <div class="content"> <pre> index no.</pre> </div> </div> <div class="paragraph"> <p>name</p> </div> <div class="paragraph"> <p>1</p> </div> <div class="paragraph"> <p>ハリクリシュナ</p> </div> <div class="paragraph"> <p>2つの欠落している終了タグ。それは「/ tr」です。この場合、欠落しているタグの場所を検索する方法と、「/ tr」などの適切な終了タグを挿入する方法です。</p> </div> </div>
htmlに欠落しているタグの終了タグを挿入する
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>これは、考えられるすべてのケースを処理する場合に実行する非常にタスクのようです。 htmlは通常の言語ではありません。 私見では、ソースでの問題を解決しようとする必要があります。最初に無効なhtmlを取得した方法です。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p><a href=\"http://tidy.sourceforge.net/\">html tidy</a>を見て、必要なものが機能するかどうかを確認してください。</p>\n</div>\n", "name": "", "is_accepted": false } ]
be66d61ec495837a45a0ab005f3187ad
<div class="paragraph"> <p>私の質問は、java webサービスとc#の間の統合についてです。 .net client.</p> </div> <div class="paragraph"> <p>サービス:aegisデータバインディングクライアントを含むcxf 2.2.3クライアント:c#、.net 3.5 sp1</p> </div> <div class="paragraph"> <p>何らかの理由で、visual studioは各java列挙に対して2つのc#プロキシ列挙を生成します。 生成されたc#クラスはコンパイルされません。</p> </div> <div class="paragraph"> <p>たとえば、このjava enumは次のとおりです。</p> </div> <div class="literalblock"> <div class="content"> <pre>パブリック列挙体sqldialect {generic、sybase、sql\_server、oracle。 }</pre> </div> </div> <div class="paragraph"> <p>このwsdlを生成します。</p> </div> <div class="literalblock"> <div class="content"> <pre></pre> </div> </div> <div class="paragraph"> <p>このwsdlの場合、visual studioは2つの部分c#クラスを生成します(生成されたコメントは削除されます)。</p> </div> <div class="literalblock"> <div class="content"> <pre>[system.codedom.compiler.generatedcodeattribute("system.runtime.serialization", "3.0.0.0")] [system.runtime.serialization.datacontractattribute(name="sqldialect", namespace="http://somenamespace")] パブリック列挙体sqldialect:int { [system.runtime.serialization.enummemberattribute()] generic = 0、 [system.runtime.serialization.enummemberattribute()] sybase = 1、 [system.runtime.serialization.enummemberattribute()] sql\_server = 2、 [system.runtime.serialization.enummemberattribute()] oracle = 3、} [system.codedom.compiler.generatedcodeattribute("system.xml", "2.0.50727.3082")] [system.serializableattribute()] [system.xml.serialization.xmltypeattribute(namespace="http://somenamespace")] パブリック列挙体sqldialect {generic、sybase、sql\_server、oracle、}</pre> </div> </div> <div class="paragraph"> <p>結果のc#コードはコンパイルされません。</p> </div> <div class="literalblock"> <div class="content"> <pre>名前空間 'somenamespace'は既に 'sqldialect'の定義を含んでいます</pre> </div> </div> <div class="paragraph"> <p>私はどんなアイデアにも感謝します&#8230;&#8203;</p> </div>
java型用に生成された重複したc#webサービスプロキシクラス
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>visual studioが重複したプロキシクラスを生成する原因となるものが見つかりました。 私たちのwebサービスのデータモデルは多態性があり、抽象クラスを使用します - これが本質的にaegisデータバインディングを使用する理由です。 階層内に複数の抽象クラスがある場合、visual studioは重複したプロキシを生成します。</p>\n</div>\n<div class=\"paragraph\">\n<p>たとえば、次のwebサービス契約では、</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>abstractrestrictiondef getrestriction(...パラメータ...)</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>これらのクラスは機能しません。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>abstractクラスabstractmodelobject - 抽象クラスabstractrestrictiondef - クラスsqlrestrictiondef</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>しかし、これらのクラスは以下のようになります。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>abstractクラスabstractmodelobject - クラスabstractrestrictiondef - クラスparsedrestrictiondef</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>特定のwsdlでは、追加のコードが生成されています(私の場合は、存在しない追加のクラスメンバー)。 これを使用しようとしたときに問題が発生したので、私は過剰として識別したコードを削除し、それが動作し始めました。 列挙型の1つを削除して何が起こるのかを確認してみます。</p>\n</div>\n", "name": "", "is_accepted": false } ]
d7b5119cf9a503b3532b39209e4bc76c
<div class="sect4"> <h5 id="\_cのスレッドセーフな非同期コード">c#のスレッドセーフな非同期コード</h5> <div class="paragraph"> <p>数週間前に以下の質問をしました。 さて、私の質問とすべての回答を確認すると、非常に重要な詳細が目に飛び込んできました。2番目のコード例では、メイン(ui)スレッドで `dothecodethatneedstorunasynchronously()`が実行されていませんか? タイマーは1秒待ってからメインスレッドにイベントをポストしませんか? これは、非同期に実行する必要があるコードがまったく非同期に実行されないことを意味しますか?!</p> </div> <div class="paragraph"> <p><em>元の質問:</em></p> </div> <div class="paragraph"> <p>'' '' '</p> </div> <div class="paragraph"> <p>私は最近何度か問題に直面し、さまざまな方法でそれを解決しました。スレッドセーフかどうかは常に不確かでした。c#コードを非同期に実行する必要があります。 (<strong>編集:.net 3.5を使用していることを忘れていました!</strong>)</p> </div> <div class="paragraph"> <p>そのコードは、メインスレッドコードによって提供されるオブジェクトに対して機能します。 *(編集:オブジェクトはそれ自体がスレッドセーフであると仮定しましょう。)*私が試した2つの方法(簡略化)を紹介し、*これらの4つの質問*を示します:</p> </div> <div class="olist arabic"> <ol class="arabic"> <li> <p>私が望むものを達成するための最良の方法は何ですか? それは2つのうちの1つですか 別のアプローチ?</p> </li> <li> <p>スレッドセーフではない2つの方法のいずれか(両方とも恐れています&#8230;&#8203;)とその理由は?</p> </li> <li> <p>最初のアプローチは、スレッドを作成し、それにオブジェクトを渡します コンストラクタ。 それは私がオブジェクトを渡すことになっている方法ですか?</p> </li> <li> <p>2番目のアプローチは、それを提供しないタイマーを使用します 可能性があるため、匿名デリゲートでローカル変数を使用します。 それは安全ですか、またはデリゲートコードによって評価される前に変数の参照が変更されることは理論上可能ですか? (<strong>これは、匿名のデリゲートを使用する場合の非常に一般的な質問です</strong>)。 javaでは、ローカル変数を* final *(つまり、 一度割り当てたら変更できません)。 c#ではそのような可能性はありません、ありますか?</p> </li> </ol> </div> <div class="paragraph"> <p>'' '' '</p> </div> <div class="paragraph"> <p><strong>アプローチ1:スレッド</strong></p> </div> <div class="literalblock"> <div class="content"> <pre>new thread(new parameterizedthreadstart( delegate(object parameter) { thread.sleep(1000); // wait a second (for a specific reason) myobject myobject = (myobject)parameter; dothecodethatneedstorunasynchronously(); myobject.changesomeproperty(); })).start(this.myobject);</pre> </div> </div> <div class="paragraph"> <p>このアプローチには1つの問題があります。メインスレッドがクラッシュする可能性がありますが、ゾンビスレッドが原因でプロセスは引き続きメモリに残ります。</p> </div> <div class="paragraph"> <p>'' '' '</p> </div> <div class="paragraph"> <p><strong>アプローチ2:タイマー</strong></p> </div> <div class="literalblock"> <div class="content"> <pre>myobject myobject = this.myobject; system.timers.timer timer = new system.timers.timer(); timer.interval = 1000; timer.autoreset = false; // i.e. only run the timer once. timer.elapsed += new system.timers.elapsedeventhandler( delegate(object sender, system.timers.elapsedeventargs e) { dothecodethatneedstorunasynchronously(); myobject.changesomeproperty(); }); dosomestuff(); myobject = that.myobject; // hypothetical second assignment.</pre> </div> </div> <div class="paragraph"> <p>ローカル変数 <code>myobject`は、私が質問4で話していることです。 例として2番目の割り当てを追加しました。 タイマーが2番目の割り当ての* <em>after</em> *を経過すると、デリゲートコードは `this.myobject`または</code> that.myobject`で動作しますか?</p> </div> </div>
c#のスレッドセーフな非同期コード
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>これらのコードのいずれかが安全かどうかは、 `myobject`インスタンスの構造に関係しています。 どちらの場合も、フォアグラウンドスレッドとバックグラウンドスレッドの間で `myobject`変数を共有しています。 バックグラウンドスレッドの実行中に、フォアグラウンドスレッドが `myobject`を変更するのを止めるものは何もありません。</p>\n</div>\n<div class=\"paragraph\">\n<p>これは安全である場合とそうでない場合があり、 `myobject`の構造に依存します。 ただし、特にその計画を立てていない場合、それは間違いなく安全でない操作です。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>`task`オブジェクトを使用し、コードを再構築して、バックグラウンドタスクが何らかの共有状態を変更するのではなく、その計算値を「返す」ことを推奨します。</p>\n</div>\n<div class=\"paragraph\">\n<p>バックグラウンドタスクへの5つの異なるアプローチ( <code>task</code>、` backgroundworker`、 <code>delegate。 begininvoke</code>、 <code>threadpool.queueuserworkitem</code>、および` thread`)、それぞれの長所と短所。</p>\n</div>\n<div class=\"paragraph\">\n<p>具体的にあなたの質問に答えるには:</p>\n</div>\n<div class=\"olist arabic\">\n<ol class=\"arabic\">\n<li>\n<p>\\_私が望むものを達成する最良の方法は何ですか? それは2つのうちの1つですか\n別のアプローチ?\\_最良の解決策は、特定の「スレッド」またはタイマーコールバックの代わりに「タスク」オブジェクトを使用することです。 すべての理由については私のブログ投稿をご覧ください。しかし、要約すると: `task`はhttp://msdn.microsoft.com/en-us/library/dd537613.aspx [結果を返す]、http://msdn.microsoftをサポートしています.com / en-us / library / ee372288.aspx [完了時のコールバック]、http://msdn.microsoft.com/en-us/library/dd997415.aspx [適切なエラー処理]、およびhttp:/との統合.netの/msdn.microsoft.com/en-us/library/dd997364.aspx [ユニバーサルキャンセルシステム]。</p>\n</li>\n<li>\n<p><em>スレッドセーフではない2つの方法の1つ(両方を恐れる&#8230;&#8203;)とその理由は?</em> as\n他の人が述べているように、これは「myobject.changesomeproperty」がスレッドセーフかどうかに完全に依存しています。 非同期システムを扱う場合、各非同期操作が共有状態を変更せず、\\_result\\_を返す場合、スレッド安全性について簡単に推論できます。</p>\n</li>\n<li>\n<p>\\_最初のアプローチはスレッドを作成し、それにオブジェクトを渡します\nコンストラクタ。 それは私がオブジェクトを渡すことになっているのですか?\\_個人的には、ラムダバインディングを使用する方が好きです。</p>\n</li>\n<li>\n<p>\\_2番目のアプローチは、それを提供しないタイマーを使用します\n可能性があるため、匿名デリゲートでローカル変数を使用します。 それは安全ですか、理論的には変数の参照がデリゲートコードによって評価される前に変更される可能性がありますか?デリゲートによって使用される前。 参照が変更される可能性がある場合、通常の解決策は、ラムダ式でのみ使用される個別のローカル変数を作成することです。</p>\n</li>\n</ol>\n</div>\n<div class=\"paragraph\">\n<p>など:</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>myobject myobject = this.myobject;\n...\ntimer.autoreset = false; // i.e. only run the timer once.\nvar localmyobject = myobject; // copy for lambda\ntimer.elapsed += new system.timers.elapsedeventhandler(\n delegate(object sender, system.timers.elapsedeventargs e)\n {\n dothecodethatneedstorunasynchronously();\n localmyobject.changesomeproperty();\n });\n// now myobject can change without affecting timer.elapsed</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>resharperなどのツールは、ラムダにバインドされたローカル変数が変化する可能性があるかどうかを検出しようとし、この状況を検出すると警告します。</p>\n</div>\n<div class=\"paragraph\">\n<p>私の推奨ソリューション( `task`を使用)は次のようになります。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>var ui = taskscheduler.fromcurrentsynchronizationcontext();\nvar localmyobject = this.myobject;\ntask.factory.startnew(() =&gt;\n{\n // run asynchronously on a threadpool thread.\n thread.sleep(1000); // todo: review if you *really* need this\n\n return dothecodethatneedstorunasynchronously();\n}).continuewith(task =&gt;\n{\n // run on the ui thread when the threadpool thread returns a result.\n if (task.isfaulted)\n {\n // do some error handling with task.exception\n }\n else\n {\n localmyobject.changesomeproperty(task.result);\n }\n}, ui);</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>uiスレッドは `myobject.changesomeproperty`を呼び出すものなので、そのメソッドはスレッドセーフである必要はありません。 もちろん、「dothecodethatneedstorunasynchronously」はまだスレッドセーフである必要があります。</p>\n</div>\n", "name": "", "is_accepted": false } ]
28e3a8b6ac2b10ffe957ae57df9f24a4
<div class="sect4"> <h5 id="\_c\_からusbジョイスティックを使用する">c ++からusbジョイスティックを使用する</h5> <div class="paragraph"> <p>私のプロジェクトでは、pcに接続されたジョイスティックを管理するために直接入力を使用していますが、それは動作しますが、imho directimputは完全に理解して管理するにはひどいです&#8230;&#8203;</p> </div> <div class="paragraph"> <p>c ++でジョイスティックをよりきれいなモードで管理するためのライブラリ/メソッドが他にいくつかありますか?</p> </div> </div>
c ++からusbジョイスティックを使用する
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p><a href=\"http://sourceforge.net/projects/wgois/\">ois</a></p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
3dd72d2790908df3cb8f7901169a150a
<div class="paragraph"> <p>eclipseでは、複数のアイテムをコピーしてからクリップボードから選択的にそれらのアイテムを貼り付けることができますか。 intellijにはこの機能があり、私はそれが非常に便利だと思っていました。 eclipseはこれを持っていますか?もしそうならクリップボードのアイテムを見るためのキーボードショートカットは何ですか?</p> </div>
eclipseとクリップボード
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>それをするために <a href=\"http://www.eclipse-plugins.info/eclipse/plugin\\_details.jsp?id=930\">multi-clipboardプラグイン</a>があります。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>あなたは <a href=\"http://marketplace.eclipse.org/content/more-clipboard#.udulnz6gxqo\">more clipboard</a>プラグインをチェックすることができます。 multi clipboardよりも複雑ではなく、動作します。</p>\n</div>\n", "name": "", "is_accepted": false } ]
01b1c257ea8c097dc9da1af5029275a3
<div class="sect4"> <h5 id="\_t\_sql\_datediff\_00分になった回数ではなく1時間前にパーティション分割">t-sql datediff-「00分になった回数」ではなく「1時間前」にパーティション分割</h5> <div class="paragraph"> <p>タイムスタンプ付きのテーブルがあり、このテーブルを1時間の間隔に分割します。今から数時間前に戻ります。 t-sql <a href="http://msdn.microsoft.com/en-us/library/ms189794.aspx">datediff</a>関数では、分針が通過する回数をカウントするため、必要な結果を取得できません。 2つの日付の間の12-タイムスタンプと現在の間で、分針が\_現在の場所を通過する回数が必要です。</p> </div> <div class="paragraph"> <p>t-sqlでこれを行う簡単な方法はありますか?</p> </div> <div class="paragraph"> <p>*更新:*コメントに対する応答として、サンプルデータ、現在使用しているクエリ、取得している結果、および必要な結果を示します。</p> </div> <div class="paragraph"> <p>サンプルデータ:</p> </div> <div class="literalblock"> <div class="content"> <pre>timestamp ********* 2010-07-20 11:00:00.000 2010-07-20 10:44:00.000 2010-07-20 10:14:00.000 2010-07-20 11:00:00.000 2010-07-20 11:40:00.000 2010-07-20 10:16:00.000 2010-07-20 13:00:00.000 2010-07-20 12:58:00.000</pre> </div> </div> <div class="paragraph"> <p>現在のクエリ:</p> </div> <div class="literalblock"> <div class="content"> <pre>select timestamp, datediff(hour, timestamp, current\_timestamp) as diff from ...</pre> </div> </div> <div class="paragraph"> <p>結果:</p> </div> <div class="literalblock"> <div class="content"> <pre> timestamp diff ********* **** 2010-07-20 11:00:00.000 2 2010-07-20 10:44:00.000 3 2010-07-20 10:14:00.000 3 2010-07-20 11:00:00.000 2 2010-07-20 11:40:00.000 2 2010-07-20 10:16:00.000 3 2010-07-20 13:00:00.000 0 2010-07-20 12:58:00.000 1</pre> </div> </div> <div class="paragraph"> <p>私が欲しいもの:</p> </div> <div class="literalblock"> <div class="content"> <pre> -- the time is now, for the sake of the example, 13:40 timestamp diff ********* **** 2010-07-20 11:00:00.000 3 -- +1 2010-07-20 10:44:00.000 3 2010-07-20 10:14:00.000 4 -- +1 2010-07-20 11:00:00.000 3 -- +1 2010-07-20 11:40:00.000 2 or 3 -- edge case, i don't really care which 2010-07-20 10:16:00.000 4 -- +1 2010-07-20 13:00:00.000 1 -- +1 2010-07-20 12:58:00.000 1</pre> </div> </div> <div class="paragraph"> <p>変更した結果を「+1」でマークしました。 また、これが0インデックスか1インデックスかはあまり気にしませんが、基本的には13:40になったら同じ値を取得するタイムスパンが</p> </div> <div class="literalblock"> <div class="content"> <pre> 12:40-13:40 1 (or 0) 11:40-12:40 2 (or 1) 10:40-11:40 3 (or 2) 09:40-10:40 4 (or 3)</pre> </div> </div> </div>
t-sql datediff-「00分になった回数」ではなく「1時間前」にパーティション分割
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>`datediff(minute、..`を使用してから、結果を60で除算して整数値を取得することはできません。 e.g.</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre> select datediff(minute, '2010-07-20 06:00', getdate())/60</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>datediffがintを返すため、これは暗黙的にintとしてキャストされ、丸められずに1時間全体が得られると思います。</p>\n</div>\n<div class=\"paragraph\">\n<p>更新された投稿から正確なクエリを使用するには:</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>select timestamp, (datediff(minute, timestamp, current\\_timestamp) /60) as diff from ...</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>これでグループ化できます:</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>select datediff(hour, 0, getdate() - timestamp)</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>これが表す時間を知りたい場合は、計算し直してください:</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>dateadd(hour, -datediff(hour, 0, getdate() - timestamp), getdate())</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>日付の減算が気に入らない場合、それでも実行できますが、少し難しくなります。 暗闇で撮影する代わりに、これが正しいことを証明するためにクエリを作成しました。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>select\n timestamp,\n now = getdate(),\n hourdiff = datediff(hour, 0, getdate() - timestamp),\n hourcalc = dateadd(hour, -datediff(hour, 0, getdate() - timestamp), getdate()),\n hourdiff2 = datediff(hour, dateadd(millisecond, adjustms, timestamp), dateadd(millisecond, adjustms, getdate())),\n hourcalc2 = dateadd(hour, -datediff(hour, dateadd(millisecond, adjustms, timestamp), dateadd(millisecond, adjustms, getdate())), getdate())\nfrom\n (\n select dateadd(second, -3559, getdate())\n union all select dateadd(second, -3600, getdate())\n union all select dateadd(second, -3601, getdate())\n ) x (timestamp)\n cross join (\n select 3599997 - datediff(millisecond, 0, dateadd(hour, -datediff(hour, 0, getdate()), getdate()))\n ) d (adjustms)</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>残念ながら、datetimeデータ型の解像度(1/300秒)に関する知識を活用する必要があったため、3600000-3 = 3599997です。 ミリ秒の調整がgetdate()の代わりにtimestampに基づいて計算された場合、これは必要ありませんが、派生テーブルd内の大きな式をメインクエリで2回使用する必要があるため、かなり面倒ですadjustms。</p>\n</div>\n<div class=\"paragraph\">\n<p>ランダムな日付間のミリ秒の差を計算することはできないか、オーバーフローエラーが発生するため、計算は必要と思われるよりも複雑です。 可能な日付範囲がわかっている場合は、「19000101 00:00:00.000」(上記の式の0)とは異なるアンカー日付を使用して直接ミリ秒の計算を行うことで回避できる場合があります。</p>\n</div>\n<div class=\"paragraph\">\n<p>考え直せば、24ミリ秒以上の署名付きlongを取得できます。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>select dateadd(millisecond, 2147483647, 0) = '1900-01-25 20:31:23.647'</pre>\n</div>\n</div>\n", "name": "", "is_accepted": false } ]
b369afb1f866dc849e6ddb1927087760
<div class="sect4"> <h5 id="\_syslogカスタム優先順位">syslogカスタム優先順位</h5> <div class="paragraph"> <p>syslogデーモンまたはrsyslogデーモンでカスタム優先順位を使用する方法はありますか? i.e. 私はそれを実現する構成変更を見つけることができません。 私ができる他のことは、おそらくそのソースで遊ぶことです。</p> </div> <div class="paragraph"> <p>乾杯!</p> </div> </div>
syslogカスタム優先順位
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p><em><em>\\_ </em><em>\nsyslogデーモンまたはrsyslogデーモンでカスタム優先順位を使用する方法はありますか?\n</em><em> </em>\\_</em></p>\n</div>\n<div class=\"paragraph\">\n<p>syslog出力は、管理者が検討するものです。 また、syslogはユーザースペースデーモンによって管理されます。</p>\n</div>\n<div class=\"paragraph\">\n<p>つまり、http://linux.die.net/man/3/syslog [<code>syslog()</code>]呼び出しに独自のカスタム優先順位を詰め込むために何らかの方法で管理する場合、受信側もユーザーと同様に、それらから多くを作ることができない。</p>\n</div>\n<div class=\"paragraph\">\n<p>syslog()呼び出しについて文書化されている優先順位(またはレベル)は非常に単純で、管理者がエラー状態に払わなければならないあらゆるレベルの注意をカバーしています。 なぜなら、それがレベルの目的だからです。</p>\n</div>\n<div class=\"paragraph\">\n<p>soで、あなたが本当に達成したいことを詳細に質問することをお勧めします。 カスタム優先順位を発明することは間違った方向への一歩だからです。</p>\n</div>\n<div class=\"paragraph\">\n<p>p.s. それ以外の場合、何らかのトレース、デバッグ、または診断出力であり、開発/テスト/インストール中にのみ使用される場合は、ログメッセージで標準レベルと個別のプレフィックスのいずれかを常に使用できます。 syslogから(grepを使用して)特定の種類の診断のみを抽出できるようにするために、私はこれを数回行いました。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p><code>syslog(3)`を呼び出すプロセスと `syslogd`デーモンの間の通常のインターフェースは、優先度に</code> int`のみを許可します。 これは、アプリケーション固有の優先順位のための余地をあまり残しません。 アプリケーションは、 <code>log\\_user`機能を使用することが期待されています。 アプリケーションで使用できる8つの機能 `log\\_local0`から</code> log\\_local7`(posixによって認可されています)があります。 これらの機能の割り当ては伝統的にシステム管理者次第であるため、機能をデフォルトの `log\\_user`で設定する必要があります(これにより管理者は非標準の機能を選択することもできます)。</p>\n</div>\n<div class=\"paragraph\">\n<p>一部のsyslogデーモン、およびほとんどのログソートプログラムでは、機能と優先度に加えて、アプリケーション名(「openlog」の最初の引数)によるソートが可能です。 このテーマについては、http://unix.stackexchange.com [unix stack exchangeサイト]で詳しく説明されています。</p>\n</div>\n", "name": "", "is_accepted": false } ]
9a324675b485a7678258085bc58dd56e
<div class="paragraph"> <p>私はlinqを使い始めたばかりで、bindinglistにあるデータを並べ替えたいと思います。 linqクエリを実行したら、bindinglistコレクションを使用してデータをバインドする必要があります。</p> </div> <div class="literalblock"> <div class="content"> <pre>var orderedlist = //これはlinq query return(bindinglist)orderedlistです。</pre> </div> </div> <div class="paragraph"> <p>これはコンパイルされたが実行に失敗しました。トリックは何ですか?</p> </div>
bindinglistとlinq?
codeflow.site
2020.10
[ { "text": "<div class=\"literalblock\">\n<div class=\"content\">\n<pre>新しいbindinglist(orderedlist.tolist())</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>どのコレクションタイプも他のコレクションにキャストできるとは限りません。 コンパイラーがキャストをチェックする時期に関しては、https://stackoverflow.com/a/4499558/1366033 [compile-time vs runtime casting]でこの投稿をチェックしてください。</p>\n</div>\n<div class=\"paragraph\">\n<p>しかし、いくつかの配管を自分で行うことで、列挙型から `bindinglist`を簡単に生成することができます。 コレクションをbindinglistに変換するために、次のextension methodをenumerable型に追加するだけです。</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>c#*:</p>\n</li>\n</ul>\n</div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight\"><code class=\"language-lang-cs\" data-lang=\"lang-cs\">static class extensionmethods\n{\n public static bindinglist tobindinglist(this ienumerable range)\n {\n return new bindinglist(range.tolist());\n }\n}\n\n//use like this:\nvar newbindinglist = (from i in new[]{1,2,3,4} select i).tobindinglist();</code></pre>\n</div>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>vb *:</p>\n</li>\n</ul>\n</div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight\"><code class=\"language-lang-vb\" data-lang=\"lang-vb\">module extensionmethods\n \\_\n public function tobindinglist(of t)(byval range as ienumerable(of t)) as bindinglist(of t)\n return new bindinglist(of t)(range.tolist())\n end function\nend module\n\n'use like this:\ndim newbindinglist = (from i in {1, 2, 3, 4}).tobindinglist()</code></pre>\n</div>\n</div>\n", "name": "", "is_accepted": false } ]
21d9fa7a1869b36387ac789bf7b2837e
<div class="sect4"> <h5 id="\_math\_floorとmath\_truncateの違い">math.floor()とmath.truncate()の違い</h5> <div class="paragraph"> <p><a href="http://msdn.microsoft.com/en-us/library/9a6a2sxy.aspx" class="bare">http://msdn.microsoft.com/en-us/library/9a6a2sxy.aspx</a> [<code>math.floor()</code>]とhttp://msdn.microsoft.com/en-us/library/の違いは何ですか? .netのsystem.math.truncate.aspx [<code>math.truncate()</code>]</p> </div> </div>
math.floor()とmath.truncate()の違い
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>math.floorは切り捨て、math.ceilingは切り上げ、そしてmath.truncateはゼロに切り上げます。 したがって、 <code>math.truncate`は正数の場合は</code> math.floor`、負数の場合は `math.ceiling`のようになります。 これがhttp://msdn.microsoft.com/en-us/library/system.math.truncate.aspx[reference]です。</p>\n</div>\n<div class=\"paragraph\">\n<p>完全を期すために、 `math.round`は最も近い整数に丸めます。 数値が2つの整数のちょうど中間にある場合は、偶数に向かって四捨五入されます。 <a href=\"http://msdn.microsoft.com/en-us/library/system.math.round.aspx\">reference。</a></p>\n</div>\n<div class=\"paragraph\">\n<p><a href=\"https://stackoverflow.com/questions/14/whats-the-difference-between-math-floor-and-math-truncate-in-c/580252#580252\">pax diablo&#8217;s answer</a>も参照してください。 強くお勧めします!</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>msdnの説明については、次のリンクをたどってください。</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"http://msdn.microsoft.com/en-us/library/system.math.floor.aspx\" class=\"bare\">http://msdn.microsoft.com/en-us/library/system.math.floor.aspx</a> [<code>math.floor</code>]、\n負の無限大に向かって切り捨てます。</p>\n</li>\n<li>\n<p><a href=\"http://msdn.microsoft.com/en-us/library/system.math.ceiling.aspx\" class=\"bare\">http://msdn.microsoft.com/en-us/library/system.math.ceiling.aspx</a> [<code>math.ceiling</code>]、\n正の無限大に切り上げます。</p>\n</li>\n<li>\n<p><a href=\"http://msdn.microsoft.com/en-us/library/system.math.truncate.aspx\" class=\"bare\">http://msdn.microsoft.com/en-us/library/system.math.truncate.aspx</a> [<code>math.truncate</code>]、\nゼロに向かって切り上げまたは切り捨てます。</p>\n</li>\n<li>\n<p><a href=\"http://msdn.microsoft.com/en-us/library/system.math.round.aspx\" class=\"bare\">http://msdn.microsoft.com/en-us/library/system.math.round.aspx</a> [<code>math.round</code>]、\n最も近い整数または指定された小数点以下の桁数に丸めます。 最終桁が偶数になるように丸める( \"round(2.5、midpointrounding.toeven)` \"が2になる)などの2つの可能性の間で正確に等距離にある場合、またはゼロから遠くなるように振る舞いを指定できます。 round(2.5、midpointrounding.awayfromzero) `\" 3になる)。</p>\n</li>\n</ul>\n</div>\n<div class=\"paragraph\">\n<p>次の図表を参考にしてください。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>-3 -2 -1 0 1 2 3\n +--|------+---------+----|----+--|------+----|----+-------|-+\n a b c d e\n\n a=-2.7 b=-0.5 c=0.3 d=1.5 e=2.8\n ====== ====== ===== ===== =====\nfloor -3 -1 0 1 2\nceiling -2 0 1 2 3\ntruncate -2 0 0 1 2\nround (toeven) -3 0 0 2 3\nround (awayfromzero) -3 -1 0 2 3</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>roundは特定の小数点以下の桁数に丸めることができるという理由だけで、見た目よりはるかに強力です。 他のすべてのものは常に小数点以下の桁数をゼロにする。 例えば:</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>n = 3.145;\na = system.math.round (n, 2, midpointrounding.toeven); // 3.14\nb = system.math.round (n, 2, midpointrounding.awayfromzero); // 3.15</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>他の関数でも、同じ効果を得るために乗算/除算トリックを使用する必要があります。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>c = system.math.truncate (n * 100) / 100; // 3.14\nd = system.math.ceiling (n * 100) / 100; // 3.15</pre>\n</div>\n</div>\n", "name": "", "is_accepted": false } ]
8594394752d37db8594017c40031e6d6
<div class="paragraph"> <p>私の問題は以下の通りです:</p> </div> <div class="paragraph"> <p>既存のデータベースでは、2列に分けてデータを暗号化したいと思います。 列には長さの異なる文字列が含まれています。</p> </div> <div class="paragraph"> <p>暗号化によって入力テキストと同じ長さのテキスト表現を生成する必要があるため、列のサイズを変更したくありません。</p> </div> <div class="paragraph"> <p>暗号化アルゴリズムの強さは二次的な関心事ですが、もちろんそれを可能な限り強くしたいと思います。 それ以外の場合、データを暗号化する必要はありません。 しかし最も重要なことは出力のサイズです。</p> </div> <div class="paragraph"> <p>これは可能ですか? もしそうなら私はそれをどのようにやりますか?</p> </div> <div class="paragraph"> <p>私は.netでそれに興味があります。 データベースレベルの暗号化はありません。</p> </div>
文字列を暗号化して、同じ長さの暗号化文字列を取得する方法を教えてください。
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>あなたの制約の中で、私はそれをストリーム暗号に変える <a href=\"http://en.wikipedia.org/wiki/block\\_cipher\\_modes\\_of\\_operation\">cfb</a>モードでaesを使うでしょう、そして出力長は入力長と同じになるでしょう。 文字列をblobに格納しているのでなければ、出力を16進またはbase64でエンコードして文字にやさしくする必要があります。これは100%または33%の長さの増加になります。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>http://www.codeproject.com/kb/security/csstreamcipher.aspx[1つの.netの実装]はこちらです。</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>少し時間をかけて、解決しようとしている実際の問題について考えてください。 情報がデータベースからエンドユーザーに直接流れることはめったにないので、データベースの暗号化が本当に必要な場合はほとんどありません。</p>\n</div>\n<div class=\"paragraph\">\n<p>データベースのコンテンツを保護する必要がある場合は、代わりにその標準的なアクセス制御メカニズムを調べてください。</p>\n</div>\n", "name": "", "is_accepted": false } ]
19158b74f849254e5f17c97e72f980b2
<div class="paragraph"> <p>起動後にアプリケーションのアイコンを変更する方法はありますか? 通知を反映するようにアイコンを変更したいです。</p> </div> <div class="paragraph"> <p>ありがとうございました</p> </div> <div class="paragraph"> <p>編集:fredrikmörks答えに基づいてwpfソリューション。</p> </div> <div class="literalblock"> <div class="content"> <pre>uri iconuri = new uri( "icon1.ico"、urikind.relativeorabsolute); this.icon = bitmapframe.create(iconuri);</pre> </div> </div>
アプリ起動後にアプリケーションアイコンを変更する
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>メインフォームのアイコンを変更することができます。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>this.icon =新しいアイコン(@ \"</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
ac9a1386f47364b3236fcfda10b1e240
<div class="paragraph"> <p>teradata(bteqを使用)とdb2の両方から読み取る必要があるrexxジョブがあります。 現時点では、teradataとdb2のどちらからでも読み取ることができますが、両方を読み取ることはできません。 両方から読み込もうとすると、(最初に実行される)teradataが正常に機能しますが、db2の読み取りでカーソルをオープンしようとするとrc(1)のエラーが発生します。</p> </div> <div class="paragraph"> <p>teradataから読み取るコード(概してhttp://www.teradataforum.com/teradata/20040928\_131203.htmからコピー):</p> </div> <div class="literalblock"> <div class="content"> <pre>アドレスtso "delete blah.temp" "alloc fi(sysprint)da(blah.temp)新しいカタログsp(10 10)tr release"、 "unit(sysda)recfm(fba)lrecl(133)blksize(0)再使用" "attrib fbattr lrecl(220)" "alloc f(sysin)unit(vio)トラックスペース(10,10)using(fbattr)" / * bteqスクリプトのセットアップ* / queue ".run file = logon" queue "select column1 from table1; " / * bteqスクリプトを実行します* / "execio * diskw sysin(finis" "call 'sys3.tdp.appload(btqmain)'"; bteq\_rc = rc "無料fi(sysprint sysin)" / * bteq出力を読み取り、解析します* / " execio * diskr sysprint(stem bteqout。 finis "bteqout.0に対してi = 1を実行します 終わり</pre> </div> </div> <div class="paragraph"> <p>db2から読み取るコード:</p> </div> <div class="literalblock"> <div class="content"> <pre>rcdb2 = rxsubcom( 'add'、 'dsnrexx'、 'dsnrexx')の場合は、アドレスtso "subcom dsnrexx" address dsnrexx "connect" subsys "sqlquery =" select column2 from table2; " sqlsode &lt;&gt; 0でdeclare c001 sqlcode = 'sqlコードの終了12 end address dsnrexx'でexecsql prepare s001を実行した場合:sqlcode &lt;&gt; 0の場合sqlcode &lt;&gt; 0を指定します。 = 'sqlcode sqlerror exit 12 end address dsnrexx "execsql open c001" if sqlcode &lt;&gt; 0の場合、「c001を開く」sqlcode =' sqlcode exit 12 end address dsnrexx "execsql fetch c001入力:col2" if sqlcode &lt;&gt; 0の場合 'fetch c001 sqlcode =' sqlcode終了12 end</pre> </div> </div> <div class="paragraph"> <p>これが私のsysprintとsysinの使用と関係があるのではないかと思います。 これを機能させる方法を誰かが知っていますか?</p> </div> <div class="paragraph"> <p>ありがとう。</p> </div> <div class="paragraph"> <p><strong>編集</strong></p> </div> <div class="paragraph"> <p>述べられた質問は実際には間違っていました。 これを早期に修正していないことをお詫び申し上げます。</p> </div> <div class="paragraph"> <p>私が本当にしたことはこれを持っていることでした:</p> </div> <div class="literalblock"> <div class="content"> <pre>rcdb2 = rxsubcom( 'add'、 'dsnrexx'、 'dsnrexx')の場合は、アドレスtso "subcom dsnrexx" address dsnrexx "connect" subsys</pre> </div> </div> <div class="paragraph"> <p>&#8230;&#8203;followed by a small read from db2, then followed by the code to read teradataから、その後にdb2から読み取るコードが続きます。 db2とはまったく関係なく、これが最初にteradataからの読み取りに変更されたとき、それは機能しました。</p> </div>
rexxを使用してteradata出力とdb2出力の両方にアクセスする際の問題
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>これがsysprintやsysinとは何の関係もないと思います。</p>\n</div>\n<div class=\"paragraph\">\n<p>sqlcode = 1ではなく、tso rc = 1になっていると思います(1というsqlcodeがないためです)。</p>\n</div>\n<div class=\"paragraph\">\n<p>1は警告、-1はエラーです。 これは、「db2アプリケーション・プログラミングおよびsqlガイド」で調べることができます。</p>\n</div>\n<div class=\"paragraph\">\n<p>trace rをオンにして実行します。</p>\n</div>\n<div class=\"paragraph\">\n<p>エラー/警告に関する情報を表示する変数(下記参照)があります。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>22 * - * address dsnrexx \"execsql open c1\" &gt;&gt;&gt; \"execsql open c1\"\n +++ rc(1) +++\n23 * - * if sqlcode &lt;&gt; 0 28 * - * say 'sqlstate =' sqlstate '、sqlerrmc =' sqlerrmc '、sqlerrp =' sqlerrp</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>sqlstate = 00000、sqlerrmc =、sqlerrp = dsn 29 <em>-</em> say 'sqlerrd =' sqlerrd.1 '、' sqlerrd.2 '、' sqlerrd.3 '、' sqlerrd.4 '、'、sqlerrd.5 '、' sqlerrd.6 sqlerrd = 0、0、0、-1、0、0 32 <em>-</em> say 'sqlwarn =' sqlwarn.0 '、' sqlwarn.1 '、' sqlwarn.2 '、' sqlwarn.3 '、' 、sqlwarn.4 '、' sqlwarn.5 '、' sqlwarn.6 '、' sqlwarn.7 '、'、sqlwarn.8 '、' sqlwarn.9 '、' sqlwarn.10 'sqlwarn =、n、、、、、2 、、、、、、</p>\n</div>\n<div class=\"paragraph\">\n<p>たとえば、両方を一緒に使用すると、メモリが不足する可能性があります。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
e1a370385ac84abc834578e3984c1182
<div class="sect4"> <h5 id="\_glassfishはjpa\_ejb\_webサービスで2つの同時スレッドに制限されています">glassfishは、jpa / ejb / webサービスで2つの同時スレッドに制限されています</h5> <div class="paragraph"> <p>次のejb3ステートレスセッションbeanをwebサービスを介して公開しています。</p> </div> <div class="literalblock"> <div class="content"> <pre>@stateless public class userrolefacade implements userrolefacadelocal { @persistencecontext(unitname = "simpleea-ejbpu") private entitymanager em; public int count() { system.out.println("thisclass=" + this.getclass().getsimplename() + "@" + this.hashcode() + ", em=" + em); try { thread.sleep(10000); // 10 sec } catch (interruptedexception ex) { logger.getlogger(userfacade.class.getname()).log(level.severe, null, ex); } return 0; } }</pre> </div> </div> <div class="paragraph"> <p>ご覧のとおり、あまり機能しません。実際、リクエストを取得してから10秒間スリープする以外は何もしません。 このコードは、マルチスレッド環境でentitymanagerがどのように機能するかを詳しく知るための実験として作成しました。</p> </div> <div class="paragraph"> <p>webサービスは次のようになります。</p> </div> <div class="literalblock"> <div class="content"> <pre>@webservice(servicename="userrole") public class userrolewebservice { @ejb private userrolefacadelocal ejbref;// add business logic below. (right-click in editor and choose // "insert code &gt; add web service operation") @webmethod(operationname = "count") public int count() { return ejbref.count(); } }</pre> </div> </div> <div class="paragraph"> <p>テストを行うために、5つのブラウザーを起動し、webサービステスターをポイントして、すべてを起動しました。 印刷された結果は次のとおりです。</p> </div> <div class="literalblock"> <div class="content"> <pre>info: thisclass=userrolefacade@11511572, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@23961 info: thisclass=userrolefacade@32513964, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@1af5c5a info: thisclass=userrolefacade@11511572, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@23961 info: thisclass=userrolefacade@32513964, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@1af5c5a info: thisclass=userrolefacade@11511572, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@23961</pre> </div> </div> <div class="paragraph"> <p>テストを行うために、https://stackoverflow.com/questions/2292439/glassfish-limited-to-two-simultaneous-threads-with-jpa-ejb-web-service/2292529#2292529 [ bozho]と15スレッドでjmeterをセットアップします。 印刷された結果は次のとおりです。</p> </div> <div class="literalblock"> <div class="content"> <pre>info: thisclass=userrolefacade@3869465, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@55a5d0, thread=thread[http-thread-pool-17025-(2),10,grizzly] info: thisclass=userrolefacade@5558947, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@d0e940, thread=thread[http-thread-pool-17025-(1),10,grizzly] info: thisclass=userrolefacade@20208512, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@635f47, thread=thread[http-thread-pool-17025-(39),10,grizzly] info: thisclass=userrolefacade@23924919, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@16478c1, thread=thread[http-thread-pool-17025-(41),10,grizzly] info: thisclass=userrolefacade@6172173, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@121691b, thread=thread[http-thread-pool-17025-(40),10,grizzly] info: thisclass=userrolefacade@3869465, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@55a5d0, thread=thread[http-thread-pool-17025-(2),10,grizzly] info: thisclass=userrolefacade@5558947, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@d0e940, thread=thread[http-thread-pool-17025-(1),10,grizzly] info: thisclass=userrolefacade@23924919, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@16478c1, thread=thread[http-thread-pool-17025-(39),10,grizzly] info: thisclass=userrolefacade@20208512, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@635f47, thread=thread[http-thread-pool-17025-(40),10,grizzly] info: thisclass=userrolefacade@6172173, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@121691b, thread=thread[http-thread-pool-17025-(41),10,grizzly] info: thisclass=userrolefacade@3869465, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@55a5d0, thread=thread[http-thread-pool-17025-(2),10,grizzly] info: thisclass=userrolefacade@5558947, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@d0e940, thread=thread[http-thread-pool-17025-(1),10,grizzly] info: thisclass=userrolefacade@23924919, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@16478c1, thread=thread[http-thread-pool-17025-(39),10,grizzly] info: thisclass=userrolefacade@6172173, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@121691b, thread=thread[http-thread-pool-17025-(41),10,grizzly] info: thisclass=userrolefacade@20208512, em=com.sun.enterprise.container.common.impl.entitymanagerwrapper@635f47, thread=thread[http-thread-pool-17025-(40),10,grizzly]</pre> </div> </div> <div class="paragraph"> <p>[line-through] *(およびブラウザから視覚的に表示されるもの)を見るとわかるように、同時に実行されるのはたった2つのスレッドだけです。 ejbとentitymanagerの両方のインスタンスは、どこかで制限されているように見えます。 それはどこですか?</p> </div> <div class="paragraph"> <p>glassfishアプリケーションサーバーでは、私の設定は次のようになります。</p> </div> <div class="ulist"> <ul> <li> <p>接続プール:8初期接続、最大32</p> </li> <li> <p>ejbコンテナー:初期0、最大32</p> </li> </ul> </div> <div class="paragraph"> <p>それらは大丈夫だと思います。 enitiymanagerのどこかに設定はありますか? 他に何を見るべきですか?</p> </div> </div>
glassfishは、jpa / ejb / webサービスで2つの同時スレッドに制限されています
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>管理コンソールで\\_configuration&gt; thread-pools&gt; thread-pool#min-thread-pool-size\\_を確認します(2でなければなりません)。 しかし、それはほんのわずかであり、最大ではありません。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>そのような制限があるとは思わない。 おそらく、ジョブは接続の遅延と組み合わされてすぐに終了したため、エンティティマネージャーは再利用されました。</p>\n</div>\n<div class=\"paragraph\">\n<p>より良いベンチマークを作成するには、http://jakarta.apache.org/jmeter/ [jmeter]を使用します。x秒ごとに15のリクエストを実行し、出力を共有します。 (http://www.javaworld.com/javaworld/jw-07-2005/jw-0711-jmeter.html [この記事]では、jmeterの使用を開始しています。 とにかくとても簡単です)</p>\n</div>\n", "name": "", "is_accepted": false } ]
5a1e3da0c3e46792755c9a11b3a40486
<div class="paragraph"> <p>わかりました。 私のデータがこのように見えるなら:</p> </div> <div class="paragraph"> <p>表1</p> </div> <div class="literalblock"> <div class="content"> <pre>id作成日1 2009年1月1日2 2009年1月3日3 2009年1月5日4 2009年1月10日5 2009年1月15日6 2009年1月16日</pre> </div> </div> <div class="paragraph"> <p>2日離れているレコードを取得する方法を教えてください。 最終結果セットは1〜3行目、および5〜6行目です。 ありがとうございます。</p> </div>
sqlの質問:レコード間の日付差に基づいてレコードを取得する
codeflow.site
2020.10
[ { "text": "<div class=\"literalblock\">\n<div class=\"content\">\n<pre>select l。* from table1 l内部結合table1 r on datediff(d、l.date\\_created、r.date\\_created)= 2 and r.date\\_created =(select top 1 * from table1からwhere日付を作成&gt; l。日付を作成&gt;日付を作成</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>これでうまくいくでしょうか。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>table1からt1.id、t2.idを選択します。t1 t2.date\\_createdにtable1 t2を結合します。</pre>\n</div>\n</div>\n", "name": "", "is_accepted": false } ]
f798c7723eda51f423bfa1e1b08de7e5
<div class="sect4"> <h5 id="\_cssスクロールすると背景画像が塗りつぶされない">css:スクロールすると背景画像が塗りつぶされない</h5> <div class="paragraph"> <p>一度にロードする非常に小さなサイトで作業しているため、すべての背景画像を保持するdivがあり、その上に(つまり、 *より高いz-index *)すべてを保持するコンテンツdivがあります。 選択したコンテンツに基づいて背景を簡単に切り替えることができます。</p> </div> <div class="paragraph"> <p>残念ながら、スクロールバーが表示されるように小さなウィンドウで起動すると、<strong>スクロールすると、ページの「公開された」部分に背景画像がありません</strong>。 :-(</p> </div> <div class="paragraph"> <p>ページ構造:</p> </div> <div class="literalblock"> <div class="content"> <pre></pre> </div> </div> <div class="paragraph"> <p>css:</p> </div> <div class="literalblock"> <div class="content"> <pre>#bg { margin: 0px; position: absolute; top: 0px; left: 0px; width:100%; height: 1024px; z-index:1; } .bgone { margin: 0px; position: absolute; width:100%; height: 1024px; background-image:url(../images/one.jpg); background-position:top; background-repeat:repeat-x; z-index:2; } .bgtwo { margin: 0px; position: absolute; width:100%; height: 1024px; background-image:url(../images/two.jpg); background-position:top; background-repeat:repeat-x; z-index:3; } #container { position:relative; width:900px; padding:0px; margin:0px auto; height:600px; z-index:10; }</pre> </div> </div> </div>
css:スクロールすると背景画像が塗りつぶされない
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>私は同じ問題を抱えていて、それは迷惑です。 私にとっての問題は、htmlを変更できず、cssだけを変更できなかったため、追加のdivを削除できなかったことです。</p>\n</div>\n<div class=\"paragraph\">\n<p>問題は、背景に「幅:100%」があり、コンテナに「幅:900px」があることです。 したがって、たとえば、ブラウザウィンドウの幅が800ピクセルの場合、背景は800ピクセルに設定されるため、ウィンドウを水平にスクロールすると、背景のない領域が得られます。</p>\n</div>\n<div class=\"paragraph\">\n<p>この問題を修正する別の方法は、背景から「幅:100%」を削除し、それを「最小幅:900px」に置き換えることです。これにより、背景が常に少なくともコンテナと同じ幅になるようにします。 ウィンドウのサイズが900px未満になると、背景は常にコンテナと同じままになります。 御馳走を働かせる。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>私は同じ問題を抱えていました。 これはoverflow-xで修正されました:scroll;</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre> top:0px; bottom: 0px;\n height: 100%;\n background-repeat: repeat;\n position: absolute;\n overflow-x: scroll;</pre>\n</div>\n</div>\n", "name": "", "is_accepted": false } ]
6a7e1801a6f5e9e9b34f9334bbc9150f
<div class="sect4"> <h5 id="\_可変引数関数のクラッシュ">可変引数関数のクラッシュ</h5> <div class="paragraph"> <p>私は、フォーマット文字列に基づいて可変引数(可変引数を使用)を受け取ることになっている関数を持っています:</p> </div> <div class="literalblock"> <div class="content"> <pre>void va(const char* name, const char* argformat, ...) { int numofargs = strlen(argformat); std::string buf = "asdf"; va\_list listpointer; va\_start(listpointer, numofargs); char* blah; for(int i = 0; i &lt; numofargs; i++) { switch (argformat[i]) { case 's': cout &lt;&lt; va\_arg(listpointer, char*) &lt;&lt; endl; break; case 'i': cout &lt;&lt; va\_arg(listpointer, int) &lt;&lt; endl; break; case 'f': cout &lt;&lt; va\_arg(listpointer, float) &lt;&lt; endl; break; case 'b': cout &lt;&lt; va\_arg(listpointer, bool) &lt;&lt; endl; break; default: break; } } va\_end(listpointer); return; } int main() { va("fe", "sb", "asdf", true); return 0; }</pre> </div> </div> <div class="paragraph"> <p>それはクラッシュします。</p> </div> <div class="paragraph"> <p>+ cout &lt;&lt; va\_arg(listpointer、char *)&lt;&lt; endl;を変更した場合+ to + cout &lt;&lt; va\_arg(listpointer、char)&lt;&lt; end;</p> </div> <div class="paragraph"> <p>「a」を出力します。</p> </div> <div class="paragraph"> <p>何がおかしいのですか?</p> </div> </div>
可変引数関数のクラッシュ
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>`va\\_start(listpointer、argformat)`でなければなりません。 `va\\_start`は、\\_lastというparameter\\_を2番目の引数として受け取ります。 (厳密には、引数文字列の長さを事前に計算する必要はありません。文字列の最後に到達するまで文字を繰り返し処理します(移動中に可変引数を繰り返し処理します)。)</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
ba1baacbdd651d75b3dc24d24b89a417
<div class="sect4"> <h5 id="\_rdocを実行するとフォルダーimagesとjsはdoc\_dirにコピーされません">rdocを実行すると、フォルダー「images」と「js」はdoc dirにコピーされません</h5> <div class="paragraph"> <p>私はrdoc 2.5.9を実行しています。デフォルトの「darkfish」テンプレートを使用してrdocを生成するときは、次を実行します。</p> </div> <div class="literalblock"> <div class="content"> <pre>rdoc app readme</pre> </div> </div> <div class="paragraph"> <p>私のレールのルートフォルダに。 すべてのファイルが生成されますが、docディレクトリに「images」および「js」フォルダーがありません。 そのため、手動でコピーする必要があります。</p> </div> <div class="paragraph"> <p>次のバージョンがあります。</p> </div> <div class="literalblock"> <div class="content"> <pre>gem 1.3.7 ruby 1.8.7 rails 2.3.8 rvm 0.1.41</pre> </div> </div> <div class="paragraph"> <p>これらのフォルダーをコピーするには、コマンドライン引数をさらに指定する必要がありますか?</p> </div> </div>
rdocを実行すると、フォルダー「images」と「js」はdoc dirにコピーされません
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>これは既知のバグです。 詳細については、http://rubyforge.org/tracker/?func = detail&atid = 2472&aid = 26923&group\\_id = 627 [こちら]をご覧ください。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
491b84f3018682ea6f3d33c1ba40d081
<div class="paragraph"> <p>私は最近傍のクエリを実行するコードに取り組んでいます。 ユーザーが検索でデータを照会する方法の根底にある2つの簡単なアイデアがあります。</p> </div> <div class="ulist"> <ul> <li> <p>最近接n個は、空間内の特定の点を指します。</p> </li> <li> <p>与えられた距離内のすべての点</p> </li> </ul> </div> <div class="paragraph"> <p>私のコードでは、pointはpointlistに入れられ、pointlistは検索で見つかった点を追跡する役割を果たします。</p> </div> <div class="paragraph"> <p>今のところ私のpointlistオブジェクトは一つのコンストラクタを持っています:</p> </div> <div class="literalblock"> <div class="content"> <pre>pointlist(unsigned int maxvals); //#1</pre> </div> </div> <div class="paragraph"> <p>私が追加したい次の2つのコンストラクタはこれらです:</p> </div> <div class="literalblock"> <div class="content"> <pre>pointlist(float maxdist); //#2 pointlist(unsigned int maxvals、float maxdist); //#3</pre> </div> </div> <div class="paragraph"> <p>私の質問は、ユーザーとcコンパイラがpointlistに適切なコンストラクタを生成し、コンストラクタ1と2を区別するようにするにはどうすればよいのですか。 #3を実装して、maxvalsとmaxdistに任意の大きな値を定義する定数を提供する必要がありますか? もう1つの選択肢は、ポイントをリストに追加するためのロジックを管理する軽量オブジェクトの別のシステムを作成することですが、そのような単純なアイデアにはやり過ぎるようです。</p> </div> <div class="paragraph"> <p>私は本当にこれを私のユーザーにとって透明にしようとしています。彼らはたいてい正式な教育の恩恵なしにcを時々学んだ科学者です。 ありがとうございます。</p> </div>
cの暗黙的キャスト演算子の管理
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>なぜコンストラクタの代わりにファクトリメソッドを使わないのですか? ファクトリメソッドにはカスタマイズ可能な名前という利点があります。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>static pointlist createnearestvalues(unsigned int maxvals){} static pointlist createbydistance(float maxdist){}</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>整数型のオーバーロード解決は2つのカテゴリで発生します。</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>プロモーション:これは、「+ int 」よりも小さい型から\n` int `がソース型のすべての値を保存できるかどうかに応じて、 ` int `または ` unsigned int +`。</p>\n</li>\n<li>\n<p>変換:これは、任意の整数型から別の整数型への変換です\n整数型。</p>\n</li>\n</ul>\n</div>\n<div class=\"paragraph\">\n<p>同様に、浮動小数点型への変換は2つのカテゴリで行われます</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>プロモーション:これは、「+ float 」から「 double +」への変換です</p>\n</li>\n<li>\n<p>変換:これは、任意の浮動小数点型からへの変換です\n別の浮動小数点型</p>\n</li>\n</ul>\n</div>\n<div class=\"paragraph\">\n<p>そして整数から浮動または逆への変換があります。 これはプロモーションではなくコンバージョンとしてランク付けされます。 プロモーションはコンバージョンよりもランクが高く、プロモーションのみが必要な場合はその場合が優先されます。 したがって、次のコンストラクタを使うことができます。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>pointlist( int maxvals );\npointlist( unsigned int maxvals );\npointlist( long maxvals );\npointlist( unsigned long maxvals );\n\npointlist( double maxdist );\npointlist( long double maxdist );</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>どんな整数型でも、これはコンストラクタの最初のグループを選択するべきです。 そしてどんな浮動小数点型のためにも、これはコンストラクタの2番目のグループを選択するべきです。 元の2つのコンストラクタは、たとえば、+ int を渡すと、 float と unsigned int +のあいまいさを簡単に引き起こす可能性があります。 もう一方の2つの引数を持つコンストラクタの場合は、必要に応じて解決策を取り入れることができます。</p>\n</div>\n<div class=\"paragraph\">\n<p>'' '' '</p>\n</div>\n<div class=\"paragraph\">\n<p>とは言っても、私はファクトリ関数も使用するでしょう。なぜなら、パラメータの意味を型で決定するのは非常に壊れやすいからです。 ほとんどの人は、次の結果が等しいと期待するでしょう</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>pointlist p(floor(1.5));\npointlist u((int)1.5);</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>しかし、それは別の状況になるでしょう。</p>\n</div>\n", "name": "", "is_accepted": false } ]
9e8f74e1de7c72a66dc7dd3c683dd6ea
<div class="olist arabic"> <ol class="arabic"> <li> <p>新しいasp.net mvc webアプリケーションを作成します。</p> </li> <li> <p>asp.netのapp\_codeフォルダを作成する</p> </li> <li> <p>新しいフォルダ内に、extension methodを使用してクラスを作成します。 例えば:</p> </li> </ol> </div> <div class="literalblock"> <div class="content"> <pre>static public class bugmvcextension {public static int toint(この文字列str){return convert.toint32(str); }}</pre> </div> </div> <div class="olist arabic"> <ol class="arabic"> <li> <p>ビューを選択して、この新しい拡張方法を使用してみてください</p> </li> </ol> </div> <div class="paragraph"> <p>この例外が出ます:</p> </div> <div class="literalblock"> <div class="content"> <pre>cs0121:次のメソッドまたはプロパティ間の呼び出しがあいまいです。 '* mvcapplication1.app\_code.bugmvcextentions.toint(string)*'と '* mvcapplication1.app\_code.bugmvcextentions.toint(string)*'</pre> </div> </div> <div class="paragraph"> <p>これについての詳細な情報がありますか。 asp.net mvc(?)webアプリケーションでapp\_codeを作成するのは間違っていますか?</p> </div>
次のメソッドまたはプロパティ間の呼び出しがあいまいです(bug ??)
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>visual studioで作成されたmvcプロジェクトは、デフォルトでwebアプリケーションプロジェクトモデルを使用します。 `app\\_code`は主にwebサイトモデルで使われています。 私はそれらの違いについて読むことをお勧めします( <a href=\"https://stackoverflow.com/questions/398037/asp-net-web-site-or-web-application\">別の質問でこれをカバーしています</a>そしてそれはまたmsdnで広くカバーされています)。 webアプリケーションプロジェクトのソースファイルをapp\\_codeに追加すると、visual studioはそれをdllにコンパイルし(プロジェクトに含まれるため)、それを/ binに入れます。 実行時に、asp.netコンパイラは `app\\_code`を見て、異なるアセンブリでソースをコンパイルしようとします。 結果として、同じ名前の2つの別々のクラスが2つの異なるアセンブリに存在することになり、asp.netパーサーが `.aspx`ファイルをコンパイルしようとするとき、1つを選ぶことができません。</p>\n</div>\n<div class=\"sect1\">\n<h2 id=\"\\_更新\">更新:</h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>これら2つ(拡張メソッドとインスタンス化しているクラス)は単一の.csファイルに含まれていますか? そうでなければ、おそらく、インスタンス化しているクラスが* build action <strong>(ファイルを右クリックしてプロパティをクリック)が</strong> content <strong>に設定されたソースファイルにあります。他で参照することはできません\n.cs files that are outside <code>app\\_code</code> but you&#8217;ll be able to use it in\nビルドアクションが</strong> compile *の場合、エラーになります。 この問題は間違いなく拡張メソッドに固有のものではありません。 visual studioは、 `app\\_code`に追加されたソースファイルに対してデフォルトでcontentに設定するのに十分賢いようです。</p>\n</div>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>この問題を解決するために、webアプリケーションのルートにあるapp\\_codeフォルダーの外側に.csファイルを配置しました。</p>\n</div>\n", "name": "", "is_accepted": false } ]
1c4a520bc569487cc3b54aae60ffdfcf
<div class="paragraph"> <p>私はキューからタスクを処理する複数のワーカースレッドでプロデューサー/コンシューマーキューモデルを使用するwindowsサービスを持っています。 これらのタスクは、数時間ではないにしても数分程度で非常に長く実行される可能性があり、\_ループを含まない\_ことがあります。</p> </div> <div class="paragraph"> <p>私の質問は、サービス停止を処理してこれらのワーカースレッドの処理を適切に終了させるための最良の方法についてです。 私は別の <a href="https://stackoverflow.com/questions/353270/how-can-i-detect-a-threadabortexception-in-a-finally-block-net">so質問</a>を読んだことがあります。thread.abort()は悪いデザインの兆候ですが、サービスのonstop()メソッドは、サービスが終了するまでに限られた時間しか与えられていないようです。 threadabortexceptionのキャッチ内で十分なクリーンアップを行うことができます(矛盾した状態になる危険はありません)。そのため、ワーカースレッドでthread.abort()を呼び出すことは問題ないようです。 それは&#8230;&#8203;ですか? 代替案は何ですか?</p> </div>
サービス停止時にマルチスレッドwindowsサービスのワーカースレッドを停止する方法
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>実際、 `+ abort +`は避けるべきです。 時間をかけて上品に終了することをお勧めします - それからおそらくタイムアウト後に、おそらくそれらを中止することを検討します - しかし結局のところ、サービス停止は代わりにプロセスを殺すことによって同じことをすることができます。</p>\n</div>\n<div class=\"paragraph\">\n<p>「フラッシュして終了」と言うシグナルをキューに入れようとします-`+ close +`メソッドのようにhttps://stackoverflow.com/questions/530211/creating-a-blocking-queuet-in-net/ 530228#530228 [こちら]、ただし完了時に何らかの信号が表示されます。</p>\n</div>\n<div class=\"paragraph\">\n<p>`+ abort +`に頼る場合-致命傷を負ったプロセスを検討してください。 それをできるだけ早く殺しなさい。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>\"shutdown\"のタスクタイプを作成し、各ワーカースレッドごとに1回、それをプロデューサ/コンシューマキューに挿入します。</p>\n</div>\n<div class=\"paragraph\">\n<p>次にthread.joinを(タイムアウト付きで)使用して、シャットダウンが完了したことを確認します。</p>\n</div>\n", "name": "", "is_accepted": false } ]
c8db118e1e62d2f3bff9e6627a3b9f16
<div class="paragraph"> <p>日付列を持つデータテーブルがありますが、その列で並べ替える方法について困惑しています。 助言がありますか?</p> </div>
c# - どのように日付でdatatableをソートするのですか
codeflow.site
2020.10
[ { "text": "<div class=\"literalblock\">\n<div class=\"content\">\n<pre>dataview view = datatable.defaultview; view.sort = \"datecolumn\";</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
0a5574a54dd6ff3b8d75de05de5e730d
<div class="sect4"> <h5 id="\_linkbuttonがコンテンツであるためテーブルで動作しないのはなぜですか">linkbut​​tonがコンテンツであるため、テーブルで動作しないのはなぜですか?</h5> <div class="paragraph"> <p>asp.net 3.5を使用して、linkbut​​tonを作成し、その中にコンテンツを定義できます。 divタグまたは任意の種類のテキストなどがある場合は正常に動作しますが、テーブルを使用する場合、クリックは実際には何らかの理由でポストバックしません。 たとえば、次のようにグーグルに移動します(そこでエラーが表示されますが、それでも移動します)。</p> </div> <div class="literalblock"> <div class="content"> <pre> test</pre> </div> </div> <div class="paragraph"> <p>col2</p> </div> <div class="paragraph"> <p>col3</p> </div> <div class="paragraph"> <p>divで「テーブル」を作成することで回避できますが、divでの書式設定は嫌いです。</p> </div> </div>
linkbut​​tonがコンテンツであるため、テーブルで動作しないのはなぜですか?
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>テーブルタグは、見た目はあっても `a`タグをクリックできないため、あなたがしようとしていることはできません。 これは `a`タグの有効な使用方法ではないと思います。</p>\n</div>\n<div class=\"paragraph\">\n<p>これを回避するには、クライアント側のonclickをテーブルに追加してから、javascriptを使用して手動でリダイレクトを行います。</p>\n</div>\n<div class=\"paragraph\">\n<p>また、通常の <code>a`タグに対して</code> linkbut​​ton`を使用しているのはなぜですか? 私はあなたがあなたのアプリの何かに戻ってリンクしたいと思うと思います。 その場合、 `linkbut​​ton`の動作を模倣するために、javascriptで\\_\\_dopostback呼び出しも生成する必要があります。 そのためには、次のコードを使用して正しいjavascriptを生成します。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>string javascripttodopostback = page.getpostbackeventreference(yourlinkbutton);</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>テーブルはブロック要素であり、リンクはインライン要素であるため、リンクにテーブルを配置することはできません。</p>\n</div>\n<div class=\"paragraph\">\n<p>ブラウザは、おそらくテーブルをリンクの外側に移動することにより、構造を修正しようとします。そのため、取得されるのは、リンクされていないテーブルとコンテンツのないリンクです。</p>\n</div>\n<div class=\"paragraph\">\n<p>リンク内に要素を配置する場合は、インライン要素である必要があります。 スパンタグ。 次に、cssを使用して、リンクとその中の要素の両方をブロック要素に変換できますが、cssを適用する前と後の両方で構造を理解する必要があります。</p>\n</div>\n", "name": "", "is_accepted": false } ]
2ffe1f21298856b0e6315d7cae310c27
<div class="paragraph"> <p>私はc#windowsサービスを.net framework 3.5で実行しています。これは、増え続けるgcハンドルを示しています(windows server 2003でシステムモニタを使用して見られる)。</p> </div> <div class="paragraph"> <p>私はすべてのリソースが正しく処分されていることを確認しました、そして私のコードにはファイナライザーを持っていません。</p> </div> <div class="paragraph"> <p>'large object heap size'、および '#bytes in all heaps&#8217;は比較的に静的な値であり、 '%time in gc&#8217;はガベージコレクションが発生していることを示していることがわかります。</p> </div> <div class="paragraph"> <p>'private bytes&#8217;カウンターも増えています。</p> </div> <div class="paragraph"> <p>この症状が原因で、タスクマネージャの「メモリ使用量」が1日に約35 mb増加しています。これは、サービスが基本的にoracle 10gに対して単純なselectクエリを実行し、5秒ごとに.net tracesourceを使用するためです。 tracesourceがwindowsのイベントログとテキストファイルを使って .net listeners objects.</p> </div> <div class="paragraph"> <p>私はこれが私の 'メモリ使用量&#8217;の増加に関連していると信じているので '#gcハンドル&#8217;が絶えず増加している理由を誰でも知っていますか?</p> </div>
.net framework 3.5 windowsサービスのgcハンドル数(#)が常に増加している根本的な原因は何ですか?
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>ok - 並べ替えました。</p>\n</div>\n<div class=\"paragraph\">\n<div class=\"title\">net tracesourceクラスのソースコードを調べたところ、設計上、weakreferencesの2つのリスト(tracesourceオブジェクト用に1つ、スイッチ用に1つ)が所有されているようです。</div>\n<p>refreshallメソッドをサポートするためにこれを行います。</p>\n</div>\n<div class=\"paragraph\">\n<p>これらのリストを手動で消去するにはreflectionを使用しなければなりませんでした。 そのため、refreshallメソッドを安全に使用することはできませんが、少なくともprivate bytesとgc handlesを増やすことはできません。</p>\n</div>\n<div class=\"paragraph\">\n<p>この問題を再現するには、tracesourceオブジェクトを大量に作成して閉じるだけです。「リーク」が発生する可能性があります。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>あなたのコードによって適切に参照されているアンマネージリソースを解放していません。</p>\n</div>\n<div class=\"paragraph\">\n<p>あなたは決まった声明をよく知っていますか? 安全でない方法でアクセスできるように、メモリを固定できます。 しかし、それを行う別の方法がありますが、これはおそらく安全ではないと主張することです。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>var handle = system.runtime.interopservices.gchandle.alloc(myobject、system.runtime.interopservices.gchandletype.pinned);</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>上記の種類のコードは、まさにあなたの種類の問題を引き起こす可能性があるものです。 このピン留めされたメモリを明示的に「.free()」しないと、このオブジェクトのガベージコレクションが発生しなくなり、メモリリークが発生します。</p>\n</div>\n<div class=\"paragraph\">\n<p>メモリリークの恐れがある何か他のことをしているのでなければ、このようなことがoracle 10gプロバイダでも発生していると思います。</p>\n</div>\n", "name": "", "is_accepted": false } ]
af1214ad84ecd19512f6bafd4a673744
<div class="sect4"> <h5 id="\_vb\_net\_sqlの日付がクエリの形式に変更されました">vb.net sqlの日付がクエリの形式に変更されました</h5> <div class="paragraph"> <p>次のような日付変数があります。</p> </div> <div class="literalblock"> <div class="content"> <pre> dim logdate as date = date.today.adddays(-1)</pre> </div> </div> <div class="paragraph"> <p>形式は次のようになります:#4/5/2010#</p> </div> <div class="paragraph"> <p>次に、where句としてsql選択クエリに入ります。 デバッグするとき、クエリはこれを'05 / 04/2010 'に変更しました。 宣言時のように「04/05/2010」の形式にする必要があります。 私がこれをどのように行うかについてのアイデアはありますか?</p> </div> <div class="paragraph"> <p>喜はクエリです:</p> </div> <div class="literalblock"> <div class="content"> <pre> dim sqlcmd as new sqlcommand("select top (100) percent tblbackup.backupname, tblbackuparchive.backupdate, tblstatus.status from tblstatus inner join tblbackuparchive on tblstatus.statusid = tblbackuparchive.statusid inner join tblbackup on tblbackuparchive.backupid = tblbackup.backupid inner join tblclient on tblbackup.clientid = tblclient.clientid where tblbackuparchive.backupdate = '" &amp; logdate &amp; "' and (tblbackuparchive.statusid = 3) order by tblbackuparchive.backupdate desc", connection)</pre> </div> </div> <div class="ulist"> <ul> <li> <p>ジョーニー</p> </li> </ul> </div> </div>
vb.net sqlの日付がクエリの形式に変更されました
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>最良の方法は、where句に適切な名前付きパラメーターを指定したsqlcommandオブジェクトを使用することです。これにより、日付のテキスト表現の書式設定が完全​​にポイントの横になります&#8230;&#8203;</p>\n</div>\n<div class=\"paragraph\">\n<p>ms-sqlを使用している場合の別のアプローチは、次の形式の日付を使用することです。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>where date = '20100504'</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>ただし、日付を使用する場合は注意してください-裏ではdatetimesであることに注意してください&#8230;&#8203;</p>\n</div>\n<div class=\"paragraph\">\n<p>マーティン。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
c16ccbe72b64cbd6d8920653dbcf05c0
<div class="sect4"> <h5 id="\_ccfで通話を終了する方法は">c#cfで通話を終了する方法は?</h5> <div class="paragraph"> <p>microsoftのwebサイトでは、c#コンパクトフレームワークで電話をかける方法の例を示していますが、電話を切る方法の例は見つかりません。</p> </div> <div class="paragraph"> <p>誰か知ってる?</p> </div> <div class="paragraph"> <p>ありがとう、</p> </div> </div>
c#cfで通話を終了する方法は?
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>携帯電話でend keyプレスを発行してみてください。 役立つスレッドを次に示します。</p>\n</div>\n<div class=\"paragraph\">\n<p><a href=\"http://groups.google.com/group/microsoft.public.win32.programmer.tapi/browse\\_thread/thread/ac100a218c422a5e\" class=\"bare\">http://groups.google.com/group/microsoft.public.win32.programmer.tapi/browse\\_thread/thread/ac100a218c422a5e</a></p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
908bc5b787c658567f9b5e6de94daf50
<div class="paragraph"> <p>enterキーを押すとページの「next」フォーム要素にフォーカスが移動するようなフォームを作成しようとしています。 私がウェブ上で見つけ続ける解決策は&#8230;&#8203;</p> </div> <div class="literalblock"> <div class="content"> <pre></pre> </div> </div> <div class="paragraph"> <p>残念ながら、それはieでしか機能しないようです。 それで、この質問の本当の意味は、誰かがffとchromeに有効な解決策を知っているかどうかということです。 さらに、フォーム要素自体に\_onkeydown\_イベントを追加する必要はありませんが、それが唯一の方法である場合は、追加する必要があります。</p> </div> <div class="paragraph"> <p>この問題は <a href="https://stackoverflow.com/questions/905222/javascriptenter-key-press-event">question 905222</a>と似ていますが、私の意見ではそれ自体の問題に値するものです。</p> </div> <div class="paragraph"> <p>編集:また、私は人々がこれが良いスタイルではないという問題を提起しているのを見ました。 同意する! それはクライアントの要求です:(</p> </div>
enterキーを押すとjavascriptのタブのように動作する
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>私はandrewが提案した非常に効果的な論理を使いました。 そしてこれは私のバージョンです:</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>$( 'body')。on( 'キーダウン'、 '入力、選択、テキストエリア'、関数(e){var self = $(this)、form = self.parents( 'form:eq(0)')、 if(e.keycode == 13){focusable = form.find( '入力、a、選択、ボタン、テキストエリア')。filter( ':visible'); next = focusable.eq(focusable.index) (this)1); if(next.length){next.focus();} else {form.submit();} return false;}});</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"sect1\">\n<h2 id=\"\\_tabキーのように動作するようにenterキーをマッピング\">[tab]キーのように動作するように[enter]キーをマッピング</h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>私はhttps://stackoverflow.com/users/714905/andre-van-zuydam [andre van zuydam]の答えを書き換えました。 これはenterとshift enterの両方を捉えます。 タブを前方に入力し、shift enterタブを後方に入力します。</p>\n</div>\n<div class=\"paragraph\">\n<p>また、フォーカスされている現在のアイテムによって「+ self +」が初期化される方法を書き直しました。 フォームもそのように選択されています。 これがコードです:</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>// map [enter] key to work like the [tab] key\n// daniel p. clark 2014\n\n// catch the keydown for the entire document\n$(document).keydown(function(e) {\n\n // set self as the current item in focus\n var self = $(':focus'),\n // set the form by the current item in focus\n form = self.parents('form:eq(0)'),\n focusable;\n\n // array of indexable/tab-able items\n focusable = form.find('input,a,select,button,textarea,div[contenteditable=true]').filter(':visible');\n\n function enterkey(){\n if (e.which === 13 &amp;&amp; !self.is('textarea,div[contenteditable=true]')) { // [enter] key\n\n // if not a regular hyperlink/button/textarea\n if ($.inarray(self, focusable) &amp;&amp; (!self.is('a,button'))){\n // then prevent the default [enter] key behaviour from submitting the form\n e.preventdefault();\n } // otherwise follow the link/button as by design, or put new line in textarea\n\n // focus on the next item (either previous or next depending on shift)\n focusable.eq(focusable.index(self) + (e.shiftkey ? -1 : 1)).focus();\n\n return false;\n }\n }\n // we need to capture the [shift] key and check the [enter] key either way.\n if (e.shiftkey) { enterkey() } else { enterkey() }\n});</pre>\n</div>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"\\_理由\\_textarea\">理由* <code>+ textarea +</code> *</h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>含まれているのは、私たちが「* do *」タブ付けしたいからです。 また、一度入ってしまえば、enterのデフォルトの動作で新しい行が挿入されるのを止めたくはありません。</p>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"\\_理由\\_a\\_および\\_button\">理由* <code>+ a +</code> <strong>および</strong> <code>+ button +</code> *</h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>デフォルトのアクションである \"<strong>と</strong>\"がまだ次の項目にフォーカスすることを許可するのは、それらが常に別のページをロードするわけではないからです。 アコーディオンやタブ付きコンテンツなどのトリガー/効果がある可能性があります。 そのため、デフォルトの動作を起動し、そのページがその特殊効果を発揮したとしても、それが原因で次の項目に移動したい場合があります。</p>\n</div>\n</div>\n</div>\n", "name": "", "is_accepted": false } ]
b6a36cf4e48b456fed3845e2c8bcbd9a
<div class="sect4"> <h5 id="\_askmeflash\_comのようなwebサイトの構築">askmeflash.comのようなwebサイトの構築</h5> <div class="paragraph"> <p>私はhtmlの世界は初めてです。 私はすべてのウェブサイトをflexで構築しています。 html、php、java(architect)、mysql(oracle dba)の概念がありますaskmeflash.comのようなwebサイトを構築するためのヘルプを探しています。 というのは</p> </div> <div class="paragraph"> <p>そのようなビルドに使用できるフレームワークはありますか? このようなウェブサイトを構築するには何を学ぶべきですか? どのツールを使用する必要がありますか?</p> </div> <div class="paragraph"> <p>ご協力ありがとうございました</p> </div> <div class="paragraph"> <p>よろしく</p> </div> <div class="paragraph"> <p>ブジ</p> </div> </div>
askmeflash.comのようなwebサイトの構築
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>bujji、askmeflash.comには魔法のようなものは何もありません。 これは、単純なwebアプリケーションが行うように、ユーザー管理システムで情報の入出力を処理する簡単なサイトです。 基本的には同じことなので、基本的な概念に関するcmsの構築に関する本を読むことをお勧めします。 これは、次の場合に私を元に戻したものです:http://www.sitepoint.com/books/phpmysql4/</p>\n</div>\n<div class=\"paragraph\">\n<p>フレームワークに関しては、あなたが言及したようにphp / mysqlを使用している場合、今日の状況を支配しているように見える2つのフレームワークはzend framework(framework.zend.com)とcode igniter(codeigniter.com)です。 phpとooの概念の内と外の基本的な知識がなくても試してはなりません。 zendは特に非常に強力ですが、最初は混乱する可能性があります。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
998e30676a462e35146da7e20c19db63
<div class="sect4"> <h5 id="\_cシリアル化を使用してカスタム形式のバイナリファイルを読み取ることはできますか">c#シリアル化を使用して、カスタム形式のバイナリファイルを読み取ることはできますか?</h5> <div class="paragraph"> <p>c#プログラムに読み込むカスタムバイナリファイルがあります。</p> </div> <div class="paragraph"> <p>msbファースト、lsbファースト、変数の順序が異なるいくつかの異なるフォーマットがあります。</p> </div> <div class="paragraph"> <p>現在、適切なバイト数を一度に1つずつ読み取るクラスがあります。</p> </div> <div class="paragraph"> <p>非常に遅いので、できる限りパフォーマンスを改善したいと考えています。</p> </div> <div class="paragraph"> <p>シリアル化のパフォーマンスは向上する可能性がありますか? もしそうなら、これは私が記述したシナリオで可能ですか? binaryformatterをビッグ/リトルエンディアン形式にカスタマイズすることは可能ですか?</p> </div> <div class="paragraph"> <p>ありがとう。</p> </div> </div>
c#シリアル化を使用して、カスタム形式のバイナリファイルを読み取ることはできますか?
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>`binaryformatter`でそれを行うことはできません-オブジェクトの周りに追加のメタデータ/パディングを期待します。 「ストリーム」から、またはバイナリリーダーを介して同様に手動で読み取る必要があります。</p>\n</div>\n<div class=\"paragraph\">\n<p>いくつかの非常に類似したコードを実行したら、ストリームの上部にある独自のリーダーを作成します。次のようなメソッドを使用します。 &gt;&gt; `)バイトを組み立てます。 ただし、\\_importantly\\_バッキングバッファーを使用して、基になるストリームへの呼び出しの量を減らします(バッファーを使用しても、許容できないほど遅くなる可能性があります)。</p>\n</div>\n<div class=\"paragraph\">\n<p>これを行うprotobuf-netのコードを紹介します&#8230;&#8203; 特にhttp://code.google.com/p/protobuf-net/source/browse/trunk/protobuf-net/protoreader.cs [<code>protoreader</code>]を例に挙げます。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre> ///\n /// reads an unsigned 32-bit integer from the stream; supported wire-types: variant, fixed32, fixed64\n ///\n public uint readuint32()\n {\n switch (wiretype)\n {\n case wiretype.variant:\n return readuint32variant(false);\n case wiretype.fixed32:\n if (available &lt; 4) ensure(4, true);\n position += 4;\n available -= 4;\n return ((uint)iobuffer[ioindex++])\n | (((uint)iobuffer[ioindex++]) &lt;&lt; 8)\n | (((uint)iobuffer[ioindex++]) &lt;&lt; 16)\n | (((uint)iobuffer[ioindex++]) &lt;&lt; 24);\n case wiretype.fixed64:\n ulong val = readuint64();\n checked { return (uint)val; }\n default:\n throw createexception();\n }\n }</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>(ここでは <code>wiretype</code> \\_broadly\\_はエンディアンなどの指標として機能しますが、それは重要ではありません)</p>\n</div>\n<div class=\"paragraph\">\n<p>`fixed32`実装を見る:</p>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>`ensure`は、少なくとも4バイト以上が確実に\nバッキングバッファー(必要に応じてさらにフェッチ)</p>\n</li>\n<li>\n<p>論理的な位置を追跡できるように、いくつかのカウンターをインクリメントします\nバッファ</p>\n</li>\n<li>\n<p>バッファからデータを読み取ります\\_</p>\n</li>\n</ul>\n</div>\n<div class=\"paragraph\">\n<p>フォーマットのリーダーをお持ちの方は、逆シリアル化がはるかに簡単になります。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>いいえ、動作しません。 それは可能ですが、変換によるオーバーヘッドによりパフォーマンスが低下する可能性があります。</p>\n</div>\n", "name": "", "is_accepted": false } ]
5d98b5ef42e1943fd0fe15fe6d2d9343
<div class="paragraph"> <p>動的linqを作りたい。</p> </div> <div class="paragraph"> <p>しかし、テーブルを動的に設定したい(from節)</p> </div> <div class="paragraph"> <p>これは可能ですか?</p> </div> <div class="paragraph"> <p>マルコム</p> </div>
linq - 動的linqを使用してfrom句を動的に指定することは可能ですか?
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>いつものように、それは依存します;-p</p>\n</div>\n<div class=\"paragraph\">\n<p>linq拡張メソッドまたはクエリ構文を使用する場合、いいえ:これは、「+ iqueryable 」と密結合します。「 t +」はソースタイプです。 シナリオによっては、ジェネリックが選択肢になる場合があります。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>public iqueryable get(int id) where t : somebaseclass\n{\n return getdata().where(row=&gt;row.someprop == id);\n}</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>たとえば、 <code>+ gettable()+</code>(および特別に作成されたデータオブジェクト)を使用して、上記をlinq-to-sqlで動作させることができます。 もちろん、文字列からジェネリックに到達するには、リフレクション( <code>+ makegenericmethod +</code>)を使用する必要があります-簡単ではありません!</p>\n</div>\n<div class=\"paragraph\">\n<p>あなたはここで正確なシナリオを明確にすることができますか?</p>\n</div>\n<div class=\"paragraph\">\n<p>それは\\_あなたはここで普通のコマンドを使うべきだと思うかもしれません… たとえば、おそらくhttp://msdn.microsoft.com/en-us/library/system.data.linq.datacontext.executequery.aspx[executequery]で、これは文字列コマンドを受け取り、データを型指定されたオブジェクトにロードします。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>私はあなたがsqlの世界から新たにやってくる可能性があると思います、そしてそうです、そしてそう、あなたがしたい最初のことは文字列からクエリを構築することです(私もそうしたかったです)。 しかし、linqでは、文字列を意識することはあまり望まないので、文字列名の代わりに何らかの種類のテーブルをクエリに送信できる場合は、linqを使用するとよいでしょう。 それはお互いに有利な状況です:)</p>\n</div>\n<div class=\"paragraph\">\n<p>そうです、なぜあなたは本当に文字列としてテーブル名が欲しいのか、いくつかの例を挙げてください:)</p>\n</div>\n", "name": "", "is_accepted": false } ]
bfb8d81ab747c5d21eb87756b865e893
<div class="paragraph"> <p>asp.net / c#アプリから呼び出す必要があるcライブラリがありますが、これをどのように実行すればよいでしょうか。</p> </div>
.netからcライブラリを呼び出す方法
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>{空} [dllimport]</p>\n</div>\n<div class=\"paragraph\">\n<p><a href=\"http://pinvoke.net/をご覧ください\" class=\"bare\">http://pinvoke.net/をご覧ください</a> - それであなたはうまくいくはずです! がんばろう。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>p / invokeはここでのあなたの友達です。あなたが本当の「生の」dllを意味し、cで実装されたcomオブジェクトを意味しないのなら、</p>\n</div>\n", "name": "", "is_accepted": false } ]
4564a42e75ce7e4a95a4b40ac828fb64
<div class="sect4"> <h5 id="\_windowsコンピューター用のasp\_netのアラームタイプ">windowsコンピューター用のasp.netのアラームタイプ</h5> <div class="paragraph"> <p>基本的に、ユーザーがコンピューターにログインしたときに毎朝開くポップアップスケジュールを設定する方法が必要です。 彼のコンピューターにインストールするアプリケーション。 何を使うべきかよくわかりませんか? あらゆる方向</p> </div> </div>
windowsコンピューター用のasp.netのアラームタイプ
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>visual studioを使用してこれに似た何かをした2つの方法と\n.net language are:</p>\n</div>\n<div class=\"paragraph\">\n<p> 1)windowsサービスの作成</p>\n</div>\n<div class=\"paragraph\">\n<p> 2)ユーザー281693の説明に従って、タスクスケジューラから実行されるコンソールアプリケーションを作成する</p>\n</div>\n<div class=\"paragraph\">\n<p>imoコンソールアプリ+タスクスケジューラが最も簡単です。 windowsサービスでは、もう少しセットアップが必要です。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>windowsタスクスケジューラを使用して実行できます。 windowsスケジューラに移動します。 タスクを追加し、ユーザーがログオンしたときに実行することを選択します。</p>\n</div>\n", "name": "", "is_accepted": false } ]
30462a1037a90777748b582c3c4302d2
<div class="sect4"> <h5 id="\_呼び出された関数から呼び出し元の関数名を取得">呼び出された関数から呼び出し元の関数名を取得</h5> <div class="paragraph"> <p><em><em>\_ </em><em> <strong>可能な重複:</strong> + <a href="https://stackoverflow.com/questions/171970/how-can-i-find-the-method-that-c​​alled-the-current-method" class="bare">https://stackoverflow.com/questions/171970/how-can-i-find-the-method-that-c​​alled-the-current-method</a> [現在のメソッドを呼び出したメソッドを見つける方法方法?] </em><em> </em>\_</em></p> </div> <div class="paragraph"> <p>c#で呼び出された関数から呼び出し元の関数名を取得する方法を教えてください。</p> </div> </div>
呼び出された関数から呼び出し元の関数名を取得
codeflow.site
2020.10
[ { "text": "<div class=\"literalblock\">\n<div class=\"content\">\n<pre>new stackframe(1、true).getmethod()。name</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>リリースビルドでは、コンパイラが呼び出されるメソッドをインライン化する場合があることに注意してください。その場合、上記のコードは呼び出し元の呼び出し元を返します。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>[methodimpl(methodimploptions.noinlining)]</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>これにより、自分がいるメソッドの名前がわかります。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>string currentmethod = system.reflection.methodbase.getcurrentmethod()。名前。</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>パフォーマンスが低下する可能性があるため、注意して使用してください。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>呼び出し元を取得するには、次のようにします。stacktrace trace = new stacktrace(); int caller = 1;\n\nstackframe frame = trace.getframe(呼び出し元);\n\n文字列callername = frame.getmethod()。名前。</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>これはスタックウォークを使用してメソッド名を取得します。 callerの値は、コールスタックがどれだけ上がるかです。 遠くに行かないように注意してください。</p>\n</div>\n", "name": "", "is_accepted": false } ]
53c5a223f9319d2299ae502b34031ad8
<div class="paragraph"> <p>データセット内で複数の列から特定の値を持つレコードを見つける必要があります。 主キーが必要で、検索値が一意でない可能性があるため、findまたはcontainsメソッドは使用できません。 データセットには、検索を高速化するために使用できるインデックス(sqlテーブルによく似ています)がありますか。 今のところ私はdatasetをループして各列の比較をしていますが、この方法は非常に遅いです(私のデータセットは600k行あります)。</p> </div> <div class="paragraph"> <p>ありがとう</p> </div>
c#データセットインデックス
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>検索条件に従って検索できるdatatable selectメソッドを使用できます。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>datarow [] myrows = ds.tables [0] .select( \"intcol = 0 or stringcol = 'yoursearch'\");</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
569a1c08b5d8e1b7fcfa2420c431d82e
<div class="paragraph"> <p>私はc拡張を含む私のrubyコードのためのドキュメンテーションを生成するのにrdocを使っていますが、私は私のメソッドの引数に問題があります。 rdocはそれらの名前を正しく解析せず、代わりにp1、p2などを使用します。</p> </div> <div class="paragraph"> <p>それで、最初に、私の拡張は実際にはcとしてコンパイルされるので、私はこのように見える関数定義を使わなければなりません:</p> </div> <div class="literalblock"> <div class="content"> <pre>静的value mymethod(value自己、value flazm、value saszm){return qnil; }</pre> </div> </div> <div class="paragraph"> <p>rdocはこのような古いスタイルの "c"定義を期待しているようです。</p> </div> <div class="literalblock"> <div class="content"> <pre>静的value mymethod(self、flazm、saszm)value自己。 value flazm;値saszm。 {return qnil; }</pre> </div> </div> <div class="paragraph"> <p>私はこの仕事をすることができるとにかくありますか?</p> </div>
どうすればrdocにcの拡張子からメソッドの引数を正しく読み込ませることができますか?
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>rdocは、cの拡張機能*の引数名についてはまったくわかりません。 rdocはこのようにして引数の文字列をコンパイルします。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>meth\\_obj.params = \"(\" + (1..p\\_count).map{|i| \"p#{i}\"}.join(\", \") + \")\"</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>ソースフォーマットを変更しても意味がありません。</p>\n</div>\n<div class=\"paragraph\">\n<p>ドキュメントを改善するには、 `+ call-seq `ディレクティブを使用できます。 デフォルトの ` method(p1、p2)+`の代わりに使用されるメソッドを呼び出す1つ以上の方法を指定できます。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>/*\n * call-seq:\n * my\\_method(flazm, saszm) -&gt; nil\n * my\\_method(bunny) { |fluffy\\_ears| ... } -&gt; true or false\n *\n * method description here.\n */\nstatic value\nmymethod(value self, value flazm, value saszm)\n{\n return qnil;\n}</pre>\n</div>\n</div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>\\_他のことについても無知です。 正規表現ベースの「解析」\n非常に素朴です。</p>\n</li>\n</ul>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
e685bf06613cc8ec84eabe0deac7aa3d
<div class="paragraph"> <p>getter / setterメソッドではないオブジェクトメソッド内からオブジェクトのプロパティにアクセスするための「純粋主義者」または「正しい」方法は何ですか?</p> </div> <div class="paragraph"> <p>オブジェクトの外側からgetter / setterを使うべきだと私は知っていますが、内側からはあなたがするだけです:</p> </div> <div class="paragraph"> <p>java:</p> </div> <div class="literalblock"> <div class="content"> <pre>string property = this.property;</pre> </div> </div> <div class="paragraph"> <p>php:</p> </div> <div class="literalblock"> <div class="content"> <pre>$ property = $ this-&gt; property;</pre> </div> </div> <div class="paragraph"> <p>それとも、</p> </div> <div class="paragraph"> <p>java:</p> </div> <div class="literalblock"> <div class="content"> <pre>string property = this.getproperty();</pre> </div> </div> <div class="paragraph"> <p>php:</p> </div> <div class="literalblock"> <div class="content"> <pre>$ property = $ this-&gt; getproperty();</pre> </div> </div> <div class="paragraph"> <p>私のjavaが少し遅れているのを許してください、私がjavaでプログラムしてから1年が経ちました&#8230;&#8203;</p> </div> <div class="paragraph"> <p><strong>編集:</strong></p> </div> <div class="paragraph"> <p>私が個人的な、または保護された変数/プロパティについてだけ話していると人々は想定しているようです。 オブジェクト指向を学んだとき、たとえそれが公開されていたとしても、すべてのプロパティに対してゲッター/セッターを使うように教えられました(そして実際には変数/プロパティを決して公開しないように言われました)。 だから、私は始めから誤った仮定から始めているかもしれません。 この質問に答える人々はあなたが公共の財産を持っているべきで、ゲッターやセッターを必要としないと言っているのかもしれませんが、それは私が教えたことや私が話していたことに反します。そうですね。 それはおそらく別の質問のための良いトピックです&#8230;&#8203;</p> </div>
オブジェクトメソッド内からどのようにobjectプロパティにアクセスしますか?
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>これには宗教戦争の可能性がありますが、ゲッター/セッターを使用している場合は、内部でも使用する必要があります。両方を使用すると、メンテナンスの問題が発生します(例: 誰かが、そのプロパティが設定されるたびに実行する必要があるセッターにコードを追加し、そのプロパティはそのセッターが呼び出されることなく内部的に設定されています)。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>個人的には、一貫性を保つことが重要だと思います。 ゲッターとセッターがある場合は、それらを使用してください。 フィールドに直接アクセスするのは、アクセサが多くのオーバーヘッドを抱えているときだけです。 不必要にコードを膨らませているように感じるかもしれませんが、将来的には頭痛の種を大幅に減らすことができます。 古典的な例:</p>\n</div>\n<div class=\"paragraph\">\n<p>後で、あなたはフィールドが機能する方法を変えることを望むかもしれません。 たぶんそれはオンザフライで計算されるべきであるか、あるいは多分あなたはバッキングストアのために異なるタイプを使用したいと思うでしょう。 あなたが直接プロパティにアクセスしているならば、そのような変更は1つのうねりのための膨大なコードを壊すことができます。</p>\n</div>\n", "name": "", "is_accepted": false } ]
92d7783a829ca0e02ccc9e392b3658c2
<div class="paragraph"> <p>互いに独立した状態で、同時に実行されている単一のインスタンスを複数開きます。 それが可能であれば.net windowsフォームアプリケーションで可能ですか。</p> </div> <div class="paragraph"> <p>基本的に私は<strong> 1対1 </strong>チャットウィンドウを持つ "<strong>。net windows form </strong>"を使ってチャットアプリケーションを作りたいです。</p> </div>
.net c sharp windowsフォームアプリケーション:同じフォームの複数のインスタンスを開く
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>はい、確かに可能です。</p>\n</div>\n<div class=\"literalblock\">\n<div class=\"content\">\n<pre>form1 f1 = new form1(); form1 f2 = new form1(); f1.show(); f2.show();</pre>\n</div>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"literalblock\">\n<div class=\"content\">\n<pre>myform f1 = new myform(); f1.show();\n\nmyform f2 = new myform(); f2.show();\n\n// etc.</pre>\n</div>\n</div>\n", "name": "", "is_accepted": false } ]
4ddffa57561ae478935f5c1ab9589a48
<div class="paragraph"> <p>次のようなコードスニペットがあるとします。 gooはfooを呼び出し、gooとfooによって作成されたdatatableはrows.addのみを呼び出します。 それからgooはfooからのdatatableインスタンスの更新されたデータを使います。</p> </div> <div class="paragraph"> <p>私の質問では、私のシナリオでは、refパラメータを指定して使用した場合と使用しなかった場合の違いについて説明します。</p> </div> <div class="paragraph"> <p>c#.net 3.5 vsts2008を使用しています。</p> </div> <div class="literalblock"> <div class="content"> <pre>void foo(ref datatable dt){// rowを呼び出す。dtに追加} void goo(){datatable dt1 = ...; // datatableの新しいインスタンスをここに作成しますfoo(ref dt1); //ここでfooによってdatatableの更新された内容を読む}</pre> </div> </div>
参照型パラメータの問題を渡すc#
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p><code>dt`が指すものを変更するつもりなら、 <a href=\"http://msdn.microsoft.com/en-us/library/14akc2c7(vs.71).aspx\"></code> ref`</a>を使うだけです。 例えば、あなたがそれを\\_異なる\\_ datatable(あるいは、 'datatable&#8217;から派生した型)に置き換えたい場合。</p>\n</div>\n<div class=\"paragraph\">\n<p>この場合、あなたはただ\\_using\\_ <code>dt`なので、</code> ref`を使う理由はありません。 <code>datatable`はクラスなので、それに対して行われた変更は</code> foo`の外から見えます。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "<div class=\"paragraph\">\n<p>別のオブジェクトを取り戻すつもりがない限り、refパラメータは必要ありません。 datatableは参照オブジェクトなので、実際に渡しているのはポインタへのポインタです。 あなたが意図しているのがあなたのインスタンスに変更を加えるために呼び出された関数だけであるならば、あなたはrefを必要としません。</p>\n</div>\n", "name": "", "is_accepted": false } ]
b44b5297850ef783579adfe72911175d
<div class="paragraph"> <p>ユーザーのロケールに基づいてタイムゾーンコード(bstやgmtなど)を表示したいです。 ただし、各ブラウザではnew date()。tolocalestring()とは異なる場所に配置されており、一部のブラウザ(operaなど)ではまったく使用できません。</p> </div> <div class="paragraph"> <p>データベースまたはタイムゾーンコードの構造をタイムゾーンオフセットに対して取得することが解決策のように見えますが、複数の一致が存在する可能性があります(例: bst == gmt)そして私はそのようなリストさえ見つけることができません。</p> </div> <div class="paragraph"> <p>これはできないということですか?</p> </div>
bst / gmt / cetなどのタイムゾーンコードはどのようにして取得できますか?
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>あなたのコードのタイムゾーンの違いを手動で定義する必要があります。 gmt時間はutc(ズールー)時間と異なるため、複雑です。 gmtには夏時間の変更が含まれていますが、utcには夏時間がなく、その他の点では同じタイムゾーン表現です。</p>\n</div>\n<div class=\"paragraph\">\n<p>さらに混乱しているのは、すべての政治ゾーンがそれぞれのタイムゾーンを時間数の例によって異なると定義しているわけではないということです。 インドはutc 5.5時間、アフガニスタンはutc 4.5時間です。 これらの国々は夏時間を守っていないので、utcでありgmtではないことに注意してください。 南西太平洋のいくつかの小さな島国は15分の時間で変化する可能性があります。</p>\n</div>\n<div class=\"paragraph\">\n<p>それからいくつかの政治的な時間帯定義は内部の区別を持っています。 アリゾナは通常、米国太平洋標準時(gmt - 8時間)であると見なされます。ただし、夏時間が守られないため、アリゾナは実際にはutc - 8であるため、米国のマウンテンタイムゾーンになります。</p>\n</div>\n<div class=\"paragraph\">\n<p>このような混乱の中で、タイムゾーンには何百もの定義がありますが、そのいくつかは政治的境界が変わるにつれて変わります。 ユーザーがページを要求したときのutc時間を表す既知の値を反映するように、サーバーからjavascriptの定数を動的に調整して、ユーザーのクロック時間を使用するか、utc時間に調整します。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]
a9882ea0f18c94e8617ebd0233570c9b
<div class="sect4"> <h5 id="\_retsデータを取り込み再送信するwebサービスを作成する">retsデータを取り込み、再送信するwebサービスを作成する</h5> <div class="paragraph"> <p>私はhttp://www.rets.org/documentation[rets]について読み込もうとしていますが、ほとんど理解していません。</p> </div> <div class="paragraph"> <p>基本的に、データをurlに投稿するには、rets soap webサービスを作成する必要があります。 asp.netとc#でこれを実行しようとしています。</p> </div> <div class="paragraph"> <p>ユーザー/ブローカーが入力したデータを受信し、rets準拠の標準xmlで再送信する必要があります。 rets 2.0に準拠しているこれらのクライアントに送信されます。 ここでの課題には、入力されたデータがrets 2.0に準拠していることを確認することが含まれます。</p> </div> <div class="paragraph"> <p>誰もが、rets 2.0標準に準拠するために何をする必要があるのか​​、どのように始めるのか、高レベルで提案できますか?</p> </div> </div>
retsデータを取り込み、再送信するwebサービスを作成する
codeflow.site
2020.10
[ { "text": "<div class=\"paragraph\">\n<p>まず、rets標準に準拠する必要があるのはあなたではなく、接続先のサーバーです。</p>\n</div>\n<div class=\"paragraph\">\n<p><a href=\"http://www.rets.org/cms/documentationを参照してください。\" class=\"bare\">http://www.rets.org/cms/documentationを参照してください。</a></p>\n</div>\n<div class=\"paragraph\">\n<p>これらの資格情報メソッドを使用し、それらが提供するスキーマにも準拠する必要があります。</p>\n</div>\n<div class=\"paragraph\">\n<p>retsに関する1つの警告。 「規格のすごいところは、選択できるものが非常に多いことです」ということわざにあるようなものです。 retsであると言うサーバーは、常にスキーマに準拠しているわけではありません。 さらに、彼らはメタデータを使用して、必要な重要なフィールド(プロパティアドレスなど)を保存することを好みます。</p>\n</div>\n<div class=\"paragraph\">\n<p>高いレベルでは、retsコネクタを使用してサーバーに接続し、標準に準拠するxmlを認証してプルバックします。 ただし、メタデータを確認しない限り、必要なものがすべて見つかるとは限りません。</p>\n</div>\n", "name": "", "is_accepted": true }, { "text": "", "name": "", "is_accepted": false } ]