Categories
askquestion

Qt Python radiobutton: activate event

Qt Python radiobutton: activate event

Ask Question

Asked
10 years, 4 months ago

Active
3 years ago

Viewed
8k times

.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}

4

1

I am developing a project for one customer, where the design has a radio button with exclusive options.

Here is a piece of the code that runs and show two nice radio buttons:

self.performGroupBox = QtGui.QGroupBox(self.centralwidget)
self.performGroupBox.setGeometry(QtCore.QRect(50, 20, 181, 121))
self.performGroupBox.setObjectName(“performGroupBox”)

self.consultRadioButton = QtGui.QRadioButton(self.performGroupBox)
self.consultRadioButton.setGeometry(QtCore.QRect(40, 30, 84, 18))
self.consultRadioButton.setObjectName(“consultRadioButton”)

self.insertRadioButton = QtGui.QRadioButton(self.performGroupBox)
self.insertRadioButton.setGeometry(QtCore.QRect(40, 60, 84, 18))
self.insertRadioButton.setObjectName(“insertRadioButton”)

it just looks like:

perform:
() Consult
() Insert

The point here is, how to know what choice was marked: “consultRadioButton” or “insertRadioButton”?

Here is a sample on trying to get this information:

if self.consultRadioButton.isChecked():
self.call_Consult()
if self.insertRadioButton.isChecked():
self.call_Insert()

But it didn’t do anything when the radiobutton is chosen.

Otherwise, using connect should be another option:

QtCore.QObject.connect(self.consultRadioButton, QtCore.SIGNAL(“currentIndexChanged(QString)”), self.call_Consult)
QtCore.QObject.connect(self.insertRadioButton, QtCore.SIGNAL(“currentIndexChanged(QString)”), self.call_Insert)

But it didn’t work either.

What is missing here… Any suggestion?

All comments are highly welcome and appreciated.

python user-interface qt qt4 pyqt

share|improve this question|
follow
||||

asked Nov 18 ’09 at 5:56

ThreaderSlashThreaderSlash

1,23322 gold badges2626 silver badges4242 bronze badges

add a comment
 | 

4 Answers
4

Active

Oldest

Votes

10

Try this signal instead:

void toggled (bool)

https://doc.qt.io/qt-5/qabstractbutton.html#toggle

And example usage:
https://www.tutorialspoint.com/pyqt/pyqt_qradiobutton_widget.htm

share|improve this answer|
follow
||||

edited Mar 22 ’17 at 7:46

answered Nov 18 ’09 at 7:10

Piotr ByziaPiotr Byzia

3,10477 gold badges3939 silver badges6262 bronze badges

The link is dead now.

– Pavel V.
Aug 28 ’15 at 11:10

add a comment
 | 

1

Here is solution… now working:

QtCore.QObject.connect(self.radioButton1,QtCore.SIGNAL(“toggled(bool)”),self.radio_activateInput)

when have the parameter bool included into toggled to signal, it worked.

share|improve this answer|
follow
||||

answered Nov 19 ’09 at 5:53

ThreaderSlashThreaderSlash

1,23322 gold badges2626 silver badges4242 bronze badges

3

piobyz gave you the name of the right signal — and then you re-answered yourself and denied him the big green check mark? Cold, man. That’s cold.

– Brandon Rhodes
Nov 27 ’10 at 3:24

@Brandon Rhodes – The answer by piobyz wasn’t complete, as it only mentioned toggled(bool). But thanks for calling my attention, thus I just gave him the big green check mark, as you can check here – if there is anything else you mind, just let me know: stackoverflow.com/questions/1753939/…

– ThreaderSlash
Dec 14 ’13 at 1:50

No, there is not anything else that I mind! And thank you for providing this extra information, showing how @piobyz’s answer looks when put into the connect() call. Thanks for giving him credit, and good luck in your future work on Stack Overflow!

– Brandon Rhodes
Dec 29 ’13 at 4:30

add a comment
 | 

0

Take a look at QButtonGroup class

share|improve this answer|
follow
||||

answered Dec 19 ’09 at 23:11

Kamil KlimekKamil Klimek

11.7k22 gold badges3333 silver badges5454 bronze badges

add a comment
 | 

0

# Assuming ‘self’ is a QtGui object
self.consultRadioButton = QtGui.QRadioButton(‘Consult’)
# I prefer layout managers, but that is another topic
self.consultRadioButton.setGeometry(QtCore.QRect(40, 30, 84, 18))
self.consultRadioButton.setObjectName(“consultRadioButton”)

self.insertRadioButton = QtGui.QRadioButton(‘Insert’)
self.insertRadioButton.setGeometry(QtCore.QRect(40, 60, 84, 18))
self.insertRadioButton.setObjectName(“insertRadioButton”)

# Set Default
self.consultRadioButton.setChecked(True)

# Create a Group and make it exclusive
self.methodGrp.setExclusive(True)

# Add radio buttons to group
self.methodGrp.addButton(self.consultRadioButton)
self.methodGrp.addButton(self.insertRadioButton)

# Connect Event handlers
self.consultRadioButton.clicked.connect(self.callConsult)
self.insertRadioButton.clicked.connect(self.callInsert)

share|improve this answer|
follow
||||

answered Nov 28 ’12 at 9:23

Bill KiddBill Kidd

80688 silver badges1212 bronze badges

add a comment
 | 

Your Answer

Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.

Draft saved
Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Submit

Post as a guest

Name

Email
Required, but never shown

Post Your Answer

Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged python user-interface qt qt4 pyqt or ask your own question.

The Overflow Blog

A practical guide to writing technical specs

Podcast 224: Cryptocurrency-Based Life Forms

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Triage needs to be fixed urgently, and users need to be notified upon…

Dark Mode Beta – help us root out low-contrast and un-converted bits

Technical site integration observational experiment live on Stack Overflow

Linked

2

Event Handling in Qt

Related

4789Calling an external command from Python5616What are metaclasses in Python?2093Is there a way to run Python on Android?3071Finding the index of an item in a list5894Does Python have a ternary conditional operator?2791How to get the current time in Python2210Manually raising (throwing) an exception in Python3599Does Python have a string ‘contains’ substring method?

Hot Network Questions

Train Leela Chess against myself

What is symplectic geometry?

Making the exoplanet with the most complicated seasons

What, if any, are the benefits of tying health insurance to employment (as in the US) over other systems?

Is using gender-specific language when talking about inanimate things can be wrong in any sense?

What is the exact meaning of being at work?

Where can I find the original “On the New Rules for Destroying Countries” (1901) by Liang Qichao?

How can I see what process spiked CPU usage and froze the system a few seconds ago?

Why did early game consoles need the TV to be tuned to channel 3 or 4?

Given four variables with five known pairwise products, can the sixth pairwise product be determined?

Whom to cite from an article: the reporter or the person who provided a quote to the reporter?

Sci-fi short story about a man being pulled up by the cops for walking around

awk starting from a fixed text, until the first blank line

Interpretation of the action in classical mechanics

Why doesn’t the nuclear fusion in a star make it explode?

What is cool aid?

Emoji Puzzle – UNESCO World Heritage Sites

How do I raise 30k to keep my best friend in college?

What would be reasons NOT to invest in a small company that has great leadership, talented workers and an amazing product?

Can it be dangerous to look at the sun through the viewfinder?

Best method to determine temperature while heating sugar

Distance between a point and a curve

Is there a way for someone to be un-cloneable?

Etymology of レントゲン?

more hot questions

Question feed

Subscribe to RSS

Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

default

Categories
askquestion

Online credit card payment processing on behalf of others

Online credit card payment processing on behalf of others

Ask Question

Asked
10 years, 4 months ago

Active
7 years ago

Viewed
2k times

.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}

5

Does anyone know a way to facilitate payment between two parties via our website similar to how eBay facilitates payments between sellers and buyers, with buyers using their credit cards to make the purchases? We built a solution around PayPal, but now PayPal is telling us that we cannot use it because that is against the credit card association rules.

Here’s what they wrote:

Per our Acceptable Use Policy, under credit card association rules, PayPal
cannot permit the use of the PayPal service as a funding method for payment
processors to collect payments on behalf of merchants.

I would be greatful for any leads. As a start-up, third-party payment aggregation services are very cost-prohibitive.

c# paypal payment-gateway

share|improve this question|
follow
||||

asked Nov 18 ’09 at 5:58

user213512user213512

Consider e-gold. I don’t know much about it, but I think they cater to a ‘broader market.’

– Heath Hunnicutt
Nov 18 ’09 at 6:06

How is this programming-related?

– David Thornley
Nov 18 ’09 at 15:46

3

My apologies if it doesn’t seem to be programming-related–I know there are many knowledgeable folks on this site eager to help, that’s why I posted it here. I also hope that a software developer similar to myself trying to launch an e-buiness might benefit from the answer to my question. Again, my apologies if this question doesn’t belong here.

– user213512
Nov 19 ’09 at 4:40

Hi did you find any solution…

– usama
Sep 1 ’17 at 10:05

add a comment
 | 

1 Answer
1

Active

Oldest

Votes

1

I think you need to set yourself up as an escrow service between the buyers and sellers. Rentacoder.com does something like this: http://www.rentacoder.com/RentACoder/DotNet/SoftwareBuyers/SoftwareBuyerFAQ.aspx#SafeProjectEscrow

If you are looking to move away from paypal and not be an escrow service yourself, look at escrow.com and its competitors to just use an escrow service.

share|improve this answer|
follow
||||

edited Nov 18 ’09 at 15:45

answered Nov 18 ’09 at 15:12

dardar

6,23377 gold badges2929 silver badges4040 bronze badges

add a comment
 | 

Your Answer

Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.

Draft saved
Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Submit

Post as a guest

Name

Email
Required, but never shown

Post Your Answer

Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

The Overflow Blog

A practical guide to writing technical specs

Podcast 224: Cryptocurrency-Based Life Forms

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Triage needs to be fixed urgently, and users need to be notified upon…

Dark Mode Beta – help us root out low-contrast and un-converted bits

Technical site integration observational experiment live on Stack Overflow

Related

2How to do PayPal/Google Checkout in an Auction style web application?9Storing credit card information with PayPal’s ‘Website Payments Pro’?1Need an API For a accepting payments on behalf of third party0How to test buyer side of a Credit Card transaction on PayPal Website Payments Pro?2Paypal direct Recurring Payments using credit/debit card not working on live. DPRP disabled for this merchant.0Send e-commerce payment to credit card, not bank account2How to use billing agreement with chained payments?0How can I prevent merchants from capturing pending Paypal authorizations?0Multi-Vendor – Peer to Peer payments in credit card and paypal

Hot Network Questions

Calculate the Degrees of a Clock Hand Based on Input Time

Undefined behaviour in vector of vectors cast

Does Controlled-U gate entangle qubits?

What metal would burn steadily in a water lamp?

Ideas for explaining 4D and higher dimensions

Why does the F-16 canopy have a K shaped “latch?”

Making the exoplanet with the most complicated seasons

Is participating in a campaign advert a firing offence for US journalists?

How to model diffusion through a membrane?

How can I make female battle mages a good investment for warfare?

Why electricity consumption is billed in watts and not amperes?

What, if any, are the benefits of tying health insurance to employment (as in the US) over other systems?

Why does “blue blazes” specify the color blue, and what is the origin of this expression as an intensifier/euphemism?

11-42t cassette with a 9 speed derailleur, will it work?

Left hand seat, is it so important?

Sci-fi short story about a man being pulled up by the cops for walking around

The Significance of Suffix -CE

Some Questions related to Linear programming

Given four variables with five known pairwise products, can the sixth pairwise product be determined?

Why were most PC’s and electronics beige back in the day?

When refer something immediately after it, should I use “a” or “the”?

How to remove Broken Fall Enchantment from play

I am a client and my work is being delegated without informing me

What’s so broken about Leadership?

more hot questions

Question feed

Subscribe to RSS

Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

lang-cs

Categories
askquestion

Using ThreadPool threads with long running ADO.NET queries. Is this scalable?

Using ThreadPool threads with long running ADO.NET queries. Is this scalable?

Ask Question

Asked
10 years, 4 months ago

Active
8 years, 4 months ago

Viewed
2k times

.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}

2

We are currently enhancing an ASP.NET app that performs quotes on a number of products.

At present the existing quote engine is basically a big stored procedure (2-3 secs per call) followed by a small amount of business logic that runs after the procedure call.

We are looking into multi-threading the call to each product in order to speed up a set of quotes.

Our current approach is to encapsulate each product quote work in a ThreadPool thread. This seems to perform much better, but I’m a little concerned that though it’s performing well with a small number of users, will it scale well in a production environment?

Please note at present we are not using async ADO.NET methods.

Note: Our code that calls the ThreadPool has a throttle that queues requests so we can only use a configurable amount of threads from the ThreadPool at one time. We also don’t need to wait for the quote results on the same page, we allow the user to progress and check for updates (a quote results page uses AJAX to check for results).

Further note: The preferred solution would be to use a message queue as the quote service is a one-way operation. However, the timescales for the project didn’t provide us time to do this.

In the meantime we are going to revise the implementation to use the async methods of ADO.NET (as that is where all the long running aspect of the process is) saving the need to use ThreadPool threads.

asp.net multithreading ado.net threadpool

share|improve this question|
follow
||||

edited Nov 18 ’09 at 12:44

spooner

asked Nov 18 ’09 at 5:59

spoonerspooner

31211 silver badge1515 bronze badges

add a comment
 | 

2 Answers
2

Active

Oldest

Votes

6

Using ThreadPool threads with long
running ADO.NET queries. Is this
scalable?

The short answer is no, it’s not scalable.

The reason is that ThreadPool threads are also used to process regular ASP.NET requests (the same is true for BeginInvoke). There are a limited number of those threads, and when they’re used up, incoming HTTP requests will block until a thread becomes available.

Although you can increase the number of threads in the ASP.NET thread pool, there are other issues, such as the fact that the number of threads isn’t fixed; it increases slowly in response to load. You can/should use async Pages, but that still leaves open the question of how you actually run your SP. It would be much better to switch to async ADO.NET methods for that part, if you can. They are also much lighter-weight than using a thread per request.

In case it helps, I cover this subject in detail in my book (Ultra-Fast ASP.NET).

share|improve this answer|
follow
||||

edited Dec 7 ’11 at 3:28

answered Nov 18 ’09 at 6:10

RickNZRickNZ

17.5k33 gold badges4242 silver badges6363 bronze badges

Hi Rick, I forgot to add, we’ve basically put a throttle around how many threads from the threadpool. I’ll revise my question.

– spooner
Nov 18 ’09 at 9:00

If you have to throttle the number of threads, won’t that also limit the number of simultaneous requests you can process? And isn’t scalability defined by how many operations you can handle at once?

– RickNZ
Nov 18 ’09 at 9:31

Fair point 🙂 How about this approach then – run all the quotes on a single ThreadPool thread (just to get the page served up and the quotes run in the background). Then in the logic of the quotes we’ll just use the Async methods of ADO.NET (which I believe uses IO threads instead).

– spooner
Nov 18 ’09 at 12:01

A scalable approach for apps with long-running queries is often to use an async Page to start the query. That uses a worker thread, but it’s OK because it’s non-blocking. You run the query itself using a native async call, such as ADO.NET async. When it completes, the EndAsync method on the page gets a callback. Alternatively, if the Page doesn’t need to see the results, then you can queue the work to a dedicated thread (not one from the ASP.NET pool). If there are also persistance issues to address (such as if the web server were to crash), then Service Broker is another possible solution.

– RickNZ
Nov 18 ’09 at 12:45

Totally agree Rick. The throttling mechanism mentioned was basically used so we don’t need to write a lot of code to provide a custom ThreadPool implementation. It just sits on top of it and queues up requests if there aren’t enough free threads and you increment the number ASP.NET threads to compensate. Calling it throttling was possibly a bad choice of words. Would love to go down the MSMQ/Service broker route but this is going to have to wait until a later phase of the work we are doing. Thanks for all your help here.

– spooner
Nov 18 ’09 at 14:38

add a comment
 | 

1

ASP.NET has built-in async handlers that let you kick off a request, it runs on a non-handler thread, and may complete on a 3rd thread (differernt from the original request handler thread) all built-in. I’ve used it tons of times.

http://msdn.microsoft.com/en-us/magazine/cc163725.aspx

Write yourself a little helper method to hook it all up.

/// <summary>
/// On load event override
/// </summary>
/// <param name=”e”>arguments to the event</param>
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
string query = this.Page.Request.QueryString[“query”];
if (!string.IsNullOrEmpty(query))
{
var pat = new PageAsyncTask(this.BeginAsync, this.EndAsync, this.TimeOut, query);
this.Page.RegisterAsyncTask(pat);
}
string me = string.Format(Format, System.Threading.Thread.CurrentThread.ManagedThreadId, “Onload”);
Trace.Write(me);
}
protected override void Render(HtmlTextWriter writer)
{
string me = string.Format(Format, System.Threading.Thread.CurrentThread.ManagedThreadId, “Render”);
Trace.Write(me);
this.Icompleted.Text = DateTime.Now.ToString();
base.Render(writer);
}
/// <summary>
/// start the async task
/// </summary>
/// <param name=”sender”>original caller</param>
/// <param name=”e”>unused arguments</param>
/// <param name=”cb”>call back routine</param>
/// <param name=”state”>saved stated</param>
/// <returns>IAsyncResult to signal ender</returns>
private IAsyncResult BeginAsync(object sender, EventArgs e, AsyncCallback cb, object state)
{
this.bsc = new YourWebServiceReferenceGoesHere();
return this.bsc.BeginGetResponseXml(“1”, (string)state, “10”, “1”, cb, state);
}

/// <summary>
/// when the task completes
/// </summary>
/// <param name=”ar”>the async result</param>
private void EndAsync(IAsyncResult ar)
{
XmlResponse response = this.bsc.EndGetResponseXml(ar);
this.bsc.Close();
this.bsc = null;
this.PostProcess(response);
}

private void TimeOut(IAsyncResult ar)
{
// currently we do nothing here.
}

/// <summary>
///
/// </summary>
private void PostProcess(XmlResponse response )
{
string me = string.Format(Format, System.Threading.Thread.CurrentThread.ManagedThreadId, “bingsearch”);
Trace.Write(me);
var xds = new XmlDataSource
{
EnableCaching = false,
CacheDuration = 0,
Data = response.Xml,
Transform = this.RemoveNamespaces()
};
this.some.DataSource = xds;
this.some.DataBind();
}

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:16

No Refunds No ReturnsNo Refunds No Returns

6,47944 gold badges2222 silver badges3636 bronze badges

I did consider using async pages, but we don’t need to wait for a response on the page that triggers the quotation process. The idea was you’d basically fire the work off in the background and then the user can view the quote results page when they need to and we use AJAX to check for results on that page.

– spooner
Nov 18 ’09 at 9:05

If you don’t want to wait, use the code above but hook up the call to EndAsync yourself. Your page won’t wait, you won’t create any threads and you subsequent calls will not be blocked.

– No Refunds No Returns
Nov 18 ’09 at 21:00

add a comment
 | 

Your Answer

Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.

Draft saved
Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Submit

Post as a guest

Name

Email
Required, but never shown

Post Your Answer

Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged asp.net multithreading ado.net threadpool or ask your own question.

The Overflow Blog

A practical guide to writing technical specs

Podcast 224: Cryptocurrency-Based Life Forms

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Triage needs to be fixed urgently, and users need to be notified upon…

Technical site integration observational experiment live on Stack Overflow

Dark Mode Beta – help us root out low-contrast and un-converted bits

Linked

0

MultiThreading in C# and how to handle

Related

135Thread vs ThreadPool343How to run a Runnable thread in Android at defined intervals?5ThreadPools vs Own Threads for long running processes3Scalability through thread economy: async operations vs. multithreaded producer/consumer queues on the thread pool?315Running code in main thread from another thread0Running `Function Pointers` Within Running `POSIX` Thread in `C` `Thread Pool`4Requests are queuing in Azure AppService though it has enough threads in threadpool

Hot Network Questions

When connecting two battery grounds together, which battery specifications can tell us the limits?

Sci-fi short story about a man being pulled up by the cops for walking around

Triangular code, triangular output

Delete statement not responding to Kill session command

Interpretation of the action in classical mechanics

How would combat work without opportunity attacks?

What would be reasons NOT to invest in a small company that has great leadership, talented workers and an amazing product?

Ideas for explaining 4D and higher dimensions

Listening for variable changes in JavaScript – LWC

I am a client and my work is being delegated without informing me

The Significance of Suffix -CE

Can it be dangerous to look at the sun through the viewfinder?

Why was Avogadro’s number chosen to be the value that it is?

Why doesn’t a go board have an ‘I’ (‘i’) column?

When using a smite spell cast on a previous turn, can you use your bonus action to apply another smite spell to the same attack?

What else can be used as flux instead of borax for silver casting?

I overstayed in US and I’m barred for ten years, but I want to visit my kid

What is nowadays called silazane?

Is participating in a campaign advert a firing offence for US journalists?

How can I make female battle mages a good investment for warfare?

Emoji Puzzle – UNESCO World Heritage Sites

My characters have been killing the same demons over and over again. How come the demons never adapt to them?

Is there an EU regulation mandating companies’ IT equipment to be changed every three months?

Why is it correct to say “me busy.”?

more hot questions

Question feed

Subscribe to RSS

Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

default

Categories
askquestion

DataType Change from Varchar(30) to Varchar(45)

DataType Change from Varchar(30) to Varchar(45)

Ask Question

Asked
10 years, 4 months ago

Active
10 years, 4 months ago

Viewed
275 times

.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}

0

I need to test a column which changed from varchar(30) to varchar(65). I don’t have a access to insert a value into that column.Is there any other way so that i can test the column?

sql

share|improve this question|
follow
||||

asked Nov 18 ’09 at 5:59

Anoop Anoop

2,00155 gold badges2424 silver badges2727 bronze badges

How about UPDATE? Do you have access to it?

– Lukman
Nov 18 ’09 at 6:08

I just have select permission on those tables

– Anoop
Nov 18 ’09 at 6:10

You don’t need to ask the same question differently. You could edit your existing question with more details, instead.

– shahkalpesh
Nov 18 ’09 at 6:11

exact duplicate of question #1753849

– marc_s
Nov 18 ’09 at 6:13

possible duplicate of SQL Server DataType Testing

– martin clayton
Aug 31 ’11 at 6:27

add a comment
 | 

3 Answers
3

Active

Oldest

Votes

2

Your best bet is to put together a testing database and make the change there first. Point your application at the test database and see what happens.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:07

stimmsstimms

37.1k2626 gold badges8585 silver badges138138 bronze badges

add a comment
 | 

0

Use “desc” in oracle or an equivalent command depending on the database to describe the table. This will list out all the table columns along with their data types.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:09

RahulRahul

11.9k1010 gold badges5454 silver badges5757 bronze badges

add a comment
 | 

0

DESC TableName shows the table structure. Isn’t that more than an assurance? 😀

share|improve this answer|
follow
||||

edited Nov 18 ’09 at 6:14

pavium

13.1k44 gold badges2828 silver badges4242 bronze badges

answered Nov 18 ’09 at 6:08

RichieRichie

8,09644 gold badges2121 silver badges3737 bronze badges

add a comment
 | 

Your Answer

Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.

Draft saved
Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Submit

Post as a guest

Name

Email
Required, but never shown

Post Your Answer

Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged sql or ask your own question.

The Overflow Blog

A practical guide to writing technical specs

Podcast 224: Cryptocurrency-Based Life Forms

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Triage needs to be fixed urgently, and users need to be notified upon…

Technical site integration observational experiment live on Stack Overflow

Dark Mode Beta – help us root out low-contrast and un-converted bits

Related

1761How to return only the Date from a SQL Server DateTime datatype524SQLite – UPSERT *not* INSERT or REPLACE1565Insert results of a stored procedure into a temporary table655SQL update query using joins3653How do I UPDATE from a SELECT in SQL Server?1893Finding duplicate values in a SQL table281Best practices for SQL varchar column length334Convert INT to VARCHAR SQL662Reset identity seed after deleting records in SQL Server

Hot Network Questions

For some learning piano at a later stage in life e.g past late 20s, what must they be aware of to make the most of it?

Best method to determine temperature while heating sugar

What would be reasons NOT to invest in a small company that has great leadership, talented workers and an amazing product?

ガードがばがばになっから meaning

What metal would burn steadily in a water lamp?

Interpretation of the action in classical mechanics

Has there even been a clinical study where healthy volunteers consented to be infected with a pathogen?

Why can’t we consider these two masses as a system in case of a pulley?

Does the New York State Governor have the authority to impose fines?

Why don’t we bleed interstitial fluid?

In most U.S. states, female genital mutilation is illegal. So why is male circumcision legal?

Why doesn’t a go board have an ‘I’ (‘i’) column?

What is the exact meaning of being at work?

How can I make road-bike rims survive tree roots on trails?

Can a student studying in U.K (with a visa) travel to Germany (with a Schengen visa) during the current travel restrictions?

Rav S.R. Hirsch and fairy tales

Bathroom exhaust fan without duct

Glideslope on ADI

LWC – Calling Javascript method from static resource 3rd party JS file

What is the most ‘understandable’ way to order sparkling water in German?

The Russian machine has a flaw

How does Windows 9x determine which disk drivers correspond to which BIOS disks/DOS drive letters?

Left hand seat, is it so important?

Who’s that pokemon (based on its etymology)?

more hot questions

Question feed

Subscribe to RSS

Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

lang-sql

Categories
askquestion

Color Themes For Eclipse Python Development

Color Themes For Eclipse Python Development

Ask Question

Asked
10 years, 5 months ago

Active
4 years, 9 months ago

Viewed
23k times

.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}

8

5

I am looking for Eclipse themes that are similar to the following and support Python/xhtml/css/js by default.

python eclipse themes

share|improve this question|
follow
||||

edited Jun 21 ’15 at 0:51

Spooky

2,77377 gold badges2222 silver badges3838 bronze badges

asked Nov 6 ’09 at 2:40

EeyoreEeyore

1,98433 gold badges3131 silver badges4949 bronze badges

add a comment
 | 

3 Answers
3

Active

Oldest

Votes

5

Here’s a dark theme and instructions on making it.
And another.

There was some discussion of this on SO already.

share|improve this answer|
follow
||||

edited May 23 ’17 at 12:24

Community♦

111 silver badge

answered Nov 6 ’09 at 5:07

Rizwan KassimRizwan Kassim

7,01422 gold badges2020 silver badges3232 bronze badges

add a comment
 | 

2

There is a whole website dedicated to color schemes in Eclipse
http://www.eclipsecolorthemes.org/

The color schemes on this site can be imported as an EPF preference file directly or alternatively via the Eclipse Color Theme Plugin found here:
http://marketplace.eclipse.org/content/eclipse-color-theme

share|improve this answer|
follow
||||

answered Oct 20 ’11 at 13:51

digitalMojodigitalMojo

3344 bronze badges

That isn’t for python though

– Flaming_Dorito
May 21 ’19 at 0:50

add a comment
 | 

1

Aptana Studio is built on Eclipse and includes themes. With PyDev it seems pretty good for Python development, although it is web-focused.

share|improve this answer|
follow
||||

answered Jul 21 ’10 at 12:42

meatvestmeatvest

83166 silver badges1111 bronze badges

add a comment
 | 

Your Answer

Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.

Draft saved
Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Submit

Post as a guest

Name

Email
Required, but never shown

Post Your Answer

Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged python eclipse themes or ask your own question.

The Overflow Blog

A practical guide to writing technical specs

Podcast 224: Cryptocurrency-Based Life Forms

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Triage needs to be fixed urgently, and users need to be notified upon…

Dark Mode Beta – help us root out low-contrast and un-converted bits

Technical site integration observational experiment live on Stack Overflow

Related

4788Calling an external command from Python5616What are metaclasses in Python?3071Finding the index of an item in a list2065How to print colored text in terminal in Python?5891Does Python have a ternary conditional operator?2554“Least Astonishment” and the Mutable Default Argument1889“Debug certificate expired” error in Eclipse Android plugins3599Does Python have a string ‘contains’ substring method?374Eclipse IDE for Java – Full Dark Theme2043Why is “1000000000000000 in range(1000000000000001)” so fast in Python 3?

Hot Network Questions

What is the exact meaning of being at work?

How does the size of the Gold Dragonborn fire breath weapon work?

Location of files after erroneous rename command

Show this man the exit, enter into cell only once and should cover all cells

How do I safely place an extension ladder near windows so I can clean my gutters?

What LaTeX macros cannot accept a group as an argument

What is cool aid?

Does the New York State Governor have the authority to impose fines?

Interpretation of the action in classical mechanics

Is spargier a valid passive present infintive of spargo?

Alternatives to roasting squash for soup?

Minimal Rotate-Right-Double numbers in base n

Why don’t right-wing dictators crown themselves king?

Jazz Theory Prerequisites

Why can’t we consider these two masses as a system in case of a pulley?

Basic Blackjack game in Python

How correctly redefine & inside a table?

Why doesn’t the nuclear fusion in a star make it explode?

Avoiding “Zoom bombing” in virtual conferences and seminars

Make a Rectangle from a Triangle

Did any spacecraft ever use the Sun’s gravity for acceleration?

Whom to cite from an article: the reporter or the person who provided a quote to the reporter?

Left hand seat, is it so important?

Why don’t we bleed interstitial fluid?

more hot questions

Question feed

Subscribe to RSS

Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

lang-py

Categories
askquestion

JAVA: Type mismatch: cannot convert from Collection to Iterator

JAVA: Type mismatch: cannot convert from Collection<Set<IConnection>> to Iterator<IConnection>

Ask Question

Asked
10 years, 5 months ago

Active
8 years, 5 months ago

Viewed
5k times

.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}

0

1

I have a Problem here using Java in Red5 0.9 Server here’s the code

package com.hwakin.i5lc.manager;

import java.util.Iterator;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.api.IClient;
import org.red5.server.api.IConnection;
import org.red5.server.api.IScope;
import org.red5.server.api.Red5;
import org.red5.server.api.service.IServiceCapableConnection;

import com.hwakin.i5l.vo.ExternalPoint;
import com.hwakin.i5l.vo.UserInfo;
import com.hwakin.i5lc.vo.ExternalDrawInfo;

public class I5lcDrawManager extends ApplicationAdapter {
protected static Log log = LogFactory.getLog(I5lcDrawManager.class.getName());

public void startDrawingHandler(String type,ExternalPoint point, ExternalDrawInfo data){

try{
IConnection Lconn = Red5.getConnectionLocal();

IScope scope = Lconn.getScope();

Iterator<IConnection> it = scope.getConnections();

while (it.hasNext()) {
IConnection conn = it.next();

if (Lconn.equals(conn)) {
continue;
}

log.info(“i5lvDrawManagerReceiver.startDrawingHandler invoked.”);

IClient client = conn.getClient();

UserInfo userInfo =(UserInfo) client.getAttribute(“userInfo”);

if (conn instanceof IServiceCapableConnection) {
if(userInfo.lectureInfo.sync.equals(“true”)){

((IServiceCapableConnection) conn).invoke(“invoke”,new Object[]{“i5lvDrawManagerReceiver.startDrawingHandler”,type,point,data});
}
}
}

}catch(Exception e){
log.debug(“Exception in noticeChattingTo Method:”+e);
}
}
public void drawingHandler(String type,ExternalPoint point){

try{
IConnection Lconn = Red5.getConnectionLocal();
IScope scope = Lconn.getScope();

Iterator<IConnection> it = scope.getConnections();

while (it.hasNext()) {
IConnection conn = it.next();

if (Lconn.equals(conn)) {
continue;
}

log.info(“i5lvDrawManagerReceiver.drawingHandler invoked.”);

IClient client = conn.getClient();

UserInfo userInfo =(UserInfo) client.getAttribute(“userInfo”);

if (conn instanceof IServiceCapableConnection) {
if(userInfo.lectureInfo.sync.equals(“true”)){

((IServiceCapableConnection) conn).invoke(“invoke”,new Object[]{“i5lvDrawManagerReceiver.drawingHandler”,type,point});

}

}
}

}catch(Exception e){
log.debug(“Exception in noticeChattingTo Method:”+e);
}
}

public void endDrawingHandler(String type,ExternalPoint point, ExternalDrawInfo data){

try{
IConnection Lconn = Red5.getConnectionLocal();
IScope scope = Lconn.getScope();

Iterator<IConnection> it = scope.getConnections();

while (it.hasNext()) {
IConnection conn = it.next();

if (Lconn.equals(conn)) {
continue;
}

log.info(“i5lvDrawManagerReceiver.endDrawingHandler invoked.”);

IClient client = conn.getClient();

UserInfo userInfo =(UserInfo) client.getAttribute(“userInfo”);

if (conn instanceof IServiceCapableConnection) {
if(userInfo.lectureInfo.sync.equals(“true”)){

((IServiceCapableConnection) conn).invoke(“invoke”,new Object[]{“i5lvDrawManagerReceiver.endDrawingHandler”,type,point,data});
}
}
}

}catch(Exception e){
log.debug(“Exception in noticeChattingTo Method:”+e);
}
}
}

The Errors are:

ERROR in /opt/red5/dist/webapps/i5lecture/WEB-INF/src/com/hwakin/i5lc/manager/I5lcDrawManager.java (at line 29)

Iterator <IConnection> it = scope.getConnections();

Type mismatch: cannot convert from Collection<Set<IConnection>> to Iterator

ERROR in /opt/red5/dist/webapps/i5lecture/WEB-INF/src/com/hwakin/i5lc/manager/I5lcDrawManager.java (at line 63)

Iterator<IConnection> it = scope.getConnections();

Type mismatch: cannot convert from Collection<Set<IConnection>> to Iterator<IConnection>

ERROR in /opt/red5/dist/webapps/i5lecture/WEB-INF/src/com/hwakin/i5lc/manager/I5lcDrawManager.java (at line 100)

Iterator<IConnection> it = scope.getConnections();

Type mismatch: cannot convert from Collection<Set<IConnection>> to Iterator<IConnection>

3 problems (3 errors)

apache-flex red5

share|improve this question|
follow
||||

edited Nov 13 ’09 at 6:16

Treby

asked Nov 6 ’09 at 2:41

TrebyTreby

1,26466 gold badges1818 silver badges2525 bronze badges

add a comment
 | 

4 Answers
4

Active

Oldest

Votes

2

It sounds like your getConnections() method returns Collection<Set<IConnection>> while you seem to think that it should return Iterator<IConnection>.

Are you forgetting the call to .iterator()? Such as

Iterator<IConnection> it = scope.getConnections.iterator();

although from the compiler error it sounds as if you’ll need

Iterator<Set<IConnection>> it = scope.getConnections.iterator();

share|improve this answer|
follow
||||

answered Nov 6 ’09 at 2:47

matt bmatt b

128k6161 gold badges263263 silver badges329329 bronze badges

there is no iterator() property for scope.getConnections getConnections returns Iterator<IConnection> as shown here dl.fancycode.com/red5/api/org/red5/server/api/class-use/…

– Treby
Nov 6 ’09 at 2:56

1

The error message is clearly telling you that scope.getConnections() is returning a Collection<Set<IConnection>>.

– Jim Garrison
Nov 6 ’09 at 3:13

add a comment
 | 

2

A Collection is an Iterable, not an Iterator. You don’t need an Iterator for looping; the enhanced for loop works with any Iterable implementation.

Try this instead:

for (Set<IConnection>> connections : scope.getConnections()) {
for (IConnection con : connections) {
/* Use each ‘conn’ instance… */
}
}

share|improve this answer|
follow
||||

answered Nov 6 ’09 at 3:34

ericksonerickson

237k4646 gold badges351351 silver badges445445 bronze badges

I didn’t get your code. can you please state the whole code for me. thanks

– Treby
Nov 6 ’09 at 4:08

add a comment
 | 

2

I Added (Iterator) to parse scope.getConnection();

Iterator<IConnection> it = (Iterator) scope.getConnections();

Then I added @SuppressWarnings(“unchecked”) in the beginning of the function

@SuppressWarnings(“unchecked”)
public void startDrawingHandler(String type,ExternalPoint point, ExternalDrawInfo data){

// Rest of the code

}

share|improve this answer|
follow
||||

answered Nov 6 ’09 at 6:37

TrebyTreby

1,26466 gold badges1818 silver badges2525 bronze badges

add a comment
 | 

1

What you appear to have here is an unstable API.

Is it Iterator<IConnection> getConnections() or Collection<Set<IConnection>> getConnections() (nicely documents as “Get a connection iterator.” – comments lie)? Google is your friend.

share|improve this answer|
follow
||||

answered Nov 6 ’09 at 3:51

Tom Hawtin – tacklineTom Hawtin – tackline

136k3030 gold badges196196 silver badges284284 bronze badges

Iterator<IConnection> getConnections() as the code states: Iterator<IConnection> it = scope.getConnections();

– Treby
Nov 6 ’09 at 3:56

As your code states? But what about the code you are using? There are clearly at least two versions floating about. You can use javap to find out what really is in the class files/jars that you are using.

– Tom Hawtin – tackline
Nov 6 ’09 at 4:16

add a comment
 | 

Your Answer

Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.

Draft saved
Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Submit

Post as a guest

Name

Email
Required, but never shown

Post Your Answer

Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged apache-flex red5 or ask your own question.

The Overflow Blog

A practical guide to writing technical specs

Podcast 224: Cryptocurrency-Based Life Forms

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Triage needs to be fixed urgently, and users need to be notified upon…

Technical site integration observational experiment live on Stack Overflow

Dark Mode Beta – help us root out low-contrast and un-converted bits

Related

4Creating Type Safe Collections in Flex0Flex: Setting “Server Type” …why?3Red5 : Deploy while Red5 is running (WAR deployment fail : org.springframework.beans.factory. BeanDefinitionStoreException) while normal deploy ok)1How to iterate through a Collection<Set<IConnection>>2The type ResourcePatternResolver cannot be resolved1How to send LinkedList from Red5(Java) to Flex(AS3)?1Trying to build a sample Red5 Secure project but it fails because of some dependencies0TypeError: Error #1034: Type Coercion failed: cannot convert Object to Array3Convert Flex ByteArray in Java byte[]

Hot Network Questions

What, if any, are the benefits of tying health insurance to employment (as in the US) over other systems?

Why is it that I’m still able to call a coroutine from another script, even though I marked it as private?

My characters have been killing the same demons over and over again. How come the demons never adapt to them?

Alternatives to roasting squash for soup?

Do fake wp-login pages help prevent webapp attacks?

Is there a way for someone to be un-cloneable?

How to remove Broken Fall Enchantment from play

For some learning piano at a later stage in life e.g past late 20s, what must they be aware of to make the most of it?

Is spargier a valid passive present infintive of spargo?

How did people cut “pieces of eight”?

Why were most PC’s and electronics beige back in the day?

What pandemic could keep the world in isolation near indefinitely?

Why is it correct to say “me busy.”?

Rav S.R. Hirsch and fairy tales

Sci-fi short story about a man being pulled up by the cops for walking around

Advisor to spend some funds to buy things that make group members feel better working at home. Is it selfish to request a tablet and stuff?

Why is the answer different with energy conservation vs forces?

Has there even been a clinical study where healthy volunteers consented to be infected with a pathogen?

Novel involving a sentient AI, alien hogs, and a Chinese colony governed by OCD

How to reduce MOSFET heating in Buck Converter

What would be reasons NOT to invest in a small company that has great leadership, talented workers and an amazing product?

Does the “Amiga Client for Novell NetWare” exist?

What are the semantics of overlapping objects in C?

If a SARS-CoV-2 asymptomatic infected individual is exposed to a high viral load, could they develop COVID-19 disease?

more hot questions

Question feed

Subscribe to RSS

Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

default

Categories
askquestion

Compiling Matlab to C++ Problem: fatal error C1083: Cannot open include file: ‘windows.h’

Compiling Matlab to C++ Problem: fatal error C1083: Cannot open include file: ‘windows.h’

Ask Question

Asked
10 years, 5 months ago

Active
7 years, 6 months ago

Viewed
4k times

.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}

0

1

I got this weird error when I was trying to compile matlab to C++ using the following command:

‘mcc -W lib:cshared -d ‘ clibdir ‘ -T link:lib ‘ mfile

The error I got was:

fatal error C1083: Cannot open include
file: ‘windows.h’: No such file or
directory

Now, I was using lcc as my compiler ( instead of the Visual Studio one), and I made sure that Windows.h was inside the lccinclude directory (C:Program FilesMATLABR2006asyslccinclude), and yet, I still got the missing windows.h error even though I do have it inside the include folder.

Anyone has any idea why this is so?

Note: I have read similar questions at SO, and found that those problems are related to include folders not set etc. But I do have the include path set, I believe

c++ matlab

share|improve this question|
follow
||||

edited May 23 ’17 at 12:04

Community♦

111 silver badge

asked Nov 6 ’09 at 2:41

GravitonGraviton

73.3k129129 gold badges382382 silver badges558558 bronze badges

add a comment
 | 

2 Answers
2

Active

Oldest

Votes

4

The error message you quote comes from Visual C++, so you’re clearly not using lcc, and thus it won’t make any difference what files you put in lcc’s directories. Try running mbuild -setup to configure Matlab to use a different compiler command.

If you (or Matlab, on your behalf) are going to run the Visual C++ command-line compiler, then you should run it in a command prompt with all the right environment variables set up, such as the include path. Visual Studio should have put an item on your Start menu for that, or else you can run the vsvars32.bat file from within some other console window.

share|improve this answer|
follow
||||

answered Nov 6 ’09 at 3:13

Rob KennedyRob Kennedy

152k1818 gold badges246246 silver badges432432 bronze badges

add a comment
 | 

1

I found a workaround – in Start Menu you’ll find something like Microsoft Visual Studio 2010 ExpressVisual Studio Command Prompt (2010)

This will start command-prompt with all the environment variables set, including LIB, INCLUDE and so on. Then, start MATLAB from this command prompt! E.g.: simply type C:Program FilesMATLABR2012abinmatlab.exe. In result, you can call MEX from this MATLAB session.

share|improve this answer|
follow
||||

answered Sep 29 ’12 at 18:49

Alexander KosenkovAlexander Kosenkov

1,51311 gold badge1010 silver badges1919 bronze badges

I’m not sure how that’s a workaround; it sounds like what I suggested in my answer nearly three years ago. Does MEX compile the Matlab code into object files for linking with C programs like mcc does? That was the goal, after all. My impression is that mex is for preparing C code so it can be called from Matlab programs, which in this case is the wrong direction.

– Rob Kennedy
Sep 30 ’12 at 5:08

add a comment
 | 

Your Answer

Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.

Draft saved
Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Submit

Post as a guest

Name

Email
Required, but never shown

Post Your Answer

Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged c++ matlab or ask your own question.

The Overflow Blog

A practical guide to writing technical specs

Podcast 224: Cryptocurrency-Based Life Forms

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Upcoming Feature: New Question Close Experience

Triage needs to be fixed urgently, and users need to be notified upon…

Dark Mode Beta – help us root out low-contrast and un-converted bits

Linked

8

Fatal Error C1083 – Cannot open include file: “windows.h”: No such file or directory

Related

19fatal error C1083: Cannot open include file: ‘xyz.h’: No such file or directory?24Visual c++ can’t open include file ‘iostream’0using visual C++ compiler in matlab0MATLAB include error : fatal error C1083: Cannot open include file: ‘cblas.h’0fatal error C1083: Cannot open include file: ‘Item.h”’: No such file or directory2fatal error C1083: Cannot open include file: ‘fstream.h’: No such file or directory0Matlab complies C++ file error: fatal error C1083: Cannot open include file: ‘stdafx.h’

Hot Network Questions

Is spargier a valid passive present infintive of spargo?

Why do governments downplay or cover-up pandemics in their early stages?

Why did early game consoles need the TV to be tuned to channel 3 or 4?

Sci-fi short story about a man being pulled up by the cops for walking around

Minimal Rotate-Right-Double numbers in base n

Whom to cite from an article: the reporter or the person who provided a quote to the reporter?

Dual variables associated with same equation for different time instants

What, if any, are the benefits of tying health insurance to employment (as in the US) over other systems?

Please review my sketch of the Machine Learning process

Can visitors sell to CJ and Flick?

What pandemic could keep the world in isolation near indefinitely?

Novel involving a sentient AI, alien hogs, and a Chinese colony governed by OCD

How to remove Broken Fall Enchantment from play

What is wrong with the rabbit living under my shed?

Basic Blackjack game in Python

How many of the zodiac constellations can be seen in one single night?

Do fake wp-login pages help prevent webapp attacks?

Emoji Puzzle – UNESCO World Heritage Sites

What would be reasons NOT to invest in a small company that has great leadership, talented workers and an amazing product?

Triangular code, triangular output

How to reduce MOSFET heating in Buck Converter

What would happen when USB devices draw more power than the hub can provide?

Does the New York State Governor have the authority to impose fines?

Why were most PC’s and electronics beige back in the day?

more hot questions

Question feed

Subscribe to RSS

Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

default

Categories
askquestion

WPF Animation Completed Event in ControlTemplate

WPF Animation Completed Event in ControlTemplate

Ask Question

Asked
10 years, 5 months ago

Active
10 years, 5 months ago

Viewed
2k times

.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}

1

In my WPF application, I have the standard Generic.xaml file, which contains a style for my custom class, Frost.

I need to find a way to hook up the Completed event of one of the animations to my custom Frost class, I cannot do it at runtime because it complains at me that i need to set IsFrozen to false which I do not want to do (because of performance).

How can I hook up events to the TargetType of the control template?

<Style TargetType=”{x:Type Controls:Frost}”>
<Setter Property=”Template”>
<Setter.Value>
<ControlTemplate TargetType=”{x:Type Controls:Frost}”>
<ControlTemplate.Resources>
<Storyboard x:Key=”OnEndFrost”>
<DoubleAnimation Name=”fadeOutFrostAnimation”
BeginTime=”00:00:00″
Duration=”00:00:02″
Storyboard.TargetName=”frostElement”
Storyboard.TargetProperty=”(UIElement.Opacity)”
To=”0″>
</DoubleAnimation>
</Storyboard>
</ControlTemplate.Resources>
<Grid>
<MediaElement x:Name=”frostElement”
LoadedBehavior=”Manual”
Width=”1172″
Height=”286.917″
Source=”{TemplateBinding SourceUri}”
ScrubbingEnabled=”True”>
<MediaElement.Effect>
<eff:ChromaKeyAlphaEffect InputColor=”#FF0E425E” Tolerance=”0.1″ />
</MediaElement.Effect>
</MediaElement>
</Grid>
<ControlTemplate.Triggers>
<EventTrigger RoutedEvent=”Controls:Frost.EndFrost”>
<BeginStoryboard x:Name=”OnEndFrost_BeginStoryboard” Storyboard=”{StaticResource OnEndFrost}”/>
</EventTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

wpf events animation controltemplate

share|improve this question|
follow
||||

edited Nov 6 ’09 at 3:52

Drew Marsh

31.5k22 gold badges7373 silver badges9797 bronze badges

asked Nov 6 ’09 at 2:42

MarkMark

13.8k1717 gold badges8888 silver badges152152 bronze badges

” I cannot do it at runtime because it complains at me that i need to set IsFrozen to false which I do not want to do (because of performance).” Frozen objects offer better performance, so I’m not sure what you mean by that.

– Drew Marsh
Nov 6 ’09 at 3:06

frozen objects do not make as munch of a memory footprint and are thread safe… which is also important, correct me if Im wrong of course

– Mark
Nov 6 ’09 at 4:06

That’s correct, but you seem to be saying that you don’t want to freeze your objects for performance reasons…? Freezing would improve performance AND let you hook the event.

– Drew Marsh
Nov 6 ’09 at 16:00

I may have miss lead you, but you cannot add an event if its frozen, i dont want to un-freeze it because it performs better frozen.

– Mark
Nov 6 ’09 at 22:43

add a comment
 | 

1 Answer
1

Active

Oldest

Votes

0

You could create a custom animation and add an eventhandler to it or use a command as dependency property. For a codeproject example of a custom animation look at this link.

share|improve this answer|
follow
||||

answered Nov 6 ’09 at 11:58

RonaldVRonaldV

61333 silver badges77 bronze badges

I might have to do that I think

– Mark
Nov 6 ’09 at 22:40

add a comment
 | 

Your Answer

Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.

Draft saved
Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Submit

Post as a guest

Name

Email
Required, but never shown

Post Your Answer

Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged wpf events animation controltemplate or ask your own question.

The Overflow Blog

A practical guide to writing technical specs

Podcast 224: Cryptocurrency-Based Life Forms

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Upcoming Feature: New Question Close Experience

Triage needs to be fixed urgently, and users need to be notified upon…

Dark Mode Beta – help us root out low-contrast and un-converted bits

Related

647What is the correct way to create a single-instance WPF application?1677Event binding on dynamically created elements?705jQuery Event Keypress: Which key was pressed?825How to find event listeners on a DOM node when debugging or from the JavaScript code?578How can I create a “Please Wait, Loading…” animation using jQuery?967jQuery multiple events to trigger the same function0combo box inside a user control disappears when style is applied in wpf442Android: Expand/collapse animation1WPF ControlTemplate Trigger with animation951How do I animate constraint changes?

Hot Network Questions

Does the New York State Governor have the authority to impose fines?

How can I calculate the distribution of “Roll 3D6, reroll any dice once, treat all 1’s as a 2” in AnyDice?

Cat Vomiting Every Day

What is the name of the movement which is carried out by plane beginning from the runway and ending at takeoff?

How does Windows 9x determine which disk drivers correspond to which BIOS disks/DOS drive letters?

How correct redefine & command inside a table?

Does the “Amiga Client for Novell NetWare” exist?

Triangular code, triangular output

I overstayed in US and I’m barred for ten years, but I want to visit my kid

Can it be dangerous to look at the sun through the viewfinder?

Search for last modified files in the last 2 minutes in your home directory which contain a certain string

How to say “I wish I could go back to those days?” in Spanish using subjunctive?

Minimal Rotate-Right-Double numbers in base n

Interpretation of the action in classical mechanics

Draw communication network in LaTeX

How to draw a “proper” tree diagram

In most U.S. states, female genital mutilation is illegal. So why is male circumcision legal?

Why is the same person called differently by different people?

Is there a way for someone to be un-cloneable?

How would combat work without opportunity attacks?

Sci-fi short story about a man being pulled up by the cops for walking around

Are Hobbits related (distant or no) to Elves?

What would happen when USB devices draw more power than the hub can provide?

Ideas for explaining 4D and higher dimensions

more hot questions

Question feed

Subscribe to RSS

Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

default

Categories
askquestion

TortoiseGit connect to remote git repo (not github)

TortoiseGit connect to remote git repo (not github)

Ask Question

Asked
10 years, 5 months ago

Active
4 years ago

Viewed
9k times

.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}

3

1

I have a git branch on my production server which is centos. I am trying to connect to it from TortoiseGit on my windows machine but it doesn’t seem to be working.

I install msysgit, TortoiseGit and already have putty. once installed i created a folder on desktop, right clicked, then clicked on Git Clone…, put the remote server’s username and domain name in the url box ([email protected]), then the directory on the desktop in the directory box. when i click OK, it shows:

git.exe clone -v “[email protected]” “C:…….testdirdomain.com”
fatal: ‘[email protected]’does not appear to be a git repository`
Initialized empty Git repository in C:…….testdirdomain.com.git
fatal: The remote end hung up unexpectedly

I’ve tried with just domain.com, [email protected]_address, ip_address, domain.com/public_html/.git, and many other variants but it just doesn’t seem to work.

Am I doing something wrong here?

git msysgit tortoisegit

share|improve this question|
follow
||||

edited Mar 12 ’16 at 11:42

Yue Lin Ho

2,1691919 silver badges3030 bronze badges

asked Nov 6 ’09 at 2:43

drackdrack

1,57533 gold badges1919 silver badges3232 bronze badges

it worked with the colon : thank you very much

– drack
Nov 6 ’09 at 19:49

add a comment
 | 

2 Answers
2

Active

Oldest

Votes

1

git.exe clone -v [email protected]:full_path_to_dot_git_directory “C:…….testdirdomain.com”

you have to tell git exactly where on the centos servers drives the git repository exists. Assuming you are using ssh for the protocol.

If you prefer to use http instead then you have to configure a web server on your server that serves up the .git directory and point to http://domain.com/path/to/dot/git/directory that you defined in your server configuration.

share|improve this answer|
follow
||||

answered Nov 6 ’09 at 2:54

Jeremy WallJeremy Wall

19k33 gold badges4646 silver badges7070 bronze badges

add a comment
 | 

0

I suspect that the path you are stating in the command is wrong. Try:

git clone -v “[email protected]/full/path/to/public_html” “C:…testdirdomain.com”

share|improve this answer|
follow
||||

answered Nov 6 ’09 at 2:52

Alan Haggai AlaviAlan Haggai Alavi

63.5k1616 gold badges9292 silver badges122122 bronze badges

you forgot the : between domain.com and the full path.

– Jeremy Wall
Nov 6 ’09 at 2:55

add a comment
 | 

Your Answer

Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.

Draft saved
Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Submit

Post as a guest

Name

Email
Required, but never shown

Post Your Answer

Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged git msysgit tortoisegit or ask your own question.

The Overflow Blog

Podcast 223: Embrace the Darkness

A practical guide to writing technical specs

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Upcoming Feature: New Question Close Experience

Triage needs to be fixed urgently, and users need to be notified upon…

Dark Mode Beta – help us root out low-contrast and un-converted bits

Visit chat

Related

6757How to remove local (untracked) files from the current Git working tree4092How to clone all remote branches in Git?11780What is the difference between ‘git pull’ and ‘git fetch’?8829How do I undo ‘git add’ before commit?20778How do I undo the most recent local commits in Git?7018How do I force “git pull” to overwrite local files?6620How do I check out a remote Git branch?16742How do I delete a Git branch locally and remotely?7618How do I revert a Git repository to a previous commit?8356How do I rename a local Git branch?

Hot Network Questions

In most U.S. states, female genital mutilation is illegal. So why is male circumcision legal?

How can I make road-bike rims survive tree roots on trails?

Whether a square can be traversed in finite time

How did people cut “pieces of eight”?

How do I safely place an extension ladder near windows so I can clean my gutters?

Jazz Theory Prequisties

How can I calculate the distribution of “Roll 3D6, reroll any dice once, treat all 1’s as a 2” in AnyDice?

Please review my sketch of the Machine Learning process

Sci-fi short story about a man being pulled up by the cops for walking around

Why do some governments try to downplay or cover-up pandemics in their early stages?

Recognizing Lipschitz functions up to change of target metric

Is there a maximum number of encryptions I should make with the same RSA key?

Why is the same person called differently by different people?

How to Decompose a Separable Filter?

A question about nonmeasurable subset of real line and uncountable measure-zero subset.

How to measure 5 litres using 10l, 7l and 3l vessels

High current buck converter has excessive ringing and poor regulation

Draw communication network in LaTeX

Emoji Puzzle – UNESCO World Heritage Sites

Apex Unit Test for if == null and return statements

Why does “blue blazes” specify the color blue, and what is the origin of this expression as an intensifier/euphemism?

Search for last modified files in the last 2 minutes in your home directory which contain a certain string

Interpretation of the action in classical mechanics

Why did early game consoles need the TV to be tuned to channel 3 or 4?

more hot questions

Question feed

Subscribe to RSS

Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Categories
askquestion

Binding to commands in WinForms

Binding to commands in WinForms

Ask Question

Asked
10 years, 5 months ago

Active
4 months ago

Viewed
15k times

.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}

20

8

How can a button be bound to a command in a view model like in WPF with MVVM?

c# winforms mvvm

share|improve this question|
follow
||||

edited Nov 18 ’19 at 23:06

kot-da-vinci

9801010 silver badges2525 bronze badges

asked Nov 6 ’09 at 2:44

Mark BostlemanMark Bostleman

2,10533 gold badges2323 silver badges3232 bronze badges

add a comment
 | 

9 Answers
9

Active

Oldest

Votes

2

I’ve attached ICommand objects to the Tag property of Button and MenuItem objects before.

Then, I just see if I can cast and run it if I can, example:

private void button1_Click(object sender, EventArgs e)
{
ICommand command = ((Control)(sender)).Tag as ICommand;

if (command != null)
{
command.Execute();
}
}

For even an easier life, try subclassing the controls (e.g. Button, MenuItem)

share|improve this answer|
follow
||||

edited Oct 14 ’12 at 19:31

Neolisk

22.6k1414 gold badges6464 silver badges125125 bronze badges

answered Nov 19 ’09 at 14:36

Brett VeenstraBrett Veenstra

42.1k1717 gold badges6262 silver badges8383 bronze badges

add a comment
 | 

17

I was wondering if the same thing could be done and ended writing a simple CommandManager that queries the registered commands (on the Application.Idle event) and uses databinding to change the Enabled state of the control

This is the code I’m using right now:

public class CommandManager: Component
{
private IList<ICommand> Commands { get; set; }
private IList<ICommandBinder> Binders { get; set; }

public CommandManager()
{
Commands = new List<ICommand>();

Binders = new List<ICommandBinder>
{
new ControlBinder(),
new MenuItemCommandBinder()
};

Application.Idle += UpdateCommandState;
}

private void UpdateCommandState(object sender, EventArgs e)
{
Commands.Do(c => c.Enabled);
}

public CommandManager Bind(ICommand command, IComponent component)
{
if (!Commands.Contains(command))
Commands.Add(command);

FindBinder(component).Bind(command, component);
return this;
}

protected ICommandBinder FindBinder(IComponent component)
{
var binder = GetBinderFor(component);

if (binder == null)
throw new Exception(string.Format(“No binding found for component of type {0}”, component.GetType().Name));

return binder;
}

private ICommandBinder GetBinderFor(IComponent component)
{
var type = component.GetType();
while (type != null)
{
var binder = Binders.FirstOrDefault(x => x.SourceType == type);
if (binder != null)
return binder;

type = type.BaseType;
}

return null;
}

protected override void Dispose(bool disposing)
{
if (disposing)
Application.Idle -= UpdateCommandState;

base.Dispose(disposing);
}
}

public static class Extensions
{
public static void Do<T>(this IEnumerable<T> @this, Func<T, object> lambda)
{
foreach (var item in @this)
lambda(item);
}
}
public abstract class CommandBinder<T> : ICommandBinder where T: IComponent
{
public Type SourceType
{
get { return typeof (T); }
}

public void Bind(ICommand command, object source)
{
Bind(command, (T) source);
}

protected abstract void Bind(ICommand command, T source);
}

public class ControlBinder: CommandBinder<Control>
{
protected override void Bind(ICommand command, Control source)
{
source.DataBindings.Add(“Enabled”, command, “Enabled”);
source.DataBindings.Add(“Text”, command, “Name”);
source.Click += (o, e) => command.Execute();
}
}

public class MenuItemCommandBinder : CommandBinder<ToolStripItem>
{
protected override void Bind(ICommand command, ToolStripItem source)
{
source.Text = command.Name;
source.Enabled = command.Enabled;
source.Click += (o, e) => command.Execute();

command.PropertyChanged += (o, e) => source.Enabled = command.Enabled;
}
}

and this is an exmaple of how to use it:

public partial class Form1 : Form
{
private CommandManager commandManager;

public ICommand CommandA { get; set; }
public ICommand CommandB { get; set; }

public bool condition;

public Form1()
{
InitializeComponent();

commandManager = new CommandManager();

CommandA = new DelegateCommand(“Command 1”, OnTrue, OnExecute);
CommandB = new DelegateCommand(“Command 2”, OnFalse, OnExecute);

commandManager.Bind(CommandA, button1);
commandManager.Bind(CommandB, button2);

commandManager.Bind(CommandA, command1ToolStripMenuItem);
commandManager.Bind(CommandB, command2ToolStripMenuItem);
}

private bool OnFalse()
{
return !condition;
}

private bool OnTrue()
{
return condition;
}

private void OnExecute()
{
condition = !condition;
}
}

Also if you need the code, I blogged about it here

share|improve this answer|
follow
||||

answered Nov 20 ’10 at 11:50

Sebastian PiuSebastian Piu

7,0722626 silver badges4848 bronze badges

your solution works really fine and makes my dialog components much more easier and understandable :-). thanks a lot!

– rhe1980
Mar 16 ’12 at 7:06

Could you explain why you use Application.Idle event instead of using DataSourceUpdateMode in the DataBindings.Add(..) method ?

– Jens Kloster
Jan 5 ’15 at 9:18

There is also an article by Josh Smith with more details for the WinForms built-in CommandManager: msdn.microsoft.com/en-us/magazine/dd419663.aspx#id0090030

– Fabian
Aug 16 ’18 at 10:17

add a comment
 | 

6

You could create a generic command binding class that allows a command to be bound to any class that inherits from ButtonBase.

public class CommandBinding<T> where T : ButtonBase
{
private T _invoker;
private ICommand _command;

public CommandBinding(T invoker, ICommand command)
{
_invoker = invoker;
_command = command;

_invoker.Enabled = _command.CanExecute(null);
_invoker.Click += delegate { _command.Execute(null); };
_command.CanExecuteChanged += delegate { _invoker.Enabled = _command.CanExecute(null); };
}
}

The command binding can then be set up using the following code:

CommandBinding<Button> cmdBinding =
new CommandBinding<Button>(btnCut, CutCommand);

This is only the bare bones of my implementation to give you a start so naturally there are a few caveats:

The example assumes the use of the WPF ICommand interface so may have to be altered if you have your own implementation of the command pattern.
The parameters that are passed in should be checked for null references.
A more concrete implementation should have some method of removing the event handlers to avoid memory leaks.

The generic constraint can also be changed to Control which exposes the Click event and the Enabled property which means commands can be bound to almost any Control.

share|improve this answer|
follow
||||

edited Sep 23 ’12 at 17:43

answered Feb 15 ’11 at 22:39

Benjamin GaleBenjamin Gale

11.5k66 gold badges5353 silver badges9393 bronze badges

add a comment
 | 

1

button1.Click += (s, e) => new MyCommand().Execute();

share|improve this answer|
follow
||||

answered Sep 23 ’12 at 18:03

Olivier Jacot-DescombesOlivier Jacot-Descombes

79.1k1010 gold badges105105 silver badges153153 bronze badges

add a comment
 | 

1

If you want to bind the command to the control using the designer, check this demo app where I show how to use MVVM in Windows Forms:

https://bitbucket.org/lbras/mvvmforms

The only code you have to write in the code-behind is the creation of the view model instance.

share|improve this answer|
follow
||||

edited Mar 11 ’13 at 13:15

answered Mar 11 ’13 at 13:05

lbraslbras

3511 silver badge88 bronze badges

add a comment
 | 

1

My approach is based on Gale’s answer, but using an extension method and making the binding disposable for lifeycle management:

public static class ButtonExtensions
{
public static IDisposable Bind(this ButtonBase invoker, ICommand command)
{
void Click(object sender, EventArgs args) => command.Execute(null);
void CanExecuteChanged(object sender, EventArgs args) => invoker.Enabled = command.CanExecute(null);

invoker.Enabled = command.CanExecute(null);

invoker.Click += Click;
command.CanExecuteChanged += CanExecuteChanged;

return Disposable.Create(() =>
{
invoker.Enabled = false;
invoker.Click -= Click;
command.CanExecuteChanged -= CanExecuteChanged;
});
}
}

You can use it like this:

private List<IDisposable> Disposables { get; } = new List<IDisposable>();
private ICommand MyCommand { get; }

public MyControl()
{
MyCommand = DelegateCommand.Create(() => …);
Disposables.Add(myButton.Bind(MyCommand));
}

~MyControl()
{
foreach(var disposable in Disposables)
{
disposable?.Dispose();
}
}

However, one might prefer to use ReactiveUI, which has native support for this:

ReactiveUI 6.0 and WinForms binding

share|improve this answer|
follow
||||

answered Sep 27 ’19 at 14:24

MovGP0MovGP0

4,32422 gold badges3131 silver badges3232 bronze badges

add a comment
 | 

0

I don’t think you can do it directly but how about using the button’s click handler to invoke the command? It’s not as clean as WPF but you still get your separation.

share|improve this answer|
follow
||||

answered Nov 6 ’09 at 8:18

serialhobbyistserialhobbyist

4,57855 gold badges3535 silver badges6262 bronze badges

Yea, actually that is what I am doing now – I was just wondering if there was a reasonable way to do it with binding.

– Mark Bostleman
Nov 6 ’09 at 12:09

add a comment
 | 

0

I’d recommend implementing INotifyPropertyChanged you can use it in WinForms as well as WPF. See here for an introduction and here for some additional information.

share|improve this answer|
follow
||||

answered Nov 9 ’09 at 23:12

Matt WarrenMatt Warren

10k66 gold badges4343 silver badges6262 bronze badges

add a comment
 | 

0

You might find the WAF Windows Forms Adapter interesting. It shows how to apply the Model-View-ViewModel (MVVM) Pattern in a Windows Forms application. The Adapter implementation provides a solution for the missing Command support in Windows Forms.

share|improve this answer|
follow
||||

answered Sep 20 ’10 at 18:20

jbejbe

6,58411 gold badge3737 silver badges3232 bronze badges

add a comment
 | 

Your Answer

Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.

Draft saved
Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Submit

Post as a guest

Name

Email
Required, but never shown

Post Your Answer

Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged c# winforms mvvm or ask your own question.

The Overflow Blog

Podcast 223: Embrace the Darkness

A practical guide to writing technical specs

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Triage needs to be fixed urgently, and users need to be notified upon…

Upcoming Feature: New Question Close Experience

Dark Mode Beta – help us root out low-contrast and un-converted bits

Linked

13

IoC: Wiring up dependencies on event handlers

4

MVVM/Presentation Model With WinForms

2

ReactiveUI 6.0 and WinForms binding

1

Unifying ToolstripButtons and ToolstripMenuItems

Related

2198Deep cloning objects3719How to enumerate an enum352INotifyPropertyChanged vs. DependencyProperty in ViewModel231Handling Dialogs in WPF with MVVM2176How do I get a consistent byte representation of strings in C# without manually specifying an encoding?244How should the ViewModel close the form?1374How do I update the GUI from another thread?243MVVM: Tutorial from start to finish?140Good examples of MVVM Template

Hot Network Questions

Why does “blue blazes” specify the color blue, and what is the origin of this expression as an intensifier/euphemism?

What is wrong with the rabbit living under my shed?

How do I combine a function representing an x value with a function representing a y value?

How did people cut “pieces of eight”?

Why is the answer different when energy conservation is used?

I overstayed in US and I’m barred for ten years, but I want to visit my kid

Does Mutate count as an alternative cost?

Interpretation of the action in classical mechanics

Search for last modified files in the last 2 minutes in your home directory which contain a certain string

Are Hobbits related (distant or no) to Elves?

Convex polygons that do not tile the plane individually, but together they do

Apex Unit Test for if == null and return statements

Does ICE have the legal authority to arrest illegal immigrants who came into hospitals due to COVID-19?

Cut this shape into 3 pieces and fit them together to form a square

Whether a square can be traversed in finite time

If a SARS-CoV-2 asymptomatic infected individual is exposed to a high viral load, could they develop COVID-19 disease?

Advisor to spend some funds to buy things that make group members feel better working at home. Is it selfish to request a tablet and stuff?

How did old games from 8-bit era game consoles store music?

reverse bias of the gate of an N-channel enhancement mosfet

Why did early game consoles need the TV to be tuned to channel 3 or 4?

Minimal Rotate-Right-Double numbers in base n

Using one .bib file for all .tex files

How to remove Broken Fall Enchantment from play

How to terminate a loop when the length of a list reaches a certain length?

more hot questions

Question feed

Subscribe to RSS

Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

default