A colleague and I are having a bit of an argument over multiple inheritance. I'm saying it's not supported and he's saying it is. So, I thought that I'd ask the brainy bunch on the net.
Hi,
I hope somebody can help me out on this question.
I'm using a SQL database and I'm writing a VB.NET client application. This application is used on multiple computers at the same time. If one of the clients makes an update to the database I would like to have the other clients to be aware of the update.
Has ony one already done this before?
Thank you very much!
Marcel
Hi,
I'm using a UIImageView as a background-image and placed multiple UIButtons on it.
Now I want to move the UIImageView (with all the buttons on it) out of sight with a smooth animation.
I couldn't find a container or grouping element in IB, so is there a way to move all the Views at once?
Thank you in advance and sorry for my english!
I need to create a custom field that supports multiple values which can be uniquely identified (beyond the delta field which changes when the values are re-ordered). I have created a module for the field and specified the two database columns that I would like CCK to use (one for the value and one for the ID) but I am not sure where the entry point is for adding in a unique id for each value (probably will just take the id from a sequence).
Hello, is there any way to execute multiple statements (none of which will have to return anything) on Firebird? Like importing a SQL file and executing it.
I've been looking for a while and couldn't find anything for this.
Hi,
I am brand stinking new to jquery and attempting to have a "Services" page for a tech website I am working on. I am having trouble with different services opening the same info in the window.
Basically I am using the code straight from the demo. Any ideas on how to have multiple windows in the same page?
Thanks!
I have multiple inheritance like this one: http://stackoverflow.com/questions/356128/can-i-extend-a-class-using-more-than-1-class-in-php (let's not discuss this approach itself please) and want my IDE to know about inherited class methods and properties. Is there a way to do it with PhpDoc?
In PHP, is it possible to have multiple inheritance (by the nature of the PHP, not writting modification code) ?
example :
class a
{
public function foo();
}
class b
{
public function bar();
}
class c extends a, b
{
public function baz();
}
What happens in mysql multiple records insert during an error. I have a table:
id | value
2 | 100
UNIQUE(id)
Now i try to execute the query:
INSERT INTO table(id, value) VALUES (1,10),(2,20),(3,30)
I will get a duplicate-key error for the (2,20) BUT... Will the (1,10) get into the database? Will the (3,30) get into the database?
I have a WCF service (instantiated within a Console application on NetTCP), this service has static data (large volume) which gets instantiated on the load.
I have multiple instances of this Console application running at once, and all of them are doing the same static data initialization , is there a way that I can have a single data source and share the data among processes so that each process does not have to consume large amount of memory?
I want to make 10 asynchronous http requests at once and only process the results when all have completed and in a single callback function. I also do not want to block any threads using WaitAll (it is my understanding that WaitAll blocks until all are complete). I think I want to make a custom IAsyncResult which will handle multiple calls. Am I on the right track? Are there any good resources or examples out there that describe handling this?
Using only keyboard, how can I select non-consecutive options of a multiple select element. On Firefox or Windows explorer, I can simply ctrl+Arrow to move the focus and then space bar to select. But I don't see any way to make it work on IE.
Thanks
What I want to do is something like this:
searchid = 4
while searchid != -1
@a += A.find(searchid)
@b = B.find(searchid)
searchid = @b.parentid
end
The problem being the line
@a += A.find(searchid)
The error being something like
NoMethodError: undefined method `+' for #
So, how do you combine multiple 'find' requests?
hello,
i want to do a select multiple double side
like this : http://www.senamion.com/blog/jmultiselect2side.html (Demo2)
but i don't know how i can retrieve my data when i click submit button..?
Does anyone know how to do this? I know how to display a single feed as a simple list, but it gets more complicated. I want to display a list but have multiple sources, with each source having the list-style-image be specific.
Example:
(img1) This is data from rss feed 1
(img2) This is data from rss feed 2
Thanks so much for the help!
if i have queries on multiple tables like:
d = Relations.objects.filter(follow = request.user).filter(date_follow__lt = last_checked)
r = Reply.objects.filter(reply_to = request.user).filter(date_reply__lt = last_checked)
article = New.objects.filter(created_by = request.user)
vote = Vote.objects.filter(voted = article).filter(date__lt = last_checked)
and i want to display the results from all of them ordered by date (i mean not listing all the replies, then all the votes, etc ).
Somehow, i want to 'join all these results', in a single queryset.
Is there possible?
hi,
i have a query regarding to insert data in multiple table..
i have a two tables. one is item table and second is field table.
i want to insert data in both table with one query at a time.
any idea about it.
I'm having a table, where one ID, can have multiple statuses
| client_id | status_id |
| 1 | 2 |
| 1 | 3 |
| 1 | 5 |
| 2 | 2 |
| 2 | 3 |
| 2 | 6 |
The problem is, to select only those client_id's if they have all the statuses i.e. 2,3,5 (status_id = 2 AND status_id = 3 AND status_id = 5) but mysql doesn't allow that directly.
Hi,
Let's say I have a class A and a class B. I would like to edit using .NET PropertyGrid multiple instances of A and B simultaneously. The desired behavior would be to have the intersection of properties displayed.
If A and B have static (written in the source code) properties everything works fine. Selecting A and B instances will only display the intersection of properties.
However, if A and B also have dynamic properties (returned as a PropertyDescriptorCollection through the GetProperties() method) the behavior is wrong. When selecting multiple objects I will only see those static properties and none of the dynamic ones.
When I select only one instance I can see all properties (static and dynamic).
Anybody any ideas? I couldn't find anything on the internet.
This is my problem.
I'm using different sql-queries for fetching some people, some come from my database and some come from an external database.
They are all sorted in the same "list", only the difference is, that the people who come from our database will have a different lay-out and there will be less of them in a row (eg. 1 in a row), the list of people who come from the external database will be ordered by 3 (in a row).
How can i implement this using a repeater? And how would the pagination work?
Any "logical", working alternatives will be appreciated also, but i prefer to keep my current workflow to solve this problem.
Short:
- Multiple datasources
- Multiple templates for the different datasources (1 in a row, 3 in a row)
- Pagination in this problem?
Given multiple HTML checkboxes:
<input type="checkbox" name="catIDs" value="1" />
<input type="checkbox" name="catIDs" value="2" />
...
<input type="checkbox" name="catIDs" value="100" />
How do I retrive an array of integers from a FormCollection in an action:
public ActionResult Edit(FormCollection form)
{
int [] catIDs = (IEnumerable<int>)form["catIDs"]; // ???
// alternatively:
foreach (int catID in form["catIDs"] as *SOME CAST*)
{
// ...
}
return View();
}
Note: I read the related questions and I don't want to change my action parameters, eg. Edit(int [] catIDs).
Hi!
Im trying to implement a UIScrollView including multiple images, using paginate. The problem is that I want more then one page to be visible in the UIScrollView, but only one page should be selected.
I found several solutions in which you handle touch down/up (touchesBegan and touchesEnded) myself and scrollRectToVisible, but I want to avoid this if possible. A sample solution for that can be found at:
http://forums.macrumors.com/showthread.php?t=634462
I dont get why its so easy if you only need to display one page at a time in the UIScrollView , but seems really hard if you want to show more pages. Could you solve it with zooming?
/Br Johannes
When I am working on a PHP file for example the default filetype is php. This makes sense, however when that PHP file has HTML as well the filetype is still only php. For some plugins that means that I get the PHP functionality for that plugin, but miss out on the HTML functionality.
A more specific situation where this happens is with my snippet plugin. I get php snippets and not html snippets when I am editing a php file.
Possible solutions to this (which I obviously don't like, hence my posting this question) are:
add a map to toggle between different filetypes when I am editing different sections of the file.
update my php snippets file to include the html snippets as well (while this would work for the example above, it doesn't solve the fundamental problem).
So, Is there a way to edit a file using multiple filetypes at the same time in vim?
I have a project under which various distributed applications are placed; the whole project is under a single dll. Hence, if any issue occurs we need to re-build the whole application to run or import to our server. I am looking for the best possible way to make the build process faster and also bit worried about the size of the DLL. Is it a good way to have separate dll for all the modules or split the application in multiple projects???
Can, anyone suggest the best way or example to deal with this situation.
Any help would be appreciated.
Thanks in advance.
I have written an application running activities in multiple processes.
I tried Robotium by creating a new test project set target package to my application. When I executed it, the test stopped with the following error message:
Error in testDisplayBlackBox:
java.lang.RuntimeException: Intent in process com.abc.def resolved to different process com.abc.def:mail: Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=com.abc.def/com.abc.def.email.activity.Welcome }
at android.app.Instrumentation.startActivitySync(Instrumentation.java:377)
at android.test.InstrumentationTestCase.launchActivityWithIntent(InstrumentationTestCase.java:119)
at android.test.InstrumentationTestCase.launchActivity(InstrumentationTestCase.java:97)
at android.test.ActivityInstrumentationTestCase2.getActivity(ActivityInstrumentationTestCase2.java:104)
at com.abc.def.test.TestApk.setUp(TestApk.java:31)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:190)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1584)
Test results for InstrumentationTestRunner=.E
Time: 0.027
FAILURES!!!
Tests run: 1, Failures: 0, Errors: 1
Is it possible to have any workaround provided that I have source code in hand?