Categories
askquestion

What approach(es) have you used for lightweight Python unit-tests on App Engine?

What approach(es) have you used for lightweight Python unit-tests on App Engine?

Ask Question

Asked
10 years, 4 months ago

Active
7 years, 5 months ago

Viewed
3k times

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

40

23

I’m about to embark on some large Python-based App Engine projects, and I think I should check with Stack Overflow’s “wisdom of crowds” before committing to a unit-testing strategy. I have an existing unit-testing framework (based on unittest with custom runners and extensions) that I want to use, so anything “heavy-weight”https://stackoverflow.com/”intrusive” such as nose, webtest, or gaeunit doesn’t seem appropriate. The crucial unit tests in my worldview are extremely lightweight and fast ones, ones that run in an extremely short time, so I can keep running them over and over all the time without breaking my development rhythm (e.g., for a different project, I get 97% or so coverage for a 20K-lines project with several dozens of super-fast tests that take 5-7 seconds, elapsed time, for a typical run, overall — that’s what I consider a decent suite of small, fast unit-tests). I’ll have richer/heavier tests as well of course, all the way to integration tests with selenium or windmill, that’s not what I’m asking about;-) — my focus in this question (and in most of my development endeavors;-) is on the small, lightweight unit-tests that lightly and super-rapidly cover my code, not on the deeper ones.

So I think what I need is essentially a set of small, very lightweight simulations of the various key App Engine subsystems — data store, memcache, request/response objects and calls to webapp handlers, user handling, mail, &c, roughly in this order of priority. I haven’t found exactly what I’m looking for, so it seems to me that I should either rely on mox, as I’ve done often in the past, which basically means mocking each subsystem used in a given test and setting up all expectations &c (strong, but lots of work each time, and very sensitive to the tested-code’s internals, i.e. very “white-box”y), or rolling my own simulation of each subsystem (and doing asserts on the simulated subsystems’ states as part of the unit tests). The latters seems feasible, given GAE’s Python-side strong “stubs” architecture… but I can’t believe I need to roll my own, i.e., that nobody’s already written such simple-minded simulators!-) E.g., for the datastore, it looks like what I need is more or less the “datastore on file” stub that’s already part of the SDK, plus a way to mark it readonly and easy-to-use accessors for assertions about the datastore’s state; and so forth, subsystem by subsystem — each seems to need “just a bit more” than what’s already in the SDK, “perched on top” of the existing “stubs” architecture.

So, before diving in and spending a day or two of precious development time “rolling my own” simulations of GAE subsystems for unit testing purposes, I thought I’d double check with the SO crowd and see what y’all think of this… or, if there’s already some existing open source set of such simulators that I can simply reuse (or minimally tweak!-), and which I’ve just failed to spot in my searching!-)

Edit: to clarify, if I do roll my own, I do plan to leverage the SDK-supplied stubs where feasible; but for example there’s no stub for a datastore that gets initially read in from a file but then not saved at the end, so I need to subclass and tweak the existing one (which also doesn’t offer particularly convenient ways to do asserts on its state — same for the mail service stub, etc). That’s what I mean by “rolling my own” — not “rewriting from scratch”!-)

Edit: “why not GAEUnit” — GAEUnit is nice for its own use cases, but running dev_appserver and seeing results in my browser (or even via urllib.urlopen) is definitely not what I’m after — I want to use a fully automated setup, suitable for running within an existing test-running framework which is based on extending unittest, and no HTTP in the way (said framework defines a “fast” test as one that among other thing does no sockets and minimal disk I/O — we simulate or mock these — so via gaeunit I could do no better than “medium” tests) + no convenient way to prepopulate datastore for each test (and no OO structure to help customize things).

python unit-testing google-app-engine

share|improve this question|
follow
||||

edited Nov 18 ’09 at 15:39

Alex Martelli

asked Nov 18 ’09 at 5:44

Alex MartelliAlex Martelli

696k140140 gold badges10991099 silver badges13081308 bronze badges

What is crowd’s opinion in 2014?

– andruso
Feb 16 ’14 at 8:31

@andrusr, I’ve been happily using google.appengine.ext.testbed for years.

– Alex Martelli
Jan 4 ’15 at 20:06

add a comment
 | 

6 Answers
6

Active

Oldest

Votes

13

You don’t need to write your own stubs – the SDK includes them, since they’re what it uses to emulate the production APIs. Not all of them are suitable for use in unit-tests, but most are. Check out this code for an example of the setup/teardown code you need to make use of the built in stubs.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 11:12

Nick JohnsonNick Johnson

97.8k1616 gold badges120120 silver badges194194 bronze badges

1

Sure, I do plan to leverage the SDK-supplied stubs where feasible; but for example there’s no stub for a datastore that gets initially read in from a file but then not saved at the end, so I need to subclass and tweak the existing one (which also doesn’t offer particularly convenient ways to do asserts on its state — same for the mail service stub, etc). That’s what I mean by “rolling my own” (let me edit the question to add this clarification!).

– Alex Martelli
Nov 18 ’09 at 15:24

1

Still, the code you point to is a nice example of how to organize the stubbing (and nicely OO for easy further customization), therefore definitely thanks, and +1!-)

– Alex Martelli
Nov 18 ’09 at 15:41

For the former, you could erase the datastore file after the test, or copy it before the test. Or if you just need it for initial data, populate the datastore in your setup function. Asserting on the datastore’s state is simply a case of running queries and checking the results – but yes, other stubs are less friendly, hence my comment about them not all being suitable for unit tests.

– Nick Johnson
Nov 18 ’09 at 15:49

add a comment
 | 

5

NoseGAE is a nose plugin that support unittests by automatically setting up the development environment and a test datastore for you. Very useful when developing on dev_appserver.

share|improve this answer|
follow
||||

answered Dec 16 ’09 at 12:35

Hai-Anh TrinhHai-Anh Trinh

92499 silver badges1111 bronze badges

add a comment
 | 

4

I use GAEUnit for my Google App Engine App and I am quite happy with the speed of the tests. The thing that I like about GAEUnit,and I am sure Webtest does it, is that it creates its own version for stubs of everything for testing leaving your “live” versions alone for testing.

So your datastore that you may be using for development will be left as is when you run your GAETests.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 8:24

AutomatedTesterAutomatedTester

20.5k55 gold badges4343 silver badges6060 bronze badges

1

Running dev_appserver and seeing results in my browser (or even via urllib.urlopen) is definitely not what I’m after — I want to use a fully automated setup, suitable for running within an existing test-running framework which is based on extending unittest, and no HTTP in the way (said framework defines a “fast” test as one that among other thing does no sockets and minimal disk I/O — we simulate or mock these — so via gaeunit I could do no better than “medium” tests) + no convenient way to prepopulate datastore for each test (and no OO structure to help customize things).

– Alex Martelli
Nov 18 ’09 at 15:37

Still it’s a nice framework for other needs (medium-plus semi-integration tests which do want HTTP roundtrips, but not the full weight of, say, windmill), so, thanks, and a +1;-)

– Alex Martelli
Nov 18 ’09 at 15:38

add a comment
 | 

3

I might also add that Fixture has been very useful in my unit tests. It lets you create models in a declarative syntax, which it converts into stored entities that you can load in your tests. This way you have the same data set at the beginning of every test case!, which saves you from having to create data by hand at the start of every test. Here is an example, from the Fixture documentation:
Given this model:

from google.appengine.ext import db

class Entry(db.Model):
title = db.StringProperty()
body = db.TextProperty()
added_on = db.DateTimeProperty(auto_now_add=True)

Your fixture would look like this:

from fixture import DataSet

class EntryData(DataSet):
class great_monday:
title = “Monday Was Great”
body = “””
Monday was the best day ever.
“””

Note however, that I ran into the following issues:
1. This bug, but the included patch does remedy it.
2. The datastore is not -by default- reset between test cases. So I use this to force a reset for each test case:

class TycoonTest(unittest.TestCase):
def setUp(self):
# Clear out the datastore before starting the test.
apiproxy_stub_map.apiproxy._APIProxyStubMap__stub_map[‘datastore_v3’].Clear()
self.data = self.load_data()
self.data.setup()
os.environ[‘SERVER_NAME’] = “dev_appserver”
self.after_setUp()

def load_data(self):
return datafixture.data(*dset.__all__)

def after_setUp(self):
“”” After setup
“””
pass

def tearDown(self):
# Teardown data.
try:
self.data.teardown()
except:
pass

share|improve this answer|
follow
||||

answered Aug 18 ’10 at 17:48

mahmoudmahmoud

59522 silver badges66 bronze badges

add a comment
 | 

1

The SDK 1.4.3 Testbed API provides easy configuration of stub libraries for local integration tests.

share|improve this answer|
follow
||||

edited Nov 7 ’12 at 0:14

Till Ulen

1,22811 gold badge1212 silver badges1616 bronze badges

answered Mar 31 ’11 at 8:10

systempuntooutsystempuntoout

61.4k4040 gold badges156156 silver badges234234 bronze badges

add a comment
 | 

0

Since 1.3.1 version of SDK there is the build-in unit test framework.

It is Java only right now but I feel like:

it is much the same you talk about in your question (and much more – as running test in the cloud for example)
and it is quite possible to portimplement the same on Python using SDK

So does the author of this framework – Max Ross and he explicitly tells us about it in his I/O presentation “Testing techniques for Google App Engine”

Does anyone have any updates on this topic?

share|improve this answer|
follow
||||

answered Jan 12 ’11 at 9:24

community wiki

keiw

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 unit-testing google-app-engine or ask your own question.

The Overflow Blog

Podcast 224: Cryptocurrency-Based Life Forms

Q2 Community Roadmap

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Feedback on Q2 2020 Community Roadmap

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

0

How to make integration test for DB at google App. engine?

Related

481Where do the Python unit tests go?752How do you test that a Python function throws an exception?477How do you unit test private methods?720What are unit tests, integration tests, smoke tests, and regression tests?695What is a clean, pythonic way to have multiple constructors in Python?73How do you introduce unit testing into a large, legacy (C/C++) codebase?3Running unit tests on production google app engine412What is the difference between Google App Engine and Google Compute Engine?

Hot Network Questions

Checking if attribute name exists using QGIS Field Calculator

Two Cannons – A Beginner’s Physics Puzzle

Why does a liquid not rotate with the container?

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

Road bike gear common practices

How to tell a statue from a petrified creature in 5e?

Has the number of pneumonia deaths in the US dramatically dropped in 2020?

Could yet unobserved baryons constitute useful building materials?

Expedient repair for water damaged drywall behind tile

Find a Similar Number

I just sequenced my whole genome, can someone tell me what are these different file formats?

How to approach about company hiring for same role with almost double the pay?

Lemon turned broccoli purple

How can I make sure non-open source programs are really using end-to-end encryption?

What actually is RP-1, and how is it different from any other hydrocarbon liquid fuel?

Why did Wisconsin Republicans oppose postponing the April 7th election despite COVID-19 shutting down nearly all polling places?

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

How do I make a writing system undecipherable, while not intended as such in-world?

Find files that have the same name as the directory

What does “version” mean here?

Are ‘please cite my paper’ emails socially accepted?

Generating long binary lists fast?

How was Harry supposed to know that he should have saved Ron, not the others?

An entire file size retriever using a recursive os function in python

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

Accept SSL Certificate in vb6 using the Webbrowser control

Accept SSL Certificate in vb6 using the Webbrowser control

Ask Question

Asked
10 years, 4 months ago

Active
10 years, 4 months ago

Viewed
3k times

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

1

The Problem:
I am creating a vb6 application that will connect to a particular web service located on a a HTTPS site. The problem is, the HTTPS site I’m accessing requires all request to accept it’s certificate policy. (as its a self-signed ssl certificate)

Basically I need the application to accept security certificate dialog boxes automatically. A sample security dialog is shown below:

Cheers in advance.

@EDIT:

I Cant’ post an image yet as i am a new user… Please see the url below for a sample image:

http://oit.nd.edu/network/nomad/images/ie_certs.gif

vb6 ssl certificate

share|improve this question|
follow
||||

asked Nov 18 ’09 at 5:44

DavidDavid

10322 silver badges1515 bronze badges

add a comment
 | 

2 Answers
2

Active

Oldest

Votes

0

Look for a property named Silent.

You will have to catch some other event, to reply to that dialog box. Although, I am not sure what is the behavior, if you set the Silent to true (i.e does it assume it to be Yes or otherwise?).

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:08

shahkalpeshshahkalpesh

31k22 gold badges5454 silver badges8383 bronze badges

Setting it to silent hides the message box, but assumes the user clicks no — resulting in a internal “Navigation to the webpage was canceled” page…

– David
Nov 18 ’09 at 7:15

Do you know of any public website, where I can simulate this behviour?

– shahkalpesh
Nov 18 ’09 at 8:29

add a comment
 | 

0

Most of HTTPS sites I know use self-signed certificates.

I don’t know VB6 APIs for HTTPS, but for example in Java you should provide it a copy of the site certificate beforehand. That is:

export a copy of the certificate, for example from your browser certificate repository (in Firefox: Tools->Options->Advanced->Encryption->View Certificates etc.) – supposing you have have already visited the site with your browser;
detect which certificate repository your HTTPS API points to (there certainly is one)
import certificate into that repository
execute your program

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 9:37

AndreaGAndreaG

1,07622 gold badges1212 silver badges2626 bronze badges

Do you know of any way I could automate this process within vb6? so the process seems completely transparent to the user?

– David
Nov 18 ’09 at 11:14

I don’t know much about VBasic. Notice anyway that this is a one-time only process, albeit a manual one, and that users should be aware of whom they are trusting. Maybe you can pre-build the certificate repository, and distribute it together with the application. You really should read documentation about VB security model. If the control shares the actual browser repository, you might add as a requirement that users connect, once and for all, to the web service via the “real” browser and accept the site certificate.

– AndreaG
Nov 19 ’09 at 8:46

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 vb6 ssl certificate or ask your own question.

The Overflow Blog

Podcast 224: Cryptocurrency-Based Life Forms

Q2 Community Roadmap

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Feedback on Q2 2020 Community Roadmap

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

74Is there a way to make Firefox ignore invalid ssl-certificates?162How can I use different certificates on specific connections?4Java: How to show a dialog to let the user accept SSL certificates1889“Debug certificate expired” error in Eclipse Android plugins1165Getting Chrome to accept self-signed localhost certificate73OpenSSL: unable to verify the first certificate for Experian URL412Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error?1253How to create a self-signed certificate with OpenSSL23Powershell – Set SSL Certificate on https Binding

Hot Network Questions

Why travel from New York to California by ship?

Do I have to keep the spells from subclasses?

Why does increasing altitude (low air pressure) results in lower resistivity/ breakdown voltage?

Hexproof counter on noncreature permanents

Why did Wisconsin Republicans oppose postponing the April 7th election despite COVID-19 shutting down nearly all polling places?

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

5e Inside Giant Toad, blinded and restrained but also unseen, disadvantage to attack the Toad or not?

What’s so broken about Leadership?

Calculate the Degrees of a Clock Hand Based on Input Time

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

Lemon turned broccoli purple

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

How can I list all tech note pages?

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

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

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

Two Cannons – A Beginner’s Physics Puzzle

How can I offset the risk of a market crash when making a retirement plan?

Did Trump vote by mail in the last two elections?

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

Find a Similar Number

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

How to proceed in this endgame position?

Why is electricity consumption billed in watts and not amperes?

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-vb

Categories
askquestion

How do you run multiple ‘Test Movies’ in Flash CS4 IDE? (Need the Sandbox Mode)

How do you run multiple ‘Test Movies’ in Flash CS4 IDE? (Need the Sandbox Mode)

Ask Question

Asked
10 years, 4 months ago

Active
10 years, 4 months ago

Viewed
119 times

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

0

I’m making a binary socket server for Flash and I’m trying to figure out a way to run Multiple clients in a local environment for testing purposes.

Tried to run the exported flash movie in my browser (to open multiple tabs of flash swf) but I just could not figure out how to solve the cross-domain problem.

I’m running my server right from my PC (localhost) and just simply want to test my darn Flash document multiple times so I can simulate multiple clients.

flash flash-cs4

share|improve this question|
follow
||||

asked Nov 18 ’09 at 5:44

CodeJustin.comCodeJustin.com

64299 silver badges2121 bronze badges

add a comment
 | 

1 Answer
1

Active

Oldest

Votes

0

Make a folder somewhere on you computer. Usually I call it C:/FlashSandbox/

Then add it to the allowed file paths in the Global Security Settings panel (“edit locations” dropdown). Then just add your SWF to this folder, and you should be able to access your server.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:23

Adam HarteAdam Harte

9,51277 gold badges4646 silver badges8080 bronze badges

Thanks a bunch mate! Can’t believe I didn’t stumble upon this while Googling.

– CodeJustin.com
Nov 18 ’09 at 9:44

It’s a tricky thing. I can’t even remember how i figured it out back in the day.

– Adam Harte
Nov 18 ’09 at 20:21

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 flash flash-cs4 or ask your own question.

The Overflow Blog

Podcast 224: Cryptocurrency-Based Life Forms

Q2 Community Roadmap

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Feedback on Q2 2020 Community Roadmap

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

0can a Flash app running in browser connect to localhost to get data from another app?0Ruby server and Flash client2Testing movie with Flash IDE fails to load file from localhost1Security Sandbox Violation – loading filesystem and networking SWF files0Loading data (HTML) from external domain into Flash Actionscript 32How to test streaming bandwidth on localhost with Flash Media Server?0Flash video not appearing on facebook canvas page0Testing movie in Flash CS6?0AS3 localConnection with SSL0Flash socket security policy (local+remote socket access)

Hot Network Questions

Why does the F-16 canopy have a K-shaped ‘latch’?

Make a Rectangle from a Triangle

I just sequenced my whole genome, can someone tell me what are these different file formats?

How was Harry supposed to know that he should have saved Ron, not the others?

Trying to solder broken mount, solder won’t stick?

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

Why electricity consumption is billed in watts and not amperes?

Artificially expanding the datasets through rotation of images in MNIST

How much of the Jonestown money actually got given to the USSR?

How can I protect myself from a scammer who has my information?

Did Trump vote by mail in the last two elections?

Why don’t lightsabers burn their users’ hands?

Is a firewall enough of a security measure for an Ubuntu server that hosts a website?

Can visitors sell to CJ and Flick?

5e Inside Giant Toad, blinded and restrained but also unseen, disadvantage to attack the Toad or not?

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

Will this photodiode circuit work?

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

Why travel from New York to California by ship?

Can fireball be cast on self when swallowed

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

What to do when a reviewer is late while daily posting about other activities on social media?

How to make sure non-open source programs are really using end-to-end encryption?

Can Prod and Dev share the same AD? (SP 2016 On-Prem)

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

php session help

php session help

Ask Question

Asked
10 years, 4 months ago

Active
10 years, 4 months ago

Viewed
105 times

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

0

Ok so my main page has a session. I am using the session id to query the database.

Now when I post to a page I have session_start() at the top but when I echo the session_id() on the main page and on the page that was posted to they are 2 different values. Why is it changing the session_id()?

Is there a way to make it keep the original value?

EDIT:

index.php

<?php
session_start();
echo session_id();
?>
<form method=”post” action=”post.php”>
<input type=”text” name=”some_field” />
</form>

post.php

session_start();
echo session_id();

The session_id in index.php is different from the one in post.php!

php session

share|improve this question|
follow
||||

edited Nov 18 ’09 at 6:09

RageZ

23.9k1111 gold badges5959 silver badges7474 bronze badges

asked Nov 18 ’09 at 5:46

ngreenwood6ngreenwood6

6,9281010 gold badges2828 silver badges4949 bronze badges

3

Did you mean session_start(), not start_session()?

– Asaph
Nov 18 ’09 at 5:51

session_start() sorry its been a long day lol

– ngreenwood6
Nov 18 ’09 at 5:55

a little bit of your code please

– Don
Nov 18 ’09 at 5:58

I updated original post with code

– ngreenwood6
Nov 18 ’09 at 6:05

what’s your php.ini session settings, ie. the output of php -i|grep session.?

– ax.
Nov 18 ’09 at 6:15

 | 
show 3 more comments

3 Answers
3

Active

Oldest

Votes

2

are you sure your browser is accepting cookies like it should be ? To make sure you try in a different browser then your usual one

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 5:59

RageZRageZ

23.9k1111 gold badges5959 silver badges7474 bronze badges

yes my browser is accepting cookies. i also tried in another browser just to confirm and it does the same thing.

– ngreenwood6
Nov 18 ’09 at 6:06

can you turn the error_reporting to E_ALL with following code error_reporting(E_ALL);, session_start might output some warning.

– RageZ
Nov 18 ’09 at 6:10

I figured out kinda whats going on by looking at my cookies. There are 2 cookies one is PHPSESSID and the other is SESSf9a1dfbab4f36b89eaf8b74ce485ad62. The one on the index.php page outputs the SESSf9a1dfbab4f36b89eaf8b74ce485ad62 and the one on the post.php page outputs the PHPSESSID one. Any ideas on how to fix this? I need this one SESSf9a1dfbab4f36b89eaf8b74ce485ad62.

– ngreenwood6
Nov 18 ’09 at 6:17

would you be able to clear those cookies and see what happens ?

– RageZ
Nov 18 ’09 at 6:35

add a comment
 | 

0

sounds like you are some how changing the name of the session, or you need to change the name of teh session.

why not output the name of teh session as well as its ID

eg:

echo session_name();
echo “<br/>”;
echo session_id();

if some hwere your session name is being changed, you will have to use that name all the time. PHPSESSID is teh default name for the session. SESSf9a1dfbab4f36b89eaf8b74ce485ad62 sounds like something you have changed it too..

you could also check session_id() to see what value is being stiored in the name. you can explicitly set all of tehse values, and if something in your code is doing so, you had better track it down.

(I am asuming that there is more to your code than what you put up)

share|improve this answer|
follow
||||

answered Nov 19 ’09 at 1:10

BingyBingy

63344 silver badges99 bronze badges

add a comment
 | 

0

http://www.php.net/manual/en/function.session-id.php says:

Note: When using session cookies, specifying an id for session_id()
will always send a new cookie when
session_start() is called, regardless
if the current session id is identical
to the one being set.

and

If id is specified, it will replace
the current session id. session_id()
needs to be called before
session_start() for that purpose.
Depending on the session handler, not
all characters are allowed within the
session id.

share|improve this answer|
follow
||||

answered Nov 19 ’09 at 1:14

powtacpowtac

35.7k2525 gold badges101101 silver badges158158 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 php session or ask your own question.

The Overflow Blog

Podcast 224: Cryptocurrency-Based Life Forms

Q2 Community Roadmap

Featured on Meta

Community and Moderator guidelines for escalating issues via new response…

Feedback on Q2 2020 Community Roadmap

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

2774How can I prevent SQL injection in PHP?2458Deleting an element from an array in PHP1037How do I expire a PHP session after 30 minutes?1459startsWith() and endsWith() functions in PHP1710How do I get PHP errors to display?2105How do you parse and process HTML/XML in PHP?4427Reference — What does this symbol mean in PHP?1995How does PHP ‘foreach’ actually work?2485Why shouldn’t I use mysql_* functions in PHP?

Hot Network Questions

5e Inside Giant Toad, blinded and restrained but also unseen, disadvantage to attack the Toad or not?

Preferred syntax for two lines long pipe

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

Is folding with a spatula really necessary?

What political and social factors underlie Sweden’s controversial response to COVID-19?

Is it bad design to have a class represent your entire program?

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

Find a Similar Number

How much of the Jonestown money actually got given to the USSR?

How to use patterns to specify variable type as Boolean (True, False) in analogy to x_Integer, x_Real, x_Complex, x_List, etc

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

Can fireball be cast on self when swallowed

How was Harry supposed to know that he should have saved Ron, not the others?

Make a Rectangle from a Triangle

Words that link to other words puzzles

How can I list all tech note pages?

What is this pipe coming out of the basement floor?

How to create black precipitate in clear liquid

Emoji Puzzle – UNESCO World Heritage Sites

Etymology of レントゲン?

What actually is RP-1, and how is it different from any other hydrocarbon liquid fuel?

How to initialize the Restricted Master Problem in Dantzig-Wolfe decomposition?

Left hand seat, is it so important?

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

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-php

Categories
askquestion

How do I write a generic method that takes different types as parameters?

How do I write a generic method that takes different types as parameters?

Ask Question

Asked
10 years, 4 months ago

Active
10 years, 4 months ago

Viewed
3k times

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

2

1

I have the following extension method to add the elements in one collection to another collection:

public static void AddRange<T>(this ICollection<T> collection, IEnumerable<T> list)
{
foreach (var item in list)
{
collection.Add(item);
}
}

This works fine if the IEnumerable list is the same type as the ICollection I’m trying to add it to. However, if I have something like this:

var animals = new List<Animal>();
var dogs = new List<Dog>(); // dog is a subclass of animal
animals.AddRange(dogs); // this line has a compiler error, it can’t infer the type

How do I modify my extension method to be able to do something like this, if the type of the IEnumerable is a subclass (or implements the interface) of the T type?

c# generics parameters extension-methods

share|improve this question|
follow
||||

asked Nov 18 ’09 at 5:52

Daniel T.Daniel T.

30.7k3131 gold badges119119 silver badges186186 bronze badges

add a comment
 | 

5 Answers
5

Active

Oldest

Votes

5

This method will give you what you want:

public static void AddRange<A,B>(
this ICollection<A> collection,
IEnumerable<B> list)
where B: A
{
foreach (var item in list)
{
collection.Add(item);
}
}

A couple of notes:

The only way that this can work is if you use a type for B that is derived from A. For example, Dog is a subclass of Animal, so AddRange will work. This is enforced by the “where B: A” clause. Without this, the ICollection.Add() call will fail due to an incompatible type for B being passed into the ICollection expecting an A.
There’s not a lot of need to restrict the type of A to anything in the Animal type hierarchy; the extension method could be used anywhere you have one type deriving from another.
This isn’t really a problem of the compiler not being able to infer the types. Even if you explicitly passed the types for A and B everywhere, you’ll still get a compiler error.

share|improve this answer|
follow
||||

edited Nov 18 ’09 at 6:27

answered Nov 18 ’09 at 6:09

Craig WalkerCraig Walker

41.2k4545 gold badges142142 silver badges196196 bronze badges

Thanks for the code, it worked fine! At first I thought it meant that AddRange() is expecting a key-value pair, but I’m thinking that it can tell the difference based on the parameters. And right, it’s not a problem with type inference, it’s a problem with type casting.

– Daniel T.
Nov 18 ’09 at 21:16

add a comment
 | 

2

You can do this:

public static void AddRange<T,T2>(this ICollection<T> collection, IEnumerable<T2> list) where T2: T {
foreach (var item in list) {
collection.Add(item);
} }

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:04

Richard Anthony HeinRichard Anthony Hein

9,58933 gold badges3838 silver badges5858 bronze badges

add a comment
 | 

1

wait for C# 4.0 or use the Linq extension method Cast:

List<Animal> animals = new List<Animal>();
List<Dog> dogs = new List<Dog>();
animals.AddRange(dogs.Cast<Animal>());

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 8:41

Marc WittkeMarc Wittke

2,29011 gold badge2121 silver badges3636 bronze badges

add a comment
 | 

0

I would use constraint to restrict the type.

public static void AddRange<T, TK>(this ICollection<T> collection, IEnumerable<TK> list) where TK : T
{
foreach (var item in list)
{
collection.Add(item);
}
}

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:27

tranmqtranmq

11.3k22 gold badges2626 silver badges2525 bronze badges

add a comment
 | 

0

public static void AddRange<TA, TB>(this ICollection<TA> collection,
IEnumerable<TB> list) where TB : TA

(incorporated Craig Walker’s comment)

share|improve this answer|
follow
||||

edited Nov 18 ’09 at 7:42

answered Nov 18 ’09 at 5:54

peterchenpeterchen

37.6k1919 gold badges9292 silver badges173173 bronze badges

This won’t work without a “where TB: TA” clause at the end of the method.

– Craig Walker
Nov 18 ’09 at 6:28

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# generics parameters extension-methods or ask your own question.

The Overflow Blog

Podcast 224: Cryptocurrency-Based Life Forms

Q2 Community Roadmap

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

406Use of var keyword in C#1161Create Generic method constraining T to an Enum1046How do I use reflection to call a generic method?1076How to create a generic array in Java?663How to get the type of T from a member of a generic class or method?1886How do I generate a random int number?683How do I get a class instance of generic type T?1447How are parameters sent in an HTTP POST request?1366Why not inherit from List<T>?

Hot Network Questions

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

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

5e Inside Giant Toad, blinded and restrained but also unseen, disadvantage to attack the Toad or not?

Can you instantly sell intraday/day-stocks at a bit higher price?

Ideas for explaining 4D and higher dimensions

Did Trump vote by mail in the last two elections?

What political and social factors underlie Sweden’s controversial response to COVID-19?

Preferred syntax for two lines long pipe

What is cool aid?

I steal the light… what am I?

What is the exact meaning of being at work?

Post-human Earth with intelligent animals. In one scene, bear rubs against crystal pylon to leech energy from structure holding stored human minds

Is it bad design to have a class represent your entire program?

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

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

Is there a Latin equivalent of “lady”?

How to disable address bar animation in Mozilla Firefox?

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

Two Cannons – A Beginner’s Physics Puzzle

Emoji Puzzle – UNESCO World Heritage Sites

Is there a similar plotting feature supported in Mathematica?

How was Harry supposed to know that he should have saved Ron, not the others?

How can I protect myself from a scammer who has my information?

How do I make a writing system undecipherable, while not intended as such in-world?

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

Difference between CFMutableArray and NSMutableArray?

Difference between CFMutableArray and NSMutableArray?

Ask Question

Asked
10 years, 4 months ago

Active
10 years, 4 months ago

Viewed
3k times

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

3

0

What is the difference between NSMutableArray and CFMutableArray?

In which case(s) should we use one or the other?

iphone objective-c nsmutablearray

share|improve this question|
follow
||||

edited Nov 18 ’09 at 6:32

fbrereto

33.3k1717 gold badges116116 silver badges173173 bronze badges

asked Nov 18 ’09 at 5:53

srikanth rongalisrikanth rongali

1,33344 gold badges2626 silver badges5252 bronze badges

add a comment
 | 

3 Answers
3

Active

Oldest

Votes

14

CFMutableArray and NSMutableArray are the C- and Objective-C-equivalents of the same type. They are considered a “toll free bridged” type pair, which means you can cast a CFMutableArrayRef to a NSMutableArray* (and vice versa) and everything will just work. The cases in which you would use one over the other is ease-of-use (are you using C or Objective-C?) or compatibility with an API you would like to use. See more information here.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:06

fbreretofbrereto

33.3k1717 gold badges116116 silver badges173173 bronze badges

add a comment
 | 

1

At runtime, they are identical. They are the same, they are toll-free bridged types – you can safely (and efficiently) cast one to the other.

They are different types, available in different/overlapping languages.

CFMutableArrayRef is the opaque C object interface
NSMutableArray * is the Objective-C interface

They may be freely interchanged, and the difference is the declaration that says one is a pointer to an opaque type, vs a objc object.

Also, you can (sorta – it requires a little more implementation than usual) subclass NSMutableArray type using objc.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 7:55

justinjustin

99.8k1313 gold badges168168 silver badges219219 bronze badges

add a comment
 | 

1

OSX’s APIs are layered, there are basic low-level APIs that are self-cotnained and then there are richer APIs built on top of them, in turn using the lower level APIs themselves.

CFMutableArray is part of the CoreFoundation framework and used by the lower-level APIs. NSMutableArray (I guess NS stands for NextStep) is part of the Foundation framework and used in higher level APIs like the AppKit or Cocoa.

Which you should use depends on where you are working. If you’re working in a rich user interface using Cocoa, NSMutableArray is the right choice. If you’re working on a daemon, driver or anything else just using CoreFoundation, use CFMutableArray.

Luckily, as pointed out above, many of these CF/NS types are toll-free bridged and so you can use CoreFoundation APIs from e.g. Cocoa without having to constantly convert types.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 12:03

AdrianAdrian

85655 silver badges44 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 iphone objective-c nsmutablearray 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

NSArray with C types?

Related

384What is the difference between #import and #include in Objective-C?1848What’s the difference between the atomic and nonatomic attributes?1262How do I sort an NSMutableArray with custom objects in it?445What is the difference between class and instance methods?344Difference between objectForKey and valueForKey?1684How can I make a UITextField move up when the keyboard is present – on starting to [email protected] vs @dynamic, what are the differences?310Comparison between Corona, Phonegap, Titanium1368Passing Data between View Controllers306Differences between strong and weak in Objective-C

Hot Network Questions

Murder Mystery – Murder at The StackO Ave Tavern

Make a Rectangle from a Triangle

Is there a generating function for any finite sequence of random numbers?

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

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

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

Does the sorcerer’s Extended Spell metamagic option extend the duration of a spell exponentially or linearly?

Remove polygons that do not fall completely inside overlay layer within the clip function

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

Can you instantly sell intraday/day-stocks at a bit higher price?

How to make sure non-open source programs are really using end-to-end encryption?

Python Flashcards

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

Is folding with a spatula really necessary?

What is this? Is it LEGO?

Does Vim have functionality similar to tmux’s `display-panes` command for selecting (goto) a specific window by number?

Best method to determine temperature while heating sugar

Two Cannons – A Beginner’s Physics Puzzle

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

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

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?

What’s so broken about Leadership?

Why do these four chords make hit songs?

Undefined behaviour in vector of vectors cast

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-c

Categories
askquestion

RoR – Removing comma

RoR – Removing comma

Ask Question

Asked
10 years, 4 months ago

Active
10 years, 4 months ago

Viewed
115 times

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

0

1

help me to write rails code to remove comma for the below code

<%
student = []
student << “About Section:”
student << student_input(@input, :section_name)
student << student_input(@input, :section_strength)
%>
<%= student.join(“, “) %>

I have output for this as ” About Section:, section name, section strength ”

I just want to remove the comma(,) following “About Section:,”

ruby-on-rails

share|improve this question|
follow
||||

edited Nov 18 ’09 at 5:55

mipadi

331k7373 gold badges481481 silver badges459459 bronze badges

asked Nov 18 ’09 at 5:54

Senthil Kumar BhaskaranSenthil Kumar Bhaskaran

6,93199 gold badges3939 silver badges5656 bronze badges

as this has been marked answered in stackoverflow.com/questions/1753933/ror-removing-comma , which is an exact duplicate / double post of this (first) one here, i vote for closing this original one.

– ax.
Nov 18 ’09 at 6:43

add a comment
 | 

2 Answers
2

Active

Oldest

Votes

4

Seems like it’d be easier just to do this:

About Section: <%= student_input @input, :section_name %>, <%= student_input @input, :section_string %>

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 5:56

mipadimipadi

331k7373 gold badges481481 silver badges459459 bronze badges

add a comment
 | 

1

Here ya go:

“#{student.shift} #{student.join(‘, ‘)”

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 5:58

btellesbtelles

5,29166 gold badges4141 silver badges7272 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 ruby-on-rails 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

Visit chat

Related

2How to remove Field Names in validates_presence_of on rails Model99Remove ActiveRecord in Rails 365Does rails have an opposite of ‘humanize’ for strings?203Can I get the name of the current controller in the view?6i18n on Ruby on Rails, < and > gets replaced by &gt ; &lt ; when not intended388Using Rails 3.1, where do you put your “page specific” JavaScript code?0Understanding how forms for associated tables work217Breaking up long strings on multiple lines in Ruby without stripping newlines227Auto-loading lib files in Rails 4

Hot Network Questions

Is folding with a spatula really necessary?

Using VectorPlot3D gives me the following error: “Value of option PlotPoints -> {} is not an integer >= 2”

How to list all tech note pages?

Could you manually eject a floppy quick enough to prevent data loss?

Why ban Lulav on Shabbos in places with eruvin?

Does the sorcerer’s Extended Spell metamagic option extend the duration of a spell exponentially or linearly?

What metal would burn steadily in a water lamp?

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

Preferred syntax for two lines long pipe

Why electricity consumption is billed in watts and not amperes?

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

Why don’t lightsabers burn their users’ hands?

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

Can visitors sell to CJ and Flick?

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

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

Post-human Earth with intelligent animals. In one scene, bear rubs against crystal pylon to leech energy from structure holding stored human minds

What political and social factors underlie Sweden’s controversial response to COVID-19?

Has the number of pneumonia deaths in the US dramatically dropped in 2020?

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

How close an orbit could you get to Earth with a planet-sized object/ship without severely disrupting Earth’s orbit?

What is this? Is it LEGO?

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

Calculate the Degrees of a Clock Hand Based on Input Time

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

Detecting login credentials abuse

Detecting login credentials abuse

Ask Question

Asked
10 years, 4 months ago

Active
10 months ago

Viewed
235 times

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

1

I am the webmaster for a small, growing industrial association. Soon, I will have to implement a restricted, members-only section for the website.

The problem is that our organization membership both includes big companies as well as amateur “clubs” (it’s a relatively new industry…).

It is clear that those clubs will share the login ID they will use to log onto our website. The problem is to detect whether one of their members will share the login credentials with people who would not normally supposed to be accessing the website (there is no objection for such a club to have all it’s members get on the website).

I have thought about logging along with each sign-on the IP address as well as the OS and the browser used; if the OS/Browser stays constant and there are no more than, say, 10 different IP addresses, the account is clearly used by very few different computers.

But if there are 50 OS/Browser combination and 150 different IPs, the credentials have obviously been disseminated far, and there would be then cause for action, such as modifying the password.

Of course, it is extremely annoying when your password is being unilaterally changed. So, for this problem, I thought about allowing the “clubs” to manage their own list of sub-accounts, and therefore if abuse is suspected, the user responsible would be easily pinned-down, and this “sub-member” alone would face the annoyance of a password change.

Question:
What potential problems would anyone see with such an approach?

web login credentials detection

share|improve this question|
follow
||||

edited May 27 ’19 at 8:39

nvoigt

54.3k88 gold badges6262 silver badges9898 bronze badges

asked Nov 18 ’09 at 5:54

user213502user213502

I bet you’ll get better responses from serverfault.com. This is a programming site.

– Jay Riggs
Nov 18 ’09 at 6:00

add a comment
 | 

1 Answer
1

Active

Oldest

Votes

1

Any particular reason why you can’t force each club member to register (just straight-up, not necessarily as a sub or a similar complex structure)? Perhaps give each club some sort of code to use just when the users register so you can automatically create their accounts and affiliate them with a club, but you then have direct accounting of each member without an onerous process that the club has to manage themselves. Then it’s much easier to determine if a given account is being spread around (disparate IP accesses in given periods of time).

Clearly then you can also set a limit on the number of affiliated accounts per club, should you want to do so. This is basically what you’ve suggested, I suppose, but I would try to keep any onerous management tasks out of the hands of your users if at all possible. If you can manage club-affiliated signups, you should, rather than forcing someone at the club to manage them for you.

Also, while some sort of heuristic based on IP and credentials is probably fine, I would stay away from incorporating user-agent, or at least caring too much about it. Seeing a few different UAs from the same IP – depending on your expected userbase, I suppose – isn’t really that unusual. I use several browsers in the course of my day due to website bugs, etc. and unless someone is using a machine as a proxy, it’s not evidence of anything nefarious.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:03

Nick BastinNick Bastin

24.6k77 gold badges5050 silver badges7575 bronze badges

Oops, we think alike… I’ll leave my response a few minutes to have the OP see that several people suggest the registration. But I’ll then delete my response, no point in doubling up!

– mjv
Nov 18 ’09 at 6:17

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…

Technical site integration observational experiment live on Stack Overflow

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

Related

2What’s the proper name for an email address used as a login or user name?0What is the development effort for implementing “login with facebook” on large eCommerce site in JSP?0Is there a way to get the login credentials held by a browser?1How to create a ‘Super Administrative’ Password for member login site586Remove credentials from Git0Login form validation and error message in PHP0Populate username and password into website login page when accessed from mobile App2Login Credetials: Why not drop the username?0Securing login credentials in an iOS app bundle

Hot Network Questions

Why did Wisconsin Republicans oppose postponing the April 7th election despite COVID-19 shutting down nearly all polling places?

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

Why electricity consumption is billed in watts and not amperes?

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

Train Leela Chess against myself

What is cool aid?

Generalized Power Equation, Ohm’s Law and Ohm’s Power Loss?

Preferred syntax for two lines long pipe

Can visitors sell to CJ and Flick?

Post-human Earth with intelligent animals. In one scene, bear rubs against crystal pylon to leech energy from structure holding stored human minds

Are ‘please cite my paper’ emails socially accepted?

Ideas for explaining 4D and higher dimensions

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

Using VectorPlot3D gives me the following error: “Value of option PlotPoints -> {} is not an integer >= 2”

Calculate the Degrees of a Clock Hand Based on Input Time

How was Harry supposed to know that he should have saved Ron, not the others?

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

Necessary and sufficient conditions.

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

Left hand seat, is it so important?

Emoji Puzzle – UNESCO World Heritage Sites

What political and social factors underlie Sweden’s controversial response to COVID-19?

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

Why was Ki-taek not arrested?

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

Help needed in writing a GUI app in C

Help needed in writing a GUI app in C

Ask Question

Asked
10 years, 4 months ago

Active
10 years, 4 months ago

Viewed
4k times

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

1

2

I want to write a standalone GUI based app for administering one of the most popular enterprise middleware products from a very big company. But that big company already has a admin tool and its free.
But guess what , its very very slow , since its written on the java/Eclipse platform.

I want to write a very fast responsive GUI tool natively for windows.

I do not have much experience programming for windows , So what library(open source preferably) i can use on windows to get the job done.

Note: I need to write it in C, Not C++ , But if i dont have any choice I guess i can do with C++.
So I basically need to write a GUI app in C with some good GUI library.

Please help me out.

Thanks.

Edit : I do not know OOP and don’t prefer using it.

Edit : So my choice is down to Win32API and Qt.
my requirement is that of a simple GUI , nothing fancy. I will be using simple windows ,buttons and menus. But I may need to do some processing , which means GUI should not take up much resources.
Based on this I m thinking of using Win32 API , even if I have to take the pain to hopefully satisfy the users.

c user-interface

share|improve this question|
follow
||||

edited Nov 19 ’09 at 9:58

someguy

asked Nov 18 ’09 at 5:55

someguysomeguy

86311 gold badge1111 silver badges1616 bronze badges

How will you connect to administer?

– James Black
Nov 18 ’09 at 6:04

@James, We have something called channels, We connect using channels.

– someguy
Nov 18 ’09 at 6:07

You are asking for a windowing API that will work on windows, since you can’t use any of the native dlls that windows provides for applications? Or, can you use these dlls and so do this with MFC (Microsoft Foundation Classes), in C++?

– James Black
Nov 18 ’09 at 6:07

Epic respect for not using OOP.

– Matt Joiner
Jul 22 ’10 at 4:24

add a comment
 | 

10 Answers
10

Active

Oldest

Votes

5

If you want to write a C GUI app, stick to Win32 or GTK+.

Win32 is blazingly fast, and will let you access everything available to Windows. Take a look at this tutorial.

GTK+ is extremely easy to use, cross platform, and provides tons of extra functionality. Start by downloading the all-in-one bundle, and move onto a tutorial and the documentation.

Personally I’d recommend going straight to Python if you need quick, responsive GUIs, and just need to wrap some lower level stuff.

share|improve this answer|
follow
||||

edited Nov 18 ’09 at 10:12

answered Nov 18 ’09 at 10:03

Matt JoinerMatt Joiner

89.9k8282 gold badges307307 silver badges475475 bronze badges

But distribution will be a problem. even if i manage to pack and make it a executable. the size has to big. NO JVMs pls..

– someguy
Nov 19 ’09 at 6:17

no i don’t know where you got that idea. if you use win32, you’ll get the smallest possible executable. gtk+ usually requires ~8MB of DLLs to go with it, but they can be shared by all gtk+ apps. neither win32, or gtk+ is a JVM…

– Matt Joiner
Nov 19 ’09 at 22:44

@someguy, oh okay. it’s not a java virtual machine tho :). more of a runtime.

– Matt Joiner
Nov 20 ’09 at 5:53

add a comment
 | 

6

its very very slow , since its written
on the java/Eclipse platform.

Are you sure that this is the reason for the application’s slowness? I am no
fan of Java, but before you reach any conclusion, have you made sure that
writing the software in c makes it noticably faster? It could be that the
application is slow for reasons that are not under the control of the GUI programmer,
such as a slow database or bad network latencies.

Also, I don’t mean to be rude here, but do

I want to write a very fast responsive
GUI tool natively for windows.

and

I do not have much experience
programming for windows

not contradict each other?

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 8:50

René NyffeneggerRené Nyffenegger

33.3k2020 gold badges127127 silver badges206206 bronze badges

4

don’t “windows” and “very fast” contradict each other?

– Matt Joiner
Nov 18 ’09 at 9:59

@Anacrolix…Good one 🙂 But windows is all i have to use.. and make the app run as fast as i can on it..

– someguy
Nov 19 ’09 at 6:13

@Anacrolix : Yes the gui is slow not just on my machine, but all the machines in my company..and it does not connect to database or anything. there is one more smaller uitlity(written in C). which is very fast, but cannot do complete adminitration from it. I do not have the source for it either.Hence this undertaking.. btw..Java/Eclipse sucks . the IDE may be good , but its slow and frustating. Wish all IDE were written in C++/C

– someguy
Nov 19 ’09 at 6:16

add a comment
 | 

2

Why are you limiting yourself to C? Windows Forms and WPF and SIlverLight are all viable UI frameworks that are responsive and have tons of books. There’s a reason you can’t find much info about writing GUI apps in C – people don’t do it.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:06

No Refunds No ReturnsNo Refunds No Returns

6,47944 gold badges2222 silver badges3636 bronze badges

Hmm i was afraid of it. So i guess i have to use C++ or something similar. Would be cool though if you could write a GUI in just C.

– someguy
Nov 18 ’09 at 6:09

You can write a GUI in C. It’s just quite difficult these days because the frameworks aren’t desgined for it.

– Mark Pim
Nov 18 ’09 at 9:43

“i was afraid of it.” Right there is your best reason to learn something new.

– rpj
Nov 19 ’09 at 2:56

1

The real reason is it requires talent, and good programming. Those aren’t prerequisites for the many prepackaged Duplo frameworks Microsoft releases.

– Matt Joiner
Nov 25 ’09 at 11:54

add a comment
 | 

2

For plain C, cross platform, native look, simple, scriptable UI, I suggest to have a look at IUP: http://www.tecgraf.puc-rio.br/iup/

share|improve this answer|
follow
||||

edited Nov 18 ’09 at 9:34

answered Nov 18 ’09 at 8:38

Remo.DRemo.D

14.6k55 gold badges3939 silver badges6767 bronze badges

add a comment
 | 

1

If you really have to use C then you can use GTK+. Otherwise, I’d suggest a C++ library like QT or wxWidgets. However, that being said I still think it would be preferable to build a .NET (Windows Forms or WPF) solution. They should provide a better UI experience than Java/Swing.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:10

Taylor LeeseTaylor Leese

43.3k2525 gold badges100100 silver badges138138 bronze badges

I do not want .NET because thats another layer. when I want to distrbute , I dont expect people to have .NET and I dont want my app to be dependent on .NET

– someguy
Nov 18 ’09 at 6:14

I liked QT, but Do i have to do extensive OOP programming if I use it. Can I mix C and QT together?

– someguy
Nov 18 ’09 at 6:16

Regarding QT, you’d basically be building a C++ application and calling your C libraries/code from it. QT was actually my first real experience with C++ years ago and the learning curve was pretty easy.

– Taylor Leese
Nov 18 ’09 at 6:19

So , how much of OOP or C++ I need to know before I start using QT. QT looks good.

– someguy
Nov 18 ’09 at 6:25

2

I don’t really understand your aversion to using OOP/C++. If you’re writing a C++ application it should be OO. Think of it as a learning opportunity.

– Taylor Leese
Nov 18 ’09 at 6:28

 | 
show 3 more comments

1

If you really want to do it in C, you could use the Win32 API. But it’s hell working with it. The Object Oriented variant isn’t much better either, but it takes away a bit of the pain (MFC).

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 8:43

TheGrandWazooTheGrandWazoo

2,54111 gold badge1414 silver badges1515 bronze badges

It might take a bit of the pain away, but the pain that’s left is re-used over and over again……

– Skizz
Nov 18 ’09 at 9:44

2

Actually, you won’t get much faster than native Win32 API calls. It’s a big thing to learn though.

– Skizz
Nov 18 ’09 at 9:47

add a comment
 | 

1

I strongly recommend you to use C++ with the Qt library, which is both cross-platform and open-source (LGPL). C++ Qt GUI applications are as fast as native Win32 applications, although they take more memory. And you can’t even start comparing the productivity gains – Qt is a great library, terrifically designed for GUI programming with tons of other useful tools.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 16:13

Eli BenderskyEli Bendersky

208k7373 gold badges320320 silver badges388388 bronze badges

add a comment
 | 

1

Most GUI toolkits are written in C++, so restricting yourself to C will limit your options somewhat. One option that is cross platform and written in C is GTK; it’s originally for X, but runs on Windows as well.

edit: Of course, you could always just program directly against the Windows API (formerly know as Win32) itself. For simple GUIs, it’s not too bad.

share|improve this answer|
follow
||||

edited Nov 19 ’09 at 16:51

answered Nov 18 ’09 at 6:11

Brian CampbellBrian Campbell

264k5252 gold badges337337 silver badges322322 bronze badges

c++ libraries are generally much more difficult to use than C libraries, i’m not a fan of OO obsessiveness either

– Matt Joiner
Nov 18 ’09 at 10:01

add a comment
 | 

0

GUI components map very well into Object oriented paradigm. Using C for GUI applications is a bad idea, I’ve been there and it’s much more confortable to do it in an propper OO fashion with C++. Of course you can sort of do OO with C but it’s ugly to say the least.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:15

piotrpiotr

5,1792626 silver badges5353 bronze badges

Hmm yes ic. So i was wondering if I could use QT. Is it really good. Does it produce nice responsive GUIs or do i have to use native Windows API’s .

– someguy
Nov 18 ’09 at 6:19

Speed would only be a concern in standard pc if you start doing 2D and 3D rendering. If you just use vanilla GUI components it’s going to be much, much faster than the java app. Either QT or Gtkmm will do for Windows.

– piotr
Nov 18 ’09 at 8:59

“Using C for GUI applications is a bad idea”… see www.gnome.org and www.gtk.org for why I have the opposite opinion.

– mlibby
Nov 18 ’09 at 11:38

What do I have to see there? I know they are implemented in C, and I think they should have been implemented in C++. There is gtkmm btw.

– piotr
Nov 18 ’09 at 12:35

add a comment
 | 

0

In my opinion, more than the GUI frameworks you need to really work on the design of the application you building.

For a normal GUI in C/C++ Win32 provides enough of controls for a decent looking application with good response time.

What you should really focus on is how to make it multi-thread based upon the time your modules take for execution.

Consider this small example: You have a DataBase connection monitoring in your GUI which is probed every second. Another module may be sending some big files to other applications. Now if an application is single threaded, your GUI is bound to have response problem. If you database connection is very slow due to some network/db issue your app will hang irrespective of the GUI frameworks or hardware chosen, if it was a single threaded app.

But if you write a good design and dedicate a separate thread for GUI handling and other threads for handing background tasks, you will have a really good GUI response. That way you can perform other tasks in background and GUI gets updated when notification is obtained. Remember, it wont happen magically and you need to sync you threads and update GUI.

Also, avoid creating threads for each and every task. You need to check things which can take more time like sending big files or faster tasks like checking/reading if config file exists or not.

By using third party GUI frameworks you are increasing your dependencies in your application and you would require to ship additional dlls etc with you main application. With win32 things are pretty neat.

share|improve this answer|
follow
||||

answered Nov 19 ’09 at 9:09

K SinghK Singh

1,6201717 silver badges2828 bronze badges

Yes very true..I was looking for something like this.. MY gui does poll something at the backend and displays in the GUI so i definelty need thread here. Thanks for the pointers..

– someguy
Nov 19 ’09 at 9:11

1

So my best advice is to stick with Win32 based on your constraints and design a good mulithreaded app as per your requirment.

– K Singh
Nov 19 ’09 at 9:17

Any good tutorials on writing a multithreaded GUI app for windows.. something for beginners..

– someguy
Nov 19 ’09 at 10:22

If you seriously wanna get into windows programming especially win32 these books should come very handy. 1. Programming Windows / Charles Petzold – for understanding basic win32 applications and various GUI controls. This will give you good idea how to make a GUI application in win32. 2. Programming Applications for Microsoft Windows / Jeffrey Richter – this will help you in making multi-threaded applications and explain concepts thread syncronization etc in detail so that you can design good applications. Also you can check www.codeproject.com Hope this helps.

– K Singh
Nov 19 ’09 at 12:32

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 user-interface 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

15

GUI with C++ ? or C# and Java the way to go?

Related

24How do I create a GUI for a windows application using C++?1375How do I update the GUI from another thread?435What is Linux’s native GUI API?5attach a GUI to a command line tool

Hot Network Questions

My inflatable hot tub says “don’t use with an extension cord”… but can I?

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

Murder Mystery – Murder at The StackO Ave Tavern

What is this? Is it LEGO?

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

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

Hybrid gas electric drone

Avoiding “Zoom bombing” in virtual conferences and seminars

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

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

Normality test for discrete values of a continuous variable

What is the exact meaning of being at work?

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?

Fun with Flags part 6: left right left

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

Why do these four chords make hit songs?

Post-human Earth with intelligent animals. In one scene, bear rubs against crystal pylon to leech energy from structure holding stored human minds

Some Questions related to Linear programming

Can you instantly sell intraday/day-stocks at a bit higher price?

Trying to solder broken mount, solder won’t stick?

the rules of “approximately independent”

How to remove Broken Fall Enchantment from play

Matrices in MaTeX

How would combat work without opportunity attacks?

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-c

Categories
askquestion

I want to have the textbox value by default 1 and increment in the next record

I want to have the textbox value by default 1 and increment in the next record

Ask Question

Asked
10 years, 4 months ago

Active
10 years, 4 months ago

Viewed
814 times

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

1

textbox1.text=1;

My question is, I want to have by default the textbox1 value 1 and then increment it in the record by default.

c#

share|improve this question|
follow
||||

edited Nov 18 ’09 at 6:00

Michael Petrotta

54.8k1414 gold badges133133 silver badges173173 bronze badges

asked Nov 18 ’09 at 5:56

ibrahimibrahim

24711 gold badge88 silver badges1111 bronze badges

I’m sorry, but your question is not clear.

– Michael Petrotta
Nov 18 ’09 at 5:59

1

Thats not really a question. You want to default the value to 1, and then save it as 2? I’m not quite sure what you’re asking.

– Brandon
Nov 18 ’09 at 5:59

add a comment
 | 

3 Answers
3

Active

Oldest

Votes

1

Not sure if I understood what you want but if you need your textbox to always default to 1 you should create your own textbox class extending the UI.TextBox (don’t know if you are in Web or Win).

Something like this:

public class MyTextBox : TextBox
{
private string text = “1”;
public override string Text
{
get {return text;}
set {text = value};
}
}

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:04

Andre GalloAndre Gallo

2,02155 gold badges2020 silver badges3939 bronze badges

add a comment
 | 

0

Not sure if i understood you correctly. Not sure whetehr its web or win either.

I am just rewriting what i understood “There is a default textbox whose value should be 1, and for the rest of the records from database more textboxes should come dynamically with values for it incremented by 1 from previous”

If its web you can use some javascript to initialize a variable to 1. Then while generating textboxes you probably can set its value with variable value and increment the variable value for next record.

share|improve this answer|
follow
||||

answered Nov 18 ’09 at 6:19

RichieRichie

8,09644 gold badges2121 silver badges3737 bronze badges

add a comment
 | 

0

You have many options:
1. Setting it in design mode. Like this,

<asp:TextBox ID=”txtName” Text=”1″ runat=”server”></asp:TextBox>

Setting it in you code behind in the Page_Load event handler. Like this

protected void Page_Load(object sender, EventArgs e) {
txtName.Text = “1”;
}

But you should remember to convert these values to integer before incrementing it. Like this

int myValue = Convert.ToInt32(txtName.Text);

Then you can increment it and assign it back to the textbox.

There are other option available like the OnInit event handler. I guess this will do.

share|improve this answer|
follow
||||

answered Nov 22 ’09 at 12:22

TeboTebo

12.6k1111 gold badges4444 silver badges6161 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# 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

1161Create Generic method constraining T to an Enum2880Case insensitive ‘Contains(string)’1377When to use struct?1644Proper use of the IDisposable interface1375Static readonly vs const1788Get int value from enum in C#865Entity Framework 5 Updating a Record

Hot Network Questions

What is this pipe coming out of the basement floor?

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

Etymology of レントゲン?

Make a Rectangle from a Triangle

RGB code for predefined colors

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

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

Building a spaceship alone in the wilderness

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

Uncommon underpromotion motive

Calculate the Degrees of a Clock Hand Based on Input Time

Normality test for discrete values of a continuous variable

Hardening off plants grown under grow lights

How quickly does spacetime that’s been deformed return to “flat” after the deforming mass moves on?

Why don’t we bleed interstitial fluid?

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

Two Dehn fillings yielding a lens space?

My inflatable hot tub says “don’t use with an extension cord”… but can I?

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

How was Harry supposed to know that he should have saved Ron, not the others?

Can you instantly sell intraday/day-stocks at a bit higher price?

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

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

Fun with Flags part 6: left right left

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