PostId
int64
13
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
3
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-33
210k
OwnerUndeletedAnswerCountAtPostTime
int64
0
5.77k
Title
stringlengths
10
250
BodyMarkdown
stringlengths
12
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
47
30.1k
OpenStatus_id
int64
0
4
828,591
05/06/2009 08:28:46
96,389
04/27/2009 05:38:21
11
3
How to make a desktop application modular?
What is the best way of making a Java desktop application modular? How are modules classified?
java
desktop
desktop-application
modularity
null
null
open
How to make a desktop application modular? === What is the best way of making a Java desktop application modular? How are modules classified?
0
3,702,844
09/13/2010 17:27:08
446,589
09/13/2010 17:27:08
1
0
Constructively manipulating any value/object within a JSON tree of unknown depth
I have a JSON tree that contains nodes and children - the format is: jsonObject = { id:nodeid_1, children: [ { id:nodeid_2, children:[] }, { id:nodeid_3, children:[ { id:nodeid_4, children:[] }, { id:nodeid_5, children:[] } } } I don't know the depth of this tree, a node is capable of having many children that also have many children and so on. My problem is that I need to add nodes into this tree by using a nodeID. For example, a function that can take a nodeID and the node object (including it's children), would be able to replace that node within the tree - which as a result would become a bigger tree. I have only come across recursive functions that allow me to traverse all the nodes within a JSON tree and a modification I have made of one of these functions returns me the node object - but doesn't help me as I need to modify the original tree: var findNode = { node:{}, find:function(nodeID,jsonObj) { if( typeof jsonObj == "object" ) { $.each(jsonObj, function(k,v) { if(v == nodeID) { findNode.node = $(jsonObj).eq(0).toArray()[0]; } else { findNode.find(nodeID,v); } }); } else { //console.log("jsobObj is not an object"); } } } which allows me to do the following test: findNode.find("nodeid_3",json); alert(findNode.node); So to sum up - how can I modify a value of a JSON tree that has an unknown depth? Thanks in advance
javascript
jquery
json
tree
tree-traversal
null
open
Constructively manipulating any value/object within a JSON tree of unknown depth === I have a JSON tree that contains nodes and children - the format is: jsonObject = { id:nodeid_1, children: [ { id:nodeid_2, children:[] }, { id:nodeid_3, children:[ { id:nodeid_4, children:[] }, { id:nodeid_5, children:[] } } } I don't know the depth of this tree, a node is capable of having many children that also have many children and so on. My problem is that I need to add nodes into this tree by using a nodeID. For example, a function that can take a nodeID and the node object (including it's children), would be able to replace that node within the tree - which as a result would become a bigger tree. I have only come across recursive functions that allow me to traverse all the nodes within a JSON tree and a modification I have made of one of these functions returns me the node object - but doesn't help me as I need to modify the original tree: var findNode = { node:{}, find:function(nodeID,jsonObj) { if( typeof jsonObj == "object" ) { $.each(jsonObj, function(k,v) { if(v == nodeID) { findNode.node = $(jsonObj).eq(0).toArray()[0]; } else { findNode.find(nodeID,v); } }); } else { //console.log("jsobObj is not an object"); } } } which allows me to do the following test: findNode.find("nodeid_3",json); alert(findNode.node); So to sum up - how can I modify a value of a JSON tree that has an unknown depth? Thanks in advance
0
5,453,130
03/27/2011 23:11:23
235,349
12/20/2009 03:26:50
1,278
38
Regular Expression to Extract String from URL
I am looking to extract a string from a URL. Here is an example to illustrate what I am looking for. Input URL: http://www.nba.com/bulls/stats/ Output : bulls In other words, I want to be able to extract the string between the second last and last "/" in the url. I know that I can split by "/" and extract the second last term, but am looking for a cleaner regex solution. Any ideas?
regex
r
null
null
null
null
open
Regular Expression to Extract String from URL === I am looking to extract a string from a URL. Here is an example to illustrate what I am looking for. Input URL: http://www.nba.com/bulls/stats/ Output : bulls In other words, I want to be able to extract the string between the second last and last "/" in the url. I know that I can split by "/" and extract the second last term, but am looking for a cleaner regex solution. Any ideas?
0
8,501,048
12/14/2011 07:53:11
530,513
12/04/2010 15:23:39
1,053
59
Unable to accept incoming Bluetooth connection in Android
Maybe similar to the unanswered thread [here][1], but we have an Android application (tested on multiple handsets and multiple Android 2.1+ versions) which needs to listen for and accept connections from a remote bluetooth device. The remote device is a digital pen, but the main point is that the pen is paired with the phone and then sends data via SPP, which uses OBEX, which uses RFComm so all that should be fine. Currently the application works by allowing the Android device to receive the OBEX payload and then get the app to look in the bluetooth folder to pick up the payload, but we want the application to be able to talk directly to the remote device. *Keep in mind the remote connects to the android phone, the phone does not connect to the pen.* Our test code is based on the sample BluetoothChat application available in the Android samples, but essentially `adapter.listenUsingRfcommWithServiceRecord` never gets called and the best that we see in the DDMS logs is: INFO/BtOppRfcommListener(2577): Accepted connectoin from 00:07:CF:55:94:FB INFO/BtOpp Service(2577): Start Obex Server DEBUG/Obex ServerSession(2577): java.io.IOException: Software caused connection abort This appears to show that the connection is accepted by Android but not made available to the application. The UUID used is the same UUID used in the JME version of the same application and was provided by the pen supplier. [1]: http://stackoverflow.com/questions/5814024/android-bluetooth-service-socket-never-accepts-incoming-connection
android
bluetooth
null
null
null
null
open
Unable to accept incoming Bluetooth connection in Android === Maybe similar to the unanswered thread [here][1], but we have an Android application (tested on multiple handsets and multiple Android 2.1+ versions) which needs to listen for and accept connections from a remote bluetooth device. The remote device is a digital pen, but the main point is that the pen is paired with the phone and then sends data via SPP, which uses OBEX, which uses RFComm so all that should be fine. Currently the application works by allowing the Android device to receive the OBEX payload and then get the app to look in the bluetooth folder to pick up the payload, but we want the application to be able to talk directly to the remote device. *Keep in mind the remote connects to the android phone, the phone does not connect to the pen.* Our test code is based on the sample BluetoothChat application available in the Android samples, but essentially `adapter.listenUsingRfcommWithServiceRecord` never gets called and the best that we see in the DDMS logs is: INFO/BtOppRfcommListener(2577): Accepted connectoin from 00:07:CF:55:94:FB INFO/BtOpp Service(2577): Start Obex Server DEBUG/Obex ServerSession(2577): java.io.IOException: Software caused connection abort This appears to show that the connection is accepted by Android but not made available to the application. The UUID used is the same UUID used in the JME version of the same application and was provided by the pen supplier. [1]: http://stackoverflow.com/questions/5814024/android-bluetooth-service-socket-never-accepts-incoming-connection
0
6,152,562
05/27/2011 12:58:47
593,852
01/28/2011 12:52:39
45
2
How to set up an eclipse update site and force one optional package ?
I developed several plug-ins for eclipse that are bundled in one update site. Until now. Now I have added an extension point to one of the plug-ins and implemented two plug-ins that can hook up to that extension point. I want to set up the update site such that a user is forced to install my package with one and only one of the extension plug-ins. Can I do that ? Thank you !
eclipse
p2
null
null
null
null
open
How to set up an eclipse update site and force one optional package ? === I developed several plug-ins for eclipse that are bundled in one update site. Until now. Now I have added an extension point to one of the plug-ins and implemented two plug-ins that can hook up to that extension point. I want to set up the update site such that a user is forced to install my package with one and only one of the extension plug-ins. Can I do that ? Thank you !
0
6,165,279
05/29/2011 00:49:09
612,367
02/11/2011 01:23:21
1,155
52
Changing the main environment in Node.
Some of you may or may not (probably not) know about my [framework](https://github.com/tylermwashburn/Ally). It's name is Ally, and I absolutely love using it. Lately I've been doing a little bit of stuff in Node.js. Today I decided I was going to use it as my HTTP server, so that I could do server-side JS (in a PHP kind of way). To do this, I started a project I'm calling [Trailer](https://github.com/tylermwashburn/Trailer) . While working on it, I found myself needing one of Ally's functions, Object:deploy. What it does is pretty much this: var a = { a: 'a' }; a.deploy({ b: 'b' }); a.a; // 'a' a.b; // 'b' So I loaded it in.. var Ally = require('./Ally.js'); ..but when I tried using it, it said it was undefined. After a bit of digging I discovered that Object:deploy is defined in the Ally.js file, but the changes it makes to the global constructors don't stay. How do I make the changes to global variables in the Ally.js file apply to the global variables in the file that required it? **Note:** Ally is linked to above if looking through the source could help, and Trailer is linked to in case anyone wants to use it when I get a usable version out.
javascript
node.js
null
null
null
null
open
Changing the main environment in Node. === Some of you may or may not (probably not) know about my [framework](https://github.com/tylermwashburn/Ally). It's name is Ally, and I absolutely love using it. Lately I've been doing a little bit of stuff in Node.js. Today I decided I was going to use it as my HTTP server, so that I could do server-side JS (in a PHP kind of way). To do this, I started a project I'm calling [Trailer](https://github.com/tylermwashburn/Trailer) . While working on it, I found myself needing one of Ally's functions, Object:deploy. What it does is pretty much this: var a = { a: 'a' }; a.deploy({ b: 'b' }); a.a; // 'a' a.b; // 'b' So I loaded it in.. var Ally = require('./Ally.js'); ..but when I tried using it, it said it was undefined. After a bit of digging I discovered that Object:deploy is defined in the Ally.js file, but the changes it makes to the global constructors don't stay. How do I make the changes to global variables in the Ally.js file apply to the global variables in the file that required it? **Note:** Ally is linked to above if looking through the source could help, and Trailer is linked to in case anyone wants to use it when I get a usable version out.
0
5,847,650
05/01/2011 09:45:14
713,029
04/18/2011 08:16:33
16
0
Automating sql script to generate data in excel
how to automate a sql script so that i can get the data in excel sheet??? any suggetion pls...
sql
null
null
null
null
08/18/2011 14:19:11
not a real question
Automating sql script to generate data in excel === how to automate a sql script so that i can get the data in excel sheet??? any suggetion pls...
1
4,725,614
01/18/2011 15:03:55
579,898
01/18/2011 12:06:39
3
0
Upload file without form
**Upload file without form** Yes i used the search button but i just couldn't find the solution i need. Is there any way to upload a file so that user wouldn't need to press any form buttons? My first idea was to use CURL but then i remembered that CURL is server sided. I know it's possible thru Java and/or Flash but is there any way to do that using PHP & OR Javascript?
php
javascript
null
null
null
null
open
Upload file without form === **Upload file without form** Yes i used the search button but i just couldn't find the solution i need. Is there any way to upload a file so that user wouldn't need to press any form buttons? My first idea was to use CURL but then i remembered that CURL is server sided. I know it's possible thru Java and/or Flash but is there any way to do that using PHP & OR Javascript?
0
9,050,712
01/29/2012 03:34:28
1,149,830
01/14/2012 22:28:18
1
0
How to set color in HTML5 "please wait" spinner?
I'm wanting to use the HTML5 capability to have a "please wait" spinner. An example of this can be found at the article [Loading spinner animation using CSS and WebKit][1], illustrated through this sub-page [(no title, but a working example of the prior link)][2]. I've no trouble in copying the code (from a different link than the one I gave here) and making it run in my own web page. My difficulty is in making it the correct color. For example, in the example I used the dial segments are all colored red. I see no color setter, no "color", "background" or "background-color" in the CSS for the spinner or set explicitly in the DIV. Or at least no setting of these that actually changes the color of the segment. Can someone give me a clue? Thanks, Jerome. [1]: http://37signals.com/svn/posts/2577-loading-spinner-animation-using-css-and-webkit [2]: http://s3.amazonaws.com/37assets/svn/462-png_spinner.html "Loading spinner animation using CSS and WebKit"
html5
css3
null
null
null
null
open
How to set color in HTML5 "please wait" spinner? === I'm wanting to use the HTML5 capability to have a "please wait" spinner. An example of this can be found at the article [Loading spinner animation using CSS and WebKit][1], illustrated through this sub-page [(no title, but a working example of the prior link)][2]. I've no trouble in copying the code (from a different link than the one I gave here) and making it run in my own web page. My difficulty is in making it the correct color. For example, in the example I used the dial segments are all colored red. I see no color setter, no "color", "background" or "background-color" in the CSS for the spinner or set explicitly in the DIV. Or at least no setting of these that actually changes the color of the segment. Can someone give me a clue? Thanks, Jerome. [1]: http://37signals.com/svn/posts/2577-loading-spinner-animation-using-css-and-webkit [2]: http://s3.amazonaws.com/37assets/svn/462-png_spinner.html "Loading spinner animation using CSS and WebKit"
0
10,196,313
04/17/2012 17:48:48
984,621
10/07/2011 19:37:57
681
12
jQuery - how to send form, when I check whatever checkbox?
I have a form, in which is about 10 checkboxes. When I want to send form after check some checkox, I do that this way: $('input#checkbox1').live("click", function() { $('#my_form').submit(); }); How to do, that if I check whatever checkbox, so the form will be sent?
jquery
forms
checkbox
check
null
null
open
jQuery - how to send form, when I check whatever checkbox? === I have a form, in which is about 10 checkboxes. When I want to send form after check some checkox, I do that this way: $('input#checkbox1').live("click", function() { $('#my_form').submit(); }); How to do, that if I check whatever checkbox, so the form will be sent?
0
4,563,111
12/30/2010 13:51:45
472,537
10/11/2010 17:29:30
207
4
Java time selecting
time1: 11:07 time2: 11:27 time3: 13:07 now1 : 11:26 -> time1 (selected time) now2 : 11:27 -> time2 (selected time) now3 : 13:11 -> time3 (selected time) how i can do this in java? (with calendar, etc...)
java
android
time
null
null
12/30/2010 19:32:11
not a real question
Java time selecting === time1: 11:07 time2: 11:27 time3: 13:07 now1 : 11:26 -> time1 (selected time) now2 : 11:27 -> time2 (selected time) now3 : 13:11 -> time3 (selected time) how i can do this in java? (with calendar, etc...)
1
828,339
05/06/2009 06:53:04
85,140
03/31/2009 14:36:58
21
7
Choosing the right developers for the job
What are your criterias when interviewing a developer? What tests should he/she pass to be technically over-qualified to work in a small company that needs the best developers I can find? How can one determine that a developer can cooparate with others to achive teamwork? What qualities are you looking in a person (as in not proffesionally)? I will have a project that I'll need to choose a small number of developers to help me develop something big, therefor I need the best developers I can get. Moeny is not the problem as long as I don't have to hire more then 4-6 developers. Basically I am asking how to interview a candidate.
career-development
interview-questions
null
null
null
02/01/2012 14:00:57
not constructive
Choosing the right developers for the job === What are your criterias when interviewing a developer? What tests should he/she pass to be technically over-qualified to work in a small company that needs the best developers I can find? How can one determine that a developer can cooparate with others to achive teamwork? What qualities are you looking in a person (as in not proffesionally)? I will have a project that I'll need to choose a small number of developers to help me develop something big, therefor I need the best developers I can get. Moeny is not the problem as long as I don't have to hire more then 4-6 developers. Basically I am asking how to interview a candidate.
4
7,462,347
09/18/2011 15:07:58
951,321
09/18/2011 14:58:06
1
0
A link on my website is hijacked?
I have a web site at sportdata.com.au. Most of the second level pages have a "home" link on the menu which is set like <a href="http://sportdata.com/au">sportdata</a> If I click on the link, I am incorrectly sent to software.com.au but the link should go to sportdata.com.au and the page source is correct. The problem does not occur on my index page but on each of the lower pages.
html
null
null
null
null
09/18/2011 16:17:51
off topic
A link on my website is hijacked? === I have a web site at sportdata.com.au. Most of the second level pages have a "home" link on the menu which is set like <a href="http://sportdata.com/au">sportdata</a> If I click on the link, I am incorrectly sent to software.com.au but the link should go to sportdata.com.au and the page source is correct. The problem does not occur on my index page but on each of the lower pages.
2
6,794,138
07/22/2011 17:59:11
382,050
07/02/2010 12:41:14
744
2
The pattern I see so far: F# runs consistently slower than other languages...
I like F# ; I really, really do. Having been bitten by the "functional programming"-bug, I force myself to use it when I have the opportunity to. In fact, I recently used it (during a one week vacation) to [code a nice AI algorithm][1]. However, my attempts so far (see a SO question related to my first attempt [here][2]) seem to indicate that, though undoubtedly beautiful... F# has the slowest execution speed of all the languages I've used. Am I doing something wrong in my code? I verbosely explain what I did in my [blog post][1], and in my experiments, I see OCaml and the rest of the group running anywhere from 5x to 35x faster than F#. Am I the only one who has such experiences with F#? I find it disheartening that the language I like the most, is also the slowest one - sometimes by far... [1]: http://users.softlab.ntua.gr/~ttsiod/score4.html [2]: http://stackoverflow.com/questions/5850243/fsharp-runs-my-algorithm-slower-than-python
f#
benchmarking
speed-up
null
null
07/23/2011 01:26:32
not a real question
The pattern I see so far: F# runs consistently slower than other languages... === I like F# ; I really, really do. Having been bitten by the "functional programming"-bug, I force myself to use it when I have the opportunity to. In fact, I recently used it (during a one week vacation) to [code a nice AI algorithm][1]. However, my attempts so far (see a SO question related to my first attempt [here][2]) seem to indicate that, though undoubtedly beautiful... F# has the slowest execution speed of all the languages I've used. Am I doing something wrong in my code? I verbosely explain what I did in my [blog post][1], and in my experiments, I see OCaml and the rest of the group running anywhere from 5x to 35x faster than F#. Am I the only one who has such experiences with F#? I find it disheartening that the language I like the most, is also the slowest one - sometimes by far... [1]: http://users.softlab.ntua.gr/~ttsiod/score4.html [2]: http://stackoverflow.com/questions/5850243/fsharp-runs-my-algorithm-slower-than-python
1
2,856,126
05/18/2010 09:51:01
343,873
05/18/2010 09:51:01
1
0
java.net.URISyntaxException
I have get this exception. but this exception is not reproduced again. I want to get the cause of this Exception Caught while Checking tag in XMLjava.net.URISyntaxException: Illegal character in opaque part at index 2: C:\Documents and Settings\All Users\.SF\config\sd.xml stacktrace net.sf.saxon.trans.XPathException. Why this exception occured. How to deal with so it will not reproduce.
xml
exception
in
java
null
null
open
java.net.URISyntaxException === I have get this exception. but this exception is not reproduced again. I want to get the cause of this Exception Caught while Checking tag in XMLjava.net.URISyntaxException: Illegal character in opaque part at index 2: C:\Documents and Settings\All Users\.SF\config\sd.xml stacktrace net.sf.saxon.trans.XPathException. Why this exception occured. How to deal with so it will not reproduce.
0
8,072,654
11/09/2011 22:27:36
1,009,541
10/23/2011 13:14:58
1
0
Explain this Algorithm please?
I am dont have much experience in programming, i know a bit of Java, if someone could explain this to me please. Algorithm 1 Sum of numbers in an Array Function SUMMATION (Sequence) sum <---0 for i <----1 to Length (Sequence) do Sum <--- Sum + sequence[i] end for return sum
java
null
null
null
null
11/10/2011 13:32:49
not a real question
Explain this Algorithm please? === I am dont have much experience in programming, i know a bit of Java, if someone could explain this to me please. Algorithm 1 Sum of numbers in an Array Function SUMMATION (Sequence) sum <---0 for i <----1 to Length (Sequence) do Sum <--- Sum + sequence[i] end for return sum
1
8,964,699
01/22/2012 21:06:44
1,163,922
01/22/2012 21:01:46
1
0
Google eBook web reader jquery analogue
Is there free and opensource Google eBook web reader-like analogue?
jquery
ebook
null
null
null
01/23/2012 21:35:18
off topic
Google eBook web reader jquery analogue === Is there free and opensource Google eBook web reader-like analogue?
2
11,403,339
07/09/2012 21:20:10
1,502,554
07/04/2012 22:03:20
1
0
How to configure .htaccess in this way?
I have installed wildcard successfully. And I managed to make dynamic subdomain to work with a simple behaviour. My current .htaccess: Options +FollowSymLinks RewriteEngine On RewriteBase / # *.example.com RewriteCond &#37;{HTTP_HOST} !^www\.example\.com$ [NC] RewriteCond %{HTTP_HOST} ^([a-zA-Z0-9]+)\.example\.com$ [NC] RewriteCond %{REQUEST_URI} !^/?subdomain\.php$ RewriteRule .? subdomain.php?subdomain=%1&path=%{REQUEST_URI} [L,QSA] Currently in something.example.com is shown the output of subdomain.php, great. But I want to have it working as I can enter at pre102.example.com/folder/anotherfolder/script.php?param=1 and show the output of example.com/folder/anotherfolder/script.php?param=1&pre=102 (note new param pre). Thanks
apache
.htaccess
dynamic
subdomain
wildcard-subdomain
null
open
How to configure .htaccess in this way? === I have installed wildcard successfully. And I managed to make dynamic subdomain to work with a simple behaviour. My current .htaccess: Options +FollowSymLinks RewriteEngine On RewriteBase / # *.example.com RewriteCond &#37;{HTTP_HOST} !^www\.example\.com$ [NC] RewriteCond %{HTTP_HOST} ^([a-zA-Z0-9]+)\.example\.com$ [NC] RewriteCond %{REQUEST_URI} !^/?subdomain\.php$ RewriteRule .? subdomain.php?subdomain=%1&path=%{REQUEST_URI} [L,QSA] Currently in something.example.com is shown the output of subdomain.php, great. But I want to have it working as I can enter at pre102.example.com/folder/anotherfolder/script.php?param=1 and show the output of example.com/folder/anotherfolder/script.php?param=1&pre=102 (note new param pre). Thanks
0
11,677,743
07/26/2012 20:44:43
865,477
07/27/2011 13:25:18
622
15
Download Google Play APK by php
I need to download google play android files (APK) by php,but as you know it doesn't promise to do it by pc. How it works and how can I download apks by php?
php
download
apk
google-play
null
07/28/2012 11:00:52
not a real question
Download Google Play APK by php === I need to download google play android files (APK) by php,but as you know it doesn't promise to do it by pc. How it works and how can I download apks by php?
1
6,761,047
07/20/2011 11:17:51
596,364
01/31/2011 04:57:46
468
20
ios - how to make special effects in camera app
i am trying to create an camera app as like [here][1] , when the user tries to capture an image i want the image to look like a squeezed, bulge, fish eye, dent images. How to get such images, is there any library or any other. [1]: http://creatinglifelonglearners.com/?p=427
ios
camera
effects
null
null
09/20/2011 11:28:58
not constructive
ios - how to make special effects in camera app === i am trying to create an camera app as like [here][1] , when the user tries to capture an image i want the image to look like a squeezed, bulge, fish eye, dent images. How to get such images, is there any library or any other. [1]: http://creatinglifelonglearners.com/?p=427
4
10,365,053
04/28/2012 15:44:46
56,861
01/19/2009 22:04:11
1,378
33
Generic Entity Framework Updater
I'm trying to write something where I can pass in a class (which will include new data, including the primary key values) and using entity framework, retrieve the entity using the primary key. So, I have a class, including the primary key values, but I don't necessarily know the primary key (but Entity Framework does). (I also later need to then update the entity generically, but that's a separate question) Is there a simple way to do this in LINQ?
linq
entity-framework
null
null
null
null
open
Generic Entity Framework Updater === I'm trying to write something where I can pass in a class (which will include new data, including the primary key values) and using entity framework, retrieve the entity using the primary key. So, I have a class, including the primary key values, but I don't necessarily know the primary key (but Entity Framework does). (I also later need to then update the entity generically, but that's a separate question) Is there a simple way to do this in LINQ?
0
533,070
02/10/2009 16:32:14
19,808
09/21/2008 00:00:46
15
1
Recompiling a simple Win32 C++ app for x64
I have a small C++ program for Win32, which has the following WinMain: int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) when trying to compile for x64, I get the following error: error LNK2019: unresolved external symbol WinMain referenced in function __tmainCRTStartup What steps must be taken to recompile a simple win32 app for x64? Thank you
winapi
x64
null
null
null
07/27/2011 18:24:03
too localized
Recompiling a simple Win32 C++ app for x64 === I have a small C++ program for Win32, which has the following WinMain: int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) when trying to compile for x64, I get the following error: error LNK2019: unresolved external symbol WinMain referenced in function __tmainCRTStartup What steps must be taken to recompile a simple win32 app for x64? Thank you
3
307,553
11/21/2008 01:38:42
13,055
09/16/2008 16:50:12
566
27
Possible to download entire whois database / list of registered domains?
I wanted to do some analysis on registered domain names. Looks like I can hit whois.internic.net to get information about each domain, but it also looks like there are rate limits that prevent me from doing large numbers of queries. Is there a way to periodically (say daily) grab the entire whois database? I really only care about whether a domain is registered or not, so I don't need the full whois information.
whois
domain
null
null
null
03/04/2012 11:11:55
off topic
Possible to download entire whois database / list of registered domains? === I wanted to do some analysis on registered domain names. Looks like I can hit whois.internic.net to get information about each domain, but it also looks like there are rate limits that prevent me from doing large numbers of queries. Is there a way to periodically (say daily) grab the entire whois database? I really only care about whether a domain is registered or not, so I don't need the full whois information.
2
9,560,113
03/05/2012 00:07:11
1,243,591
03/01/2012 19:49:16
8
0
Adding nodes to XML with a form
I've created a list using XML and have embedded an XSL stylesheet in it. Now I want to know, because this is a list of movies that constantly grows, is there a way to create a form that will add child and grandchild nodes to the list. I'm thinking there might be some javascript involved, but I have no idea what I'm doing when it comes to scripting.
javascript
xml
forms
list
xslt
null
open
Adding nodes to XML with a form === I've created a list using XML and have embedded an XSL stylesheet in it. Now I want to know, because this is a list of movies that constantly grows, is there a way to create a form that will add child and grandchild nodes to the list. I'm thinking there might be some javascript involved, but I have no idea what I'm doing when it comes to scripting.
0
7,266,581
09/01/2011 06:01:12
911,882
08/25/2011 10:59:24
1
1
how can we get session of particular promotion rule using model
**Is there any way to get session of salesrule using model?** I have to get id of the rule while the rule is saved.
magento
null
null
null
null
null
open
how can we get session of particular promotion rule using model === **Is there any way to get session of salesrule using model?** I have to get id of the rule while the rule is saved.
0
8,077,709
11/10/2011 09:57:42
474,499
10/13/2010 13:14:16
50
5
Php APNS Best Practise
I wonder if there are some "ready to use" solutions for the server-side of the apple push notification service out there. I was browsing the web for two days now to get an overview what exists, what can be used for new projects. I found up till now: EasyApns ( http://www.easyapns.com ) Looks very easy to install an run, no need for changes at the php distribution and no special requirements to the server. PhpAPNs ( http://code.google.com/p/apns-php/ ) A bit more complicated, the php needs posix support and also shared memory buildt in. Are there others out there?
php
ios
apns
null
null
null
open
Php APNS Best Practise === I wonder if there are some "ready to use" solutions for the server-side of the apple push notification service out there. I was browsing the web for two days now to get an overview what exists, what can be used for new projects. I found up till now: EasyApns ( http://www.easyapns.com ) Looks very easy to install an run, no need for changes at the php distribution and no special requirements to the server. PhpAPNs ( http://code.google.com/p/apns-php/ ) A bit more complicated, the php needs posix support and also shared memory buildt in. Are there others out there?
0
4,502,569
12/21/2010 18:22:29
456,851
09/24/2010 02:40:44
946
52
How to animate layer shadowOpacity?
I have a view on which I've set the layerOpacity to 1. theView.layer.shadowOpacity = 1.0; This looks fine when the view is farther down the screen. When I move this view up to be flush with another view that has a shadow, they don't look good. Is there a way I can animate the `shadowOpacity` on my layer to be 0? I tried using an animation block but it seems as if this property is not animatable. ![alt text][1] [1]: http://i.stack.imgur.com/kNyB6.png
iphone
objective-c
cocoa-touch
uiview
quartz-graphics
null
open
How to animate layer shadowOpacity? === I have a view on which I've set the layerOpacity to 1. theView.layer.shadowOpacity = 1.0; This looks fine when the view is farther down the screen. When I move this view up to be flush with another view that has a shadow, they don't look good. Is there a way I can animate the `shadowOpacity` on my layer to be 0? I tried using an animation block but it seems as if this property is not animatable. ![alt text][1] [1]: http://i.stack.imgur.com/kNyB6.png
0
5,792,031
04/26/2011 14:42:09
193,376
10/20/2009 20:28:46
578
30
PHP Classes, Do people use them to build a website?
After a little debate with a friend on the use of PHP classes to build a website. How are they used to create a website? and which method is best? For example say your website was bobs flowers, would you have a bobs flowers class? Or would you use classes within a "normal" PHP setup (eg just a DB class). How does it work? I have always just used PHP without classes however am beginning to realise how useful they can be within programming.
php
class
class-design
null
null
04/26/2011 14:45:44
not constructive
PHP Classes, Do people use them to build a website? === After a little debate with a friend on the use of PHP classes to build a website. How are they used to create a website? and which method is best? For example say your website was bobs flowers, would you have a bobs flowers class? Or would you use classes within a "normal" PHP setup (eg just a DB class). How does it work? I have always just used PHP without classes however am beginning to realise how useful they can be within programming.
4
8,957,956
01/22/2012 00:23:17
59,947
01/28/2009 21:22:54
4,189
269
what happens to an active HTTP call if the Activity that it is running in is closed?
I'm using Apache Commons to make my HTTP calls, and in my activity I have a thread that makes the call. If a call is made by a device and is sitting there waiting to connect (imagine that the network is congested and the call is taking some time) and in the mean time, the user exits the app and the Activity is backgrounded. What happens to my call? For that matter (come to think of it) what happens to any thread that was started within the activity? If I have a thread that's sitting there and doing its thing (whatever it is) and the activity is closed, do I have to handle killing the thread myself onPause()?
android
null
null
null
null
null
open
what happens to an active HTTP call if the Activity that it is running in is closed? === I'm using Apache Commons to make my HTTP calls, and in my activity I have a thread that makes the call. If a call is made by a device and is sitting there waiting to connect (imagine that the network is congested and the call is taking some time) and in the mean time, the user exits the app and the Activity is backgrounded. What happens to my call? For that matter (come to think of it) what happens to any thread that was started within the activity? If I have a thread that's sitting there and doing its thing (whatever it is) and the activity is closed, do I have to handle killing the thread myself onPause()?
0
7,134,731
08/20/2011 21:15:06
676,028
03/25/2011 02:15:33
139
2
Change width coverage of a background-image URL in CSS?
If I have a background image that is lets say 20px in width, and I want it to rather be 40px in width(but adjusting in photoshop would not work as I want it). How can I change the width > body { background-color:#5b7c8a; background-image:url('images/diagnol.png'); background-repeat:repeat-y; margin:0; } It's diagonal line's as you can see from the image, and the spacing is just as I want them editing the image may mess up the spacing. So I'm trying to get the background coverage area of the body to be a little bit more? Right now the image is 6px width, I want it to appear as 20px width...as if the image were in repeat-x-y in a 20px div? (so not stretching the image, just gaining more ground with the image)? I hope this makes sense > <
css
image
url
background
width
null
open
Change width coverage of a background-image URL in CSS? === If I have a background image that is lets say 20px in width, and I want it to rather be 40px in width(but adjusting in photoshop would not work as I want it). How can I change the width > body { background-color:#5b7c8a; background-image:url('images/diagnol.png'); background-repeat:repeat-y; margin:0; } It's diagonal line's as you can see from the image, and the spacing is just as I want them editing the image may mess up the spacing. So I'm trying to get the background coverage area of the body to be a little bit more? Right now the image is 6px width, I want it to appear as 20px width...as if the image were in repeat-x-y in a 20px div? (so not stretching the image, just gaining more ground with the image)? I hope this makes sense > <
0
5,876,799
05/03/2011 23:14:37
657,185
03/13/2011 03:36:34
1
0
Need a lightweight iCal data validator that will run on CentOS
I'm trying to do functional tests on some PHP code which generates iCal output. Is there a smallish library (PHP) or standalone program (any non-heavyweight implementation that is easily runnable on CentOS 5.x) that can do a basic validation of iCal data, a la http://icalvalid.cloudapp.net/ ?? The code that site is based on is .NET dependent, which won't work on our platform.
php
testing
validation
icalendar
ical
null
open
Need a lightweight iCal data validator that will run on CentOS === I'm trying to do functional tests on some PHP code which generates iCal output. Is there a smallish library (PHP) or standalone program (any non-heavyweight implementation that is easily runnable on CentOS 5.x) that can do a basic validation of iCal data, a la http://icalvalid.cloudapp.net/ ?? The code that site is based on is .NET dependent, which won't work on our platform.
0
11,434,244
07/11/2012 13:54:40
1,220,350
02/20/2012 06:16:50
457
5
what are the components to ensure secure execution of code
In interview, interviewer asked me one question that, What are the components to ensure secure execution of code in .net. I tried in google but failed. Can any one give me the answer or linke?
c#
.net
null
null
null
null
open
what are the components to ensure secure execution of code === In interview, interviewer asked me one question that, What are the components to ensure secure execution of code in .net. I tried in google but failed. Can any one give me the answer or linke?
0
8,497,213
12/13/2011 22:35:50
1,082,731
12/06/2011 03:02:38
8
0
Where does Redis persist data?
Just started learning how to use Redis, and I'm interested in learning where I can find Redis's persistent store on my computer.
redis
null
null
null
null
12/13/2011 23:21:49
not a real question
Where does Redis persist data? === Just started learning how to use Redis, and I'm interested in learning where I can find Redis's persistent store on my computer.
1
1,327,106
08/25/2009 09:25:20
162,569
08/25/2009 09:15:43
1
0
TransactionScope, Selects using Subsonic
I have an Invoice table (and a SubSonic 'Invoice' ActiveRecord) with an **InvoiceNumebr** column that needs to have unique numbers. I am trying to GetTheNextAvailableNumber() inside of a TransactionScope using block. This works. What I'm not sure of is, what happens if 5, or 50 different users try to create an Invoice at approx. the same time, the method would return the same number for all 5 or 50 users if they don't save the invoice object until later. The **GetTheNextAvailableNumber()** method which called inside the TransactionScope block uses a Subsonic Select query with a MAX() to get the maximum number, then adds 1. The column itself does have a UNIQUE index! Would the Transaction's **isolation level** default (Serializable) make sure that each of those gets a unique number? Or is there a more clever mechanism to achieve that? The column cannot have an IDENTITY, since the PK column **InvoiceID** already has it.
subsonic
null
null
null
null
null
open
TransactionScope, Selects using Subsonic === I have an Invoice table (and a SubSonic 'Invoice' ActiveRecord) with an **InvoiceNumebr** column that needs to have unique numbers. I am trying to GetTheNextAvailableNumber() inside of a TransactionScope using block. This works. What I'm not sure of is, what happens if 5, or 50 different users try to create an Invoice at approx. the same time, the method would return the same number for all 5 or 50 users if they don't save the invoice object until later. The **GetTheNextAvailableNumber()** method which called inside the TransactionScope block uses a Subsonic Select query with a MAX() to get the maximum number, then adds 1. The column itself does have a UNIQUE index! Would the Transaction's **isolation level** default (Serializable) make sure that each of those gets a unique number? Or is there a more clever mechanism to achieve that? The column cannot have an IDENTITY, since the PK column **InvoiceID** already has it.
0
8,607,230
12/22/2011 16:54:36
241,718
12/31/2009 20:32:05
90
10
UITabBarItems aren't centering in custom sized UITabBar
My UITabBarItems aren't showing up vertically centered in my UITabBar. I am using a custom sized background image for my UITabBar. UITabBarController *tabController = [[UITabBarController alloc] init]; UITabBar *tabBar = [controller tabBar]; UIImage *backgroundImage = [UIImage imageNamed:@"Images/bottomBar.png"]; [tabBar setBackgroundImage:backgroundImage]; SplashScreenController *introController = [[SplashScreenController alloc] init]; UIImage *introImage = [UIImage imageNamed:@"Images/navIntro.png"]; UITabBarItem *introItem = [[UITabBarItem alloc] initWithTitle:@"Intro" image:introImage tag:0]; [introController setTabBarItem:introItem]; NSMutableArray *controllers = [[NSMutableArray alloc] init]; [controllers addObject:introController]; NSArray *controllers = [self createControllers]; [tabController setViewControllers:controllers]; ![nav bar][1] [1]: http://i.stack.imgur.com/nncIA.png
iphone
objective-c
ios
null
null
null
open
UITabBarItems aren't centering in custom sized UITabBar === My UITabBarItems aren't showing up vertically centered in my UITabBar. I am using a custom sized background image for my UITabBar. UITabBarController *tabController = [[UITabBarController alloc] init]; UITabBar *tabBar = [controller tabBar]; UIImage *backgroundImage = [UIImage imageNamed:@"Images/bottomBar.png"]; [tabBar setBackgroundImage:backgroundImage]; SplashScreenController *introController = [[SplashScreenController alloc] init]; UIImage *introImage = [UIImage imageNamed:@"Images/navIntro.png"]; UITabBarItem *introItem = [[UITabBarItem alloc] initWithTitle:@"Intro" image:introImage tag:0]; [introController setTabBarItem:introItem]; NSMutableArray *controllers = [[NSMutableArray alloc] init]; [controllers addObject:introController]; NSArray *controllers = [self createControllers]; [tabController setViewControllers:controllers]; ![nav bar][1] [1]: http://i.stack.imgur.com/nncIA.png
0
11,647,693
07/25/2012 10:27:14
1,542,915
07/21/2012 16:20:08
1
0
wp7 How to send E-mail on hotmail account?
wp7 How to send E-mail on hotmail account? possible? C# WP7 emulator Can be tested this project? http://msdn.microsoft.com/en-us/library/ff428647(v=vs.92)
windows-phone-7
email
hotmail
null
null
07/26/2012 12:31:12
not a real question
wp7 How to send E-mail on hotmail account? === wp7 How to send E-mail on hotmail account? possible? C# WP7 emulator Can be tested this project? http://msdn.microsoft.com/en-us/library/ff428647(v=vs.92)
1
5,608,837
04/10/2011 00:13:30
700,302
04/09/2011 20:30:00
13
0
Query Help With TSQL (Join Functions)
I have 2 queries I got from the help from this site and they are: SELECT gr.g_name, (DATEDIFF(d, r.res_checkout_date, r.res_checkin_date) * pp.rate ) + ISNULL(i.inv_amount, 0) FROM guest_reservation gr LEFT OUTER JOIN invoice i ON gr.confirm_no = i.confirm_no JOIN reservation r ON gr.confirm_no = r.confirm_no JOIN price_plan pp ON r.price_plan = pp.price_plan; SELECT g.g_name, DATEDIFF(d, r.res_checkin_date, r.res_checkout_date)*p.rate+coalesce(i.inv_amount, 0) as Amount FROM reservation as r INNER JOIN priceplan as p ON r.price_plan = p.price_plan INNER JOIN guest_reservation as g ON r.confirm_no = g.confirm_no LEFT OUTER JOIN invoice as i ON r.confirm_no = i.confirm_no; The above queries use the following tables: The guest reservation table has the following columns with data: (confirm_no, agent_id, g_name, g_phone) The reservation table has the following columns with data: (confirm_no, credit_card_no, res_checkin_date, res_checkout_date, default_villa_type, price_plan) Now I need to one or any of the queries above items that a guest has ordered from the dining_order table (where the r_confirm_no from the dining_order table equals the confirm_no from the reservation table), the items price must be taken from the dining_menu table (where dining_order.item equals dining_menu.item) and added into the above query. The associated tables with the new information I need to add is: The invoice table has the following columns with data: (inv_no, inv_date, inv_amount, confirm_no). The price plan table has the following columns with data: (price_plan, rate, default_villa_type, bed_type)
sql
tsql
query
server
microsoft
null
open
Query Help With TSQL (Join Functions) === I have 2 queries I got from the help from this site and they are: SELECT gr.g_name, (DATEDIFF(d, r.res_checkout_date, r.res_checkin_date) * pp.rate ) + ISNULL(i.inv_amount, 0) FROM guest_reservation gr LEFT OUTER JOIN invoice i ON gr.confirm_no = i.confirm_no JOIN reservation r ON gr.confirm_no = r.confirm_no JOIN price_plan pp ON r.price_plan = pp.price_plan; SELECT g.g_name, DATEDIFF(d, r.res_checkin_date, r.res_checkout_date)*p.rate+coalesce(i.inv_amount, 0) as Amount FROM reservation as r INNER JOIN priceplan as p ON r.price_plan = p.price_plan INNER JOIN guest_reservation as g ON r.confirm_no = g.confirm_no LEFT OUTER JOIN invoice as i ON r.confirm_no = i.confirm_no; The above queries use the following tables: The guest reservation table has the following columns with data: (confirm_no, agent_id, g_name, g_phone) The reservation table has the following columns with data: (confirm_no, credit_card_no, res_checkin_date, res_checkout_date, default_villa_type, price_plan) Now I need to one or any of the queries above items that a guest has ordered from the dining_order table (where the r_confirm_no from the dining_order table equals the confirm_no from the reservation table), the items price must be taken from the dining_menu table (where dining_order.item equals dining_menu.item) and added into the above query. The associated tables with the new information I need to add is: The invoice table has the following columns with data: (inv_no, inv_date, inv_amount, confirm_no). The price plan table has the following columns with data: (price_plan, rate, default_villa_type, bed_type)
0
8,284,379
11/27/2011 08:14:34
980,094
10/05/2011 09:40:17
59
0
Tutorial for introducing someone to OOP
I have someone I need to train in Java. That person is well versed with classic c, and matlab programming, but does not know OOP. I would send them to the Sun online tutorial, but it seems to explain OOP very briefly. I am looking for a good online / PDF tutorial on the subject. Preferably, but not a must, in Java.
java
oop
null
null
null
11/27/2011 12:35:02
not constructive
Tutorial for introducing someone to OOP === I have someone I need to train in Java. That person is well versed with classic c, and matlab programming, but does not know OOP. I would send them to the Sun online tutorial, but it seems to explain OOP very briefly. I am looking for a good online / PDF tutorial on the subject. Preferably, but not a must, in Java.
4
6,934,427
08/03/2011 23:14:07
841,683
07/12/2011 22:24:45
18
0
Singleton Pattern / Check for Null - While using Asp.Net with Session
In the below code i want the "GetClassTeacher" method to be executed only once per session in Asp.net application, I have used session to check whether the object is null before calling the database. My question is, Is this the best way to implement this method of can i use singleton pattern to accomplish this, If so how to implement it per session. public class School { public List<Student> GetAllStudents() {} public List<Teacher> GetAllTeachers() {} //Singleton pattern or Check for Null public Teacher GetClassTeacher() { Teacher teacher = new Teacher(); teacher = Session["Teacher"] as Teacher if (teacher == null) { //Get Teacher Info from Database } } }
c#
asp.net
null
null
null
null
open
Singleton Pattern / Check for Null - While using Asp.Net with Session === In the below code i want the "GetClassTeacher" method to be executed only once per session in Asp.net application, I have used session to check whether the object is null before calling the database. My question is, Is this the best way to implement this method of can i use singleton pattern to accomplish this, If so how to implement it per session. public class School { public List<Student> GetAllStudents() {} public List<Teacher> GetAllTeachers() {} //Singleton pattern or Check for Null public Teacher GetClassTeacher() { Teacher teacher = new Teacher(); teacher = Session["Teacher"] as Teacher if (teacher == null) { //Get Teacher Info from Database } } }
0
6,297,475
06/09/2011 18:26:29
254,946
01/20/2010 14:15:00
44
0
table with jquery
so i have a table that has 3 columns, the first column will display a ID number the second I would like to when start typing display a drop-down (like Google's quick search but to display the names of the patrons and then once a name is selected the ID will show the correct ID # of that patron and then the selection list will be visible but if no name is in the text element.... the select element is disabled. I hope you understand what i am looking for... I would like it to be jquery any help or examples I can overview would be greatly appreciated. <table> <tr> <th>ID</th> <th>Name</th> <th>Role</th> </tr> <tr> <td>1</td> <td><input type="text" />Type Name</td> <td> <select disabled name="role"> <option disabled selected>Select One</option> <option value="coach">COACH</option> <option value="mgr">MGR</option> </select> </td> </tr> <table>
jquery
table
elements
null
null
06/09/2011 19:44:29
not a real question
table with jquery === so i have a table that has 3 columns, the first column will display a ID number the second I would like to when start typing display a drop-down (like Google's quick search but to display the names of the patrons and then once a name is selected the ID will show the correct ID # of that patron and then the selection list will be visible but if no name is in the text element.... the select element is disabled. I hope you understand what i am looking for... I would like it to be jquery any help or examples I can overview would be greatly appreciated. <table> <tr> <th>ID</th> <th>Name</th> <th>Role</th> </tr> <tr> <td>1</td> <td><input type="text" />Type Name</td> <td> <select disabled name="role"> <option disabled selected>Select One</option> <option value="coach">COACH</option> <option value="mgr">MGR</option> </select> </td> </tr> <table>
1
6,521,140
06/29/2011 13:08:28
463,833
10/01/2010 12:03:10
118
12
How to create a footer that doesn't conflict with other content?
**[Sample page][1]** On the sample page I have set `div#content { padding-bottom:20px; }` which works well if 20px is enough to leave the footer beneath the content div. However, if the footer changes size, I'll need to change the amount of padding-bottom aswell. I want a more flexible solution. Suggestions? [1]: http://jsfiddle.net/cFSX4/15/
html
css
null
null
null
null
open
How to create a footer that doesn't conflict with other content? === **[Sample page][1]** On the sample page I have set `div#content { padding-bottom:20px; }` which works well if 20px is enough to leave the footer beneath the content div. However, if the footer changes size, I'll need to change the amount of padding-bottom aswell. I want a more flexible solution. Suggestions? [1]: http://jsfiddle.net/cFSX4/15/
0
10,511,611
05/09/2012 07:29:09
1,383,922
05/09/2012 07:17:22
1
0
If I merge a Facebook Page with an App Page, will the merged Page have the "Go To App" button?
Currently we have a Facebook Page for our app/website, which means it does not have the "Go To App" button. Then, an App Page was created so it is tied to the app rather than the site, with the "Go To App" button. If I merge a Facebook Page with an App Page (App Page is the one with fewer Likes), will the merged Page have the "Go To App" button? Thanks.
facebook
null
null
null
null
05/10/2012 20:31:28
off topic
If I merge a Facebook Page with an App Page, will the merged Page have the "Go To App" button? === Currently we have a Facebook Page for our app/website, which means it does not have the "Go To App" button. Then, an App Page was created so it is tied to the app rather than the site, with the "Go To App" button. If I merge a Facebook Page with an App Page (App Page is the one with fewer Likes), will the merged Page have the "Go To App" button? Thanks.
2
3,940,782
10/15/2010 08:54:32
417,458
08/11/2010 15:52:53
8
0
how the bittorent is compiled to exe
As all know bittorrent is written in python program. whenever i download and install the bittorrent.exe, I never found any file(like dll etc) associated in program files i mean whenever i go to c:\program files\bittorrent i found only single file called bittorrent.exe, i wonder how this program is compiled to exe , whereas whenever i want to build standalone python exe i use py2exe and i found the output consists of nearly 25mb, which consists of all library file included. Can anybody will tell me the detail structure how the bittorent program is build into exe.
python
executable
null
null
null
10/15/2010 09:27:23
not a real question
how the bittorent is compiled to exe === As all know bittorrent is written in python program. whenever i download and install the bittorrent.exe, I never found any file(like dll etc) associated in program files i mean whenever i go to c:\program files\bittorrent i found only single file called bittorrent.exe, i wonder how this program is compiled to exe , whereas whenever i want to build standalone python exe i use py2exe and i found the output consists of nearly 25mb, which consists of all library file included. Can anybody will tell me the detail structure how the bittorent program is build into exe.
1
6,384,835
06/17/2011 11:05:53
744,908
05/09/2011 09:54:16
53
1
How to extract process hierarchy information in linux!?
I want to write a program in Linux which by getting a session id could print all processes and process groups in that session in a tree view structure!? How can i extract such information!? should i resort to proc file system?
linux
session
process
group
hierarchy
06/17/2011 17:45:35
not a real question
How to extract process hierarchy information in linux!? === I want to write a program in Linux which by getting a session id could print all processes and process groups in that session in a tree view structure!? How can i extract such information!? should i resort to proc file system?
1
3,464,111
08/12/2010 01:30:04
168,472
09/04/2009 11:45:11
81
1
Cocoa WebView, WebKit - Prevent I-Beam cursor from showing over text?
Cocoa app, SnowLeopard I have a WebView in to which I'm loading HTML (essentially for application UI purposes). In the html, I've added: <body onselectstart="return false" ondragstart="return false"> This prevents text from being selected, which is what I want for this job. However, whenever the cursor is moved over any text, including disabled "button" texts, the cursor changes to the I-Beam, producing a nasty, unwanted effect. Is there any way to change this behaviour, either in HTML or in WebKit? Thanks for any help.
html
cocoa
cursor
webview
null
null
open
Cocoa WebView, WebKit - Prevent I-Beam cursor from showing over text? === Cocoa app, SnowLeopard I have a WebView in to which I'm loading HTML (essentially for application UI purposes). In the html, I've added: <body onselectstart="return false" ondragstart="return false"> This prevents text from being selected, which is what I want for this job. However, whenever the cursor is moved over any text, including disabled "button" texts, the cursor changes to the I-Beam, producing a nasty, unwanted effect. Is there any way to change this behaviour, either in HTML or in WebKit? Thanks for any help.
0
11,699,785
07/28/2012 09:20:45
1,197,047
02/08/2012 11:29:53
570
23
mysqli_multi_query not returnig any value
I fired the following query with the help of mysqli_multi_query. Which is executing properly but not returning any value. It returning blank. Whats wrong with the mysqli_multi_query or is there any alternative for this for firing multiple queries in codeigniter. $sql="LOCK TABLE xp_subunit WRITE; "; $sql .= "SELECT @myLeft := ".$_GET['lft'].", @myRight := ".$_GET['rgt'].", @myWidth := ".$_GET['lft']." - lft + 1 FROM xp_subunit WHERE id =".$_GET['id']."; "; $sql .= "DELETE FROM xp_subunit WHERE lft BETWEEN @myLeft AND @myRight; "; $sql .= "UPDATE xp_subunit SET rgt = rgt - @myWidth WHERE rgt > @myRight; "; $sql .= "UPDATE xp_subunit SET lft = lft - @myWidth WHERE lft > @myRight; "; $sql.="UNLOCK TABLES;"; //echo $sql; $query = $this->db->mysqli_multi_query($sql); Thanks.
php
mysql
codeigniter
mysqli
null
null
open
mysqli_multi_query not returnig any value === I fired the following query with the help of mysqli_multi_query. Which is executing properly but not returning any value. It returning blank. Whats wrong with the mysqli_multi_query or is there any alternative for this for firing multiple queries in codeigniter. $sql="LOCK TABLE xp_subunit WRITE; "; $sql .= "SELECT @myLeft := ".$_GET['lft'].", @myRight := ".$_GET['rgt'].", @myWidth := ".$_GET['lft']." - lft + 1 FROM xp_subunit WHERE id =".$_GET['id']."; "; $sql .= "DELETE FROM xp_subunit WHERE lft BETWEEN @myLeft AND @myRight; "; $sql .= "UPDATE xp_subunit SET rgt = rgt - @myWidth WHERE rgt > @myRight; "; $sql .= "UPDATE xp_subunit SET lft = lft - @myWidth WHERE lft > @myRight; "; $sql.="UNLOCK TABLES;"; //echo $sql; $query = $this->db->mysqli_multi_query($sql); Thanks.
0
2,404,118
03/08/2010 19:33:11
289,102
03/08/2010 19:33:11
1
0
Left Join in Subsonic3
I'm new in subsonic3, and I'm getting some errors when I try to use LeftJoin var q = from c in categories join p in products on c equals p.Category into ps from p in ps.DefaultIfEmpty() select new { Category = c, ProductName = p == null ? "(No products)" : p.ProductName }; The error is "System.Collections.Generic.Enumerable '...' cannot be used for parameter of type System.Linq.IQueryable Does anyone had this error before? Did you fix it? Thanks
subsonic3
subsonic
null
null
null
null
open
Left Join in Subsonic3 === I'm new in subsonic3, and I'm getting some errors when I try to use LeftJoin var q = from c in categories join p in products on c equals p.Category into ps from p in ps.DefaultIfEmpty() select new { Category = c, ProductName = p == null ? "(No products)" : p.ProductName }; The error is "System.Collections.Generic.Enumerable '...' cannot be used for parameter of type System.Linq.IQueryable Does anyone had this error before? Did you fix it? Thanks
0
5,329,922
03/16/2011 18:24:14
197,606
10/27/2009 19:49:00
2,563
103
How to print a web page with graphics
I need to print the web page as it appears, I don't have photoshop or any way to take a screenshot of the page. What's the best method to do this?
printing
null
null
null
null
03/17/2011 13:40:34
off topic
How to print a web page with graphics === I need to print the web page as it appears, I don't have photoshop or any way to take a screenshot of the page. What's the best method to do this?
2
7,095,872
08/17/2011 15:58:27
829,553
07/05/2011 11:06:04
38
0
E-commerce application using MVC pattern
I am going to develop an e-commerce application using MVC architecture (model 2). Could you please guide me onto essential tips I should care for ? Like design concepts, choosing suitable framework, data model, and application server. I do not have much experience into application designing. It would be better if you could shed some light onto necessary UML precautions (or suggest better book) By the way, I'd like to use Spring framework. Thanks in advance!
mvc
java-ee
null
null
null
08/17/2011 23:58:34
not a real question
E-commerce application using MVC pattern === I am going to develop an e-commerce application using MVC architecture (model 2). Could you please guide me onto essential tips I should care for ? Like design concepts, choosing suitable framework, data model, and application server. I do not have much experience into application designing. It would be better if you could shed some light onto necessary UML precautions (or suggest better book) By the way, I'd like to use Spring framework. Thanks in advance!
1
7,752,646
10/13/2011 10:19:20
993,208
10/13/2011 10:14:33
1
0
Xcode Error while programming in C
I'm trying to create a program using Xcode. The program is very simple, it uses threads. I have done everything right. Or so I thought. This error comes up and I have do ideia what it means! `Command /Developer/usr/bin/gcc-4.2 failed with exit code 1` along with: ld: duplicate symbol _thr_inc_low in (... a bunch of crap that is the directory of this file) main.o Can you please help me??
xcode
pthreads
null
null
null
10/14/2011 03:06:53
too localized
Xcode Error while programming in C === I'm trying to create a program using Xcode. The program is very simple, it uses threads. I have done everything right. Or so I thought. This error comes up and I have do ideia what it means! `Command /Developer/usr/bin/gcc-4.2 failed with exit code 1` along with: ld: duplicate symbol _thr_inc_low in (... a bunch of crap that is the directory of this file) main.o Can you please help me??
3
3,969,056
10/19/2010 13:52:36
262,022
01/29/2010 17:53:16
330
21
win32 api - how to check for user privileges on a remote machine
given user credentials to either a local account on a remote machine or a domain account, how can i check the user privileges these credentials grant on a remote host ? i can lookup the SID for the account, but how do i know if, for instance, this account is a members of the administrators group on the remote host ? i can find plenty of example for checking against the local administrators group (fo example http://stackoverflow.com/questions/581204/), but it looks like CreateWellKnownSid only works on the localhost. any clues/pointers/code samples would be very welcome.
c
winapi
null
null
null
null
open
win32 api - how to check for user privileges on a remote machine === given user credentials to either a local account on a remote machine or a domain account, how can i check the user privileges these credentials grant on a remote host ? i can lookup the SID for the account, but how do i know if, for instance, this account is a members of the administrators group on the remote host ? i can find plenty of example for checking against the local administrators group (fo example http://stackoverflow.com/questions/581204/), but it looks like CreateWellKnownSid only works on the localhost. any clues/pointers/code samples would be very welcome.
0
11,366,730
07/06/2012 17:10:33
1,507,401
07/06/2012 17:03:42
1
0
SQL query for running sums
I'd like to build the queries in MS SQL 2008 R2 to display the same data as here: http://www.baseball-reference.com/leaders/HR_progress.shtml<br/> Anybody any clues?
sql-server-2008
null
null
null
null
07/09/2012 00:36:38
not a real question
SQL query for running sums === I'd like to build the queries in MS SQL 2008 R2 to display the same data as here: http://www.baseball-reference.com/leaders/HR_progress.shtml<br/> Anybody any clues?
1
9,497,161
02/29/2012 10:11:37
703,569
04/12/2011 07:32:03
139
0
How do I change a static variables value in PHP?
This is a simplified version of what I want to accomplish: In my script I want a variable that changes true and false everytime the script is executed. <?php static $bool = true; // Print differente messages depending on $bool if( $bool == true ) echo "It's true!"; else echo "It's false!"; // Change $bools value if( $bool == true ) $bool = false else $bool = true; ?> But obviously what I'm doing is wrong. The variable `$bool` is constantly `true` and I haven't fully grasped the concept of static variables I presume. What am I doing wrong?
php
static-variables
null
null
null
null
open
How do I change a static variables value in PHP? === This is a simplified version of what I want to accomplish: In my script I want a variable that changes true and false everytime the script is executed. <?php static $bool = true; // Print differente messages depending on $bool if( $bool == true ) echo "It's true!"; else echo "It's false!"; // Change $bools value if( $bool == true ) $bool = false else $bool = true; ?> But obviously what I'm doing is wrong. The variable `$bool` is constantly `true` and I haven't fully grasped the concept of static variables I presume. What am I doing wrong?
0
6,694,610
07/14/2011 14:13:37
114,203
05/29/2009 10:00:38
55
3
Problem making LinkedIn API call after OAuth authentication
I've successfully made my way through the LinkedIn OAuth process (using the REST API - OAuth 1.0a). However I'm having trouble with my first API call after the callback. I set the UserToken, UserTokenSecret and UserVerfier in the library I am writing, and this call this function to get my profile information: public function getUserProfile() { $consumer = new OAuthConsumer($this->consumer_key, $this->consumer_secret, NULL); $auth_token = new OAuthConsumer($this->getUserToken(), $this->getUserTokenSecret()); $access_token_req = new OAuthRequest("GET", $this->access_token_endpoint); $params['oauth_verifier'] = $this->getUserVerifier(); $access_token_req = $access_token_req->from_consumer_and_token($this->consumer, $auth_token, "GET", $this->access_token_endpoint, $params); $access_token_req->sign_request(new OAuthSignatureMethod_HMAC_SHA1(),$consumer, $auth_token); $after_access_request = $this->doHttpRequest($access_token_req->to_url()); $access_tokens = array(); parse_str($after_access_request,$access_tokens); # line 234 below $access_token = new OAuthConsumer($access_tokens['oauth_token'], $access_tokens['oauth_token_secret']); // prepare for get profile call $profile_req = $access_token_req->from_consumer_and_token($consumer, $access_token, "GET", $this->api_url.'/v1/people/~'); $profile_req->sign_request(new OAuthSignatureMethod_HMAC_SHA1(),$consumer,$access_token); $after_request = $this->doHttpRequest($profile_req->to_url()); var_dump($after_request); } The function var_dumps a string, which is the basic synopsis of my profile: string(402) " Nick Jennings blah blah blah http://www.linkedin.com/profile?viewProfile=&key=28141694&authToken=HWBC&authType=name&trk=api*a137731*s146100* " That's good. However, the minute I refresh the page, the same function call fails with: Undefined index: oauth_token, line number: 234 (this line marked with comment in above code block). Then, of course, the var_dump reports this error from LinkedIn: string(290) " 401 1310652477038 R8MHA2787T 0 [unauthorized]. The token used in the OAuth request is not valid. " something to note: * the user token, secret, and verifier are persisted during the initial authorization callback (right before this function is called). So, they are the same during the first call (when it works, right after coming back from linkedin) and during a page reload (when it fails on line 234). Also, I must admit I'm not 100% sure I understand everything that's going on in this function. I actually took examples from this tutorial (about a different service, not linkedin) http://apiwiki.justin.tv/mediawiki/index.php/OAuth_PHP_Tutorial and combined it with the information I gathered from the LinkedIn API documentation, spread throughout their developer site. Most notable was the addition of the 'verifier' which the tutorial did not use. Any insight into this problem would be greatly appreciated. Thanks in advance. -Nick
php
oauth
linkedin
null
null
null
open
Problem making LinkedIn API call after OAuth authentication === I've successfully made my way through the LinkedIn OAuth process (using the REST API - OAuth 1.0a). However I'm having trouble with my first API call after the callback. I set the UserToken, UserTokenSecret and UserVerfier in the library I am writing, and this call this function to get my profile information: public function getUserProfile() { $consumer = new OAuthConsumer($this->consumer_key, $this->consumer_secret, NULL); $auth_token = new OAuthConsumer($this->getUserToken(), $this->getUserTokenSecret()); $access_token_req = new OAuthRequest("GET", $this->access_token_endpoint); $params['oauth_verifier'] = $this->getUserVerifier(); $access_token_req = $access_token_req->from_consumer_and_token($this->consumer, $auth_token, "GET", $this->access_token_endpoint, $params); $access_token_req->sign_request(new OAuthSignatureMethod_HMAC_SHA1(),$consumer, $auth_token); $after_access_request = $this->doHttpRequest($access_token_req->to_url()); $access_tokens = array(); parse_str($after_access_request,$access_tokens); # line 234 below $access_token = new OAuthConsumer($access_tokens['oauth_token'], $access_tokens['oauth_token_secret']); // prepare for get profile call $profile_req = $access_token_req->from_consumer_and_token($consumer, $access_token, "GET", $this->api_url.'/v1/people/~'); $profile_req->sign_request(new OAuthSignatureMethod_HMAC_SHA1(),$consumer,$access_token); $after_request = $this->doHttpRequest($profile_req->to_url()); var_dump($after_request); } The function var_dumps a string, which is the basic synopsis of my profile: string(402) " Nick Jennings blah blah blah http://www.linkedin.com/profile?viewProfile=&key=28141694&authToken=HWBC&authType=name&trk=api*a137731*s146100* " That's good. However, the minute I refresh the page, the same function call fails with: Undefined index: oauth_token, line number: 234 (this line marked with comment in above code block). Then, of course, the var_dump reports this error from LinkedIn: string(290) " 401 1310652477038 R8MHA2787T 0 [unauthorized]. The token used in the OAuth request is not valid. " something to note: * the user token, secret, and verifier are persisted during the initial authorization callback (right before this function is called). So, they are the same during the first call (when it works, right after coming back from linkedin) and during a page reload (when it fails on line 234). Also, I must admit I'm not 100% sure I understand everything that's going on in this function. I actually took examples from this tutorial (about a different service, not linkedin) http://apiwiki.justin.tv/mediawiki/index.php/OAuth_PHP_Tutorial and combined it with the information I gathered from the LinkedIn API documentation, spread throughout their developer site. Most notable was the addition of the 'verifier' which the tutorial did not use. Any insight into this problem would be greatly appreciated. Thanks in advance. -Nick
0
362,223
12/12/2008 08:40:43
16,686
09/17/2008 19:44:52
455
19
Best MySQL performance tuning tool?
Which is the best, user-friendliest performance tool for MySQL? I'd like help with pinpointing the bottle neck of my setup. Is the problem in the SQL statements, the settings variables, or something else?
mysql
performance
null
null
null
09/14/2011 15:22:01
not constructive
Best MySQL performance tuning tool? === Which is the best, user-friendliest performance tool for MySQL? I'd like help with pinpointing the bottle neck of my setup. Is the problem in the SQL statements, the settings variables, or something else?
4
11,364,419
07/06/2012 14:43:10
614,249
01/12/2011 10:53:24
568
23
Ajaxplorer - Remove powered by Ajaxplorer
I am using [Ajaxplorer][1] 4.0.4 Version. i want to remove "Powered by Ajaxplorer , written by charles" etc. How can i remove this and set my custom message, \ I am willing to pay for this. [1]: http://ajaxplorer.info
php
filemanager
null
null
null
07/08/2012 17:58:29
too localized
Ajaxplorer - Remove powered by Ajaxplorer === I am using [Ajaxplorer][1] 4.0.4 Version. i want to remove "Powered by Ajaxplorer , written by charles" etc. How can i remove this and set my custom message, \ I am willing to pay for this. [1]: http://ajaxplorer.info
3
10,621,711
05/16/2012 15:25:25
833,430
07/07/2011 11:41:50
121
0
jQuery remove fade and just have show?
How would I remove the fadeIn/Fadeout from this and just have a show? e.g. I just want to pull the ajax content right in without any effects...or gimmicks into the div... #mc_calendar. My code: function buildCal (responseHTML){ // where are we going to put our AJAX calendar? var target = jQuery('#mc_calendar'); //how fast do we want it to fade out? target.fadeOut(100, function(){ target.empty(); target.html(responseHTML) // how fast do we want it to fade in? target.fadeIn(50); initMonthLinks(target) }); }
jquery
null
null
null
null
05/16/2012 20:31:03
too localized
jQuery remove fade and just have show? === How would I remove the fadeIn/Fadeout from this and just have a show? e.g. I just want to pull the ajax content right in without any effects...or gimmicks into the div... #mc_calendar. My code: function buildCal (responseHTML){ // where are we going to put our AJAX calendar? var target = jQuery('#mc_calendar'); //how fast do we want it to fade out? target.fadeOut(100, function(){ target.empty(); target.html(responseHTML) // how fast do we want it to fade in? target.fadeIn(50); initMonthLinks(target) }); }
3
9,426,425
02/24/2012 06:33:36
246,970
01/09/2010 07:57:07
245
24
Entity Framework 4 merge data to tracked entity
I'm struggling with Entity Framework code first and merging. I have an MVC controller with a generic repository. A view model gets posted up and I convert that into the type that EF knows about var converted = AutoMapper.Mapper.Map<RoutineViewModel, Routine>(result); _routineRepository.Update(converted); In the repository I have: /* Routines.Attach(item); ChangeTracker.Entries<Routine>().Single(x => x.Entity.Id == item.Id).State = EntityState.Modified;*/ var match = Routines.Single(x => x.Id == item.Id); var entity = Entry(match); entity.CurrentValues.SetValues(item); I commented out the first bit because it was throwing an error about already tracking the entity even though a check like this: if (ChangeTracker.Entries<Routine>().Count(x => x.Entity.Id == item.Id) != 0) returned false The problem I'm having is that the Routine object has an ICollection property of Steps. When I set the values of the tracked entity to match that of the poco the ICollection changes aren't propagated down. Looking around this site there looks to be a few nasty looking recursive calls. Is this really how it works or am I missing something? Is there any easy way to say, here is the source object (untracked), copy everything about it into the tracked object?
c#
entity-framework-4
ef-code-first
null
null
null
open
Entity Framework 4 merge data to tracked entity === I'm struggling with Entity Framework code first and merging. I have an MVC controller with a generic repository. A view model gets posted up and I convert that into the type that EF knows about var converted = AutoMapper.Mapper.Map<RoutineViewModel, Routine>(result); _routineRepository.Update(converted); In the repository I have: /* Routines.Attach(item); ChangeTracker.Entries<Routine>().Single(x => x.Entity.Id == item.Id).State = EntityState.Modified;*/ var match = Routines.Single(x => x.Id == item.Id); var entity = Entry(match); entity.CurrentValues.SetValues(item); I commented out the first bit because it was throwing an error about already tracking the entity even though a check like this: if (ChangeTracker.Entries<Routine>().Count(x => x.Entity.Id == item.Id) != 0) returned false The problem I'm having is that the Routine object has an ICollection property of Steps. When I set the values of the tracked entity to match that of the poco the ICollection changes aren't propagated down. Looking around this site there looks to be a few nasty looking recursive calls. Is this really how it works or am I missing something? Is there any easy way to say, here is the source object (untracked), copy everything about it into the tracked object?
0
10,878,282
06/04/2012 08:20:16
1,244,160
03/02/2012 02:29:42
1
0
NSXMLParserErrorDomain error 23
Anyone have any additional details on the possible cause of a "NSXMLParserErrorDomain error 23"? The only info that I can find is: NSXMLParserEntityReferenceMissingSemiError in the header file. It appears that it is related to the possible fact that "Entity reference is missing semicolon" - which I can't see how applies in my example of properly formed XML. Thanks.
ios
xml-parsing
null
null
null
07/16/2012 16:47:33
too localized
NSXMLParserErrorDomain error 23 === Anyone have any additional details on the possible cause of a "NSXMLParserErrorDomain error 23"? The only info that I can find is: NSXMLParserEntityReferenceMissingSemiError in the header file. It appears that it is related to the possible fact that "Entity reference is missing semicolon" - which I can't see how applies in my example of properly formed XML. Thanks.
3
5,455,825
03/28/2011 07:25:52
669,158
01/27/2011 07:00:41
6
0
how to create popup window with javascript in output link attribute in visualforce page in salesforce
how to create popup window with javascript in output link attribute in visualforce page in salesforce. let me know
salesforce
null
null
null
null
null
open
how to create popup window with javascript in output link attribute in visualforce page in salesforce === how to create popup window with javascript in output link attribute in visualforce page in salesforce. let me know
0
11,339,707
07/05/2012 07:32:28
735,226
05/02/2011 22:52:39
1,202
52
Unknown type name 'HParamBlockRec' in .dylib build
I'm getting an error that frustrates me. I have this line of code: GetVolParmsInfoBuffer volumeParms; HParamBlockRec pb; And I included this header: #include </System/Library/Frameworks/CoreServices.framwork/Frameworks/CarbonCore.framework/Headers/Files.h> But still the compiler throws the error that `HParamBlockRec` is unknown type. In a other project with the same files everything works fine, even without including the `Files.h` header. Is there anything I'm missing?
c++
xcode
dylib
null
null
null
open
Unknown type name 'HParamBlockRec' in .dylib build === I'm getting an error that frustrates me. I have this line of code: GetVolParmsInfoBuffer volumeParms; HParamBlockRec pb; And I included this header: #include </System/Library/Frameworks/CoreServices.framwork/Frameworks/CarbonCore.framework/Headers/Files.h> But still the compiler throws the error that `HParamBlockRec` is unknown type. In a other project with the same files everything works fine, even without including the `Files.h` header. Is there anything I'm missing?
0
4,290,220
11/27/2010 05:06:19
234,118
12/17/2009 20:53:47
200
1
Hibernate Session.save() doesn't return a value?
Below code throws a casting error > Long newID = (Long)session.save(object); I am new to hibernate. Don't know why.
java
hibernate
null
null
null
null
open
Hibernate Session.save() doesn't return a value? === Below code throws a casting error > Long newID = (Long)session.save(object); I am new to hibernate. Don't know why.
0
4,454,593
12/15/2010 20:34:04
473,424
10/12/2010 14:00:48
1
0
How to access id attribute of any element in Raphael
I'm using Raphael for drawing some elements on a website. The elements include rectangle, line (path). I have given an id to the path element and trying to access it in the onclick event of that line. but when I do an alert of the id, nothing is visible. Following is the code snippet function createLine() { var t = paper.path("M" + xLink + " " + yLink +"L" + linkWidth + " " + linkHeight); t.attr('stroke-width','3'); t.attr('id','Hello'); t.node.onclick = processPathOnClick; } function processPathOnClick() { alert($(this).attr("id")); } Can anyone please tell me what is the problem with the above code. Any pointer will be helpful. Thanks
javascript
jquery
raphael
setattribute
null
null
open
How to access id attribute of any element in Raphael === I'm using Raphael for drawing some elements on a website. The elements include rectangle, line (path). I have given an id to the path element and trying to access it in the onclick event of that line. but when I do an alert of the id, nothing is visible. Following is the code snippet function createLine() { var t = paper.path("M" + xLink + " " + yLink +"L" + linkWidth + " " + linkHeight); t.attr('stroke-width','3'); t.attr('id','Hello'); t.node.onclick = processPathOnClick; } function processPathOnClick() { alert($(this).attr("id")); } Can anyone please tell me what is the problem with the above code. Any pointer will be helpful. Thanks
0
4,398,676
12/09/2010 13:26:37
536,440
12/09/2010 13:04:47
1
0
configure run in eclipse for SCALA
hi i am a beginner in SCALA.i install SCALA ide in eclipse now i want to run my application programme.it never show run as scala application rather it shows run as java application or java applet .then i opened run configuration.and open click on scala application and my project name is test and second column is of Class Main what i have to fill i fill Main.Scala but it shows could not find mainmain class main.scala .can u help me how to run this project.
eclipse
scala
null
null
null
null
open
configure run in eclipse for SCALA === hi i am a beginner in SCALA.i install SCALA ide in eclipse now i want to run my application programme.it never show run as scala application rather it shows run as java application or java applet .then i opened run configuration.and open click on scala application and my project name is test and second column is of Class Main what i have to fill i fill Main.Scala but it shows could not find mainmain class main.scala .can u help me how to run this project.
0
1,166,145
07/22/2009 15:34:30
89,604
04/10/2009 21:26:54
251
14
How to specify flashvars when importing a flash movie?
I want to use a flash movie in another movie, so I import the desired swf into the library. Yet, the swf needs some additional configuration that can be passed as flash vars. How can I specify the flash vars?
flash
null
null
null
null
null
open
How to specify flashvars when importing a flash movie? === I want to use a flash movie in another movie, so I import the desired swf into the library. Yet, the swf needs some additional configuration that can be passed as flash vars. How can I specify the flash vars?
0
11,682,723
07/27/2012 06:43:03
1,297,382
03/28/2012 06:48:52
903
74
Delete files in the Project navigator of Xcode
It is well known that the files deleted in **Finder** will be collected by the **Recycle Bin**. Is there a **Recycle Bin** to collect files, which were deleted in the **Project navigator** of Xcode?
iphone
xcode
delete
iso
null
07/27/2012 12:15:25
off topic
Delete files in the Project navigator of Xcode === It is well known that the files deleted in **Finder** will be collected by the **Recycle Bin**. Is there a **Recycle Bin** to collect files, which were deleted in the **Project navigator** of Xcode?
2
6,672,428
07/12/2011 23:28:04
591,176
01/26/2011 19:16:06
64
9
What is your favorite http client for PHP?
curl has caused me a world of hurt. I'm not sure if it's libcurl itself or PHP's usage of libcurl, but it simply doesn't do what I need it to do. PEAR is also out of the question as deployment is a nightmare. So what are my alternatives for a "purist" http client in PHP?
http
php5
httpclient
null
null
11/11/2011 16:46:03
not constructive
What is your favorite http client for PHP? === curl has caused me a world of hurt. I'm not sure if it's libcurl itself or PHP's usage of libcurl, but it simply doesn't do what I need it to do. PEAR is also out of the question as deployment is a nightmare. So what are my alternatives for a "purist" http client in PHP?
4
6,661,909
07/12/2011 09:16:59
840,391
07/12/2011 09:16:59
1
0
Parabola calculation
> You are returning a tennis ball that your friend has accidentally > thrown into your yard, but you need to throw it over a 4.0 m fence. > You want to throw it so that it reaches a certain distance and it have > to clear the fence. You are standing 0.50 m away from the fence and > throw underhanded, releasing the ball at a height of 1.0 m and you > have to reach a distance of 15. I should find a curve that will bring > the ball to a certain distance AND at a certain time (based on the > distance to the fence) it have to be OVER the height of the fence to > avoid impact. State the initial velocity vector you would use to > accomplish this. I need to write a function that would return the Initial Velocity Vector needed to throw an object over a fence at a certain distance.. I'm very confused about quadratic functions and all the calculations... someone gave me this answer, but I don't know how to port it to C# or something else. It seems really really simple but I'm stuck... > Assuming the radius of the ball is negligible, the border between just > missing and just hitting the fence can be worked out like this: > > The arc of the ball is a parabola, facing down. We need an equation > for this parabola. > > Assuming the 15m is the total distance and not distance on other side > of fence, then the parabola should look like this: > > y(x) = ax^2 + bx +c. > > You've got 3 unknowns, so you need 3 points. Try these: x,y 0,1 > 0.5, 4 15, 0. > > Once you've found a, b, and c, then you can find the maximum height, > y, when x=7.5. > > From maximum height, now write your vertical equation: > > y(t) = (-9.8 m/s^2) * t^2 / 2 + v_y*t + 1. > > Where v_y is your initial upward velocity, and -9.8 is the > acceleration due to gravity. > > You can then solve this for t when y=0 to get the total time. > > Your x equation will be v_x = 15 m / total time. > > Your initial velocity will be square root of (v_x^2 + v_y^2) > > Your inital angle will be arc tangent of (v_y / v_x).
c#
math
null
null
null
07/12/2011 16:40:43
not a real question
Parabola calculation === > You are returning a tennis ball that your friend has accidentally > thrown into your yard, but you need to throw it over a 4.0 m fence. > You want to throw it so that it reaches a certain distance and it have > to clear the fence. You are standing 0.50 m away from the fence and > throw underhanded, releasing the ball at a height of 1.0 m and you > have to reach a distance of 15. I should find a curve that will bring > the ball to a certain distance AND at a certain time (based on the > distance to the fence) it have to be OVER the height of the fence to > avoid impact. State the initial velocity vector you would use to > accomplish this. I need to write a function that would return the Initial Velocity Vector needed to throw an object over a fence at a certain distance.. I'm very confused about quadratic functions and all the calculations... someone gave me this answer, but I don't know how to port it to C# or something else. It seems really really simple but I'm stuck... > Assuming the radius of the ball is negligible, the border between just > missing and just hitting the fence can be worked out like this: > > The arc of the ball is a parabola, facing down. We need an equation > for this parabola. > > Assuming the 15m is the total distance and not distance on other side > of fence, then the parabola should look like this: > > y(x) = ax^2 + bx +c. > > You've got 3 unknowns, so you need 3 points. Try these: x,y 0,1 > 0.5, 4 15, 0. > > Once you've found a, b, and c, then you can find the maximum height, > y, when x=7.5. > > From maximum height, now write your vertical equation: > > y(t) = (-9.8 m/s^2) * t^2 / 2 + v_y*t + 1. > > Where v_y is your initial upward velocity, and -9.8 is the > acceleration due to gravity. > > You can then solve this for t when y=0 to get the total time. > > Your x equation will be v_x = 15 m / total time. > > Your initial velocity will be square root of (v_x^2 + v_y^2) > > Your inital angle will be arc tangent of (v_y / v_x).
1
4,536,757
12/27/2010 05:24:02
554,676
12/27/2010 05:24:02
1
0
How to automatically get technology of application in .net window application?
I am working on window application which can scan any application to find out impact. I need to find out technology in which application is build.How can I find out technology in .net window application? Thanks, Tina
c#
null
null
null
null
12/27/2010 10:54:32
not a real question
How to automatically get technology of application in .net window application? === I am working on window application which can scan any application to find out impact. I need to find out technology in which application is build.How can I find out technology in .net window application? Thanks, Tina
1
2,969,703
06/03/2010 20:56:05
289,153
03/08/2010 20:51:22
191
4
Getting started with SQLite (Android)
I have limited SQL background, basically a small amount of manipulation through HTML and mostly with pre-existing databases. What I am trying to do is set up a database that will store time information for bus routes. So basically I have different routes with stops for each route and then a list of times that the bus arrives at each stop. Here is an example of a table of times from their website: [Link][1]. I am wondering what would be the best way to layout my database/tables? Also what is the purpose of the _id field in each table? Thanks, Rob! P.S. Sorry if my lack of knowledge on the subject has caused me to post a duplicate question. [1]: http://www.cyride.com/routes/Summer/WDRedSouth.html
android
sqlite
null
null
null
null
open
Getting started with SQLite (Android) === I have limited SQL background, basically a small amount of manipulation through HTML and mostly with pre-existing databases. What I am trying to do is set up a database that will store time information for bus routes. So basically I have different routes with stops for each route and then a list of times that the bus arrives at each stop. Here is an example of a table of times from their website: [Link][1]. I am wondering what would be the best way to layout my database/tables? Also what is the purpose of the _id field in each table? Thanks, Rob! P.S. Sorry if my lack of knowledge on the subject has caused me to post a duplicate question. [1]: http://www.cyride.com/routes/Summer/WDRedSouth.html
0
7,049,931
08/13/2011 10:36:21
892,968
08/13/2011 10:36:21
1
0
Windows XP Embedded : loop reboot
I use Windows XPE on workstations Kiosk (Public Access), I exactly the same two terminals (hardware side) I have a recovery image on a DVD that allows me to restore it if a crash or other problem. This DVD works perfectly on one of two terminals, restoration is performed to completion, and Windows XPE starts without problems. When I use the DVD on the second terminal, catering is also carried to term (Clonezilla is used to prepare and partition the drive before copying the backup image on it, all this is automated on the recovery DVD) Once the restoration is complete, Windows XPE boots, login screen (automatic login), loading the desktop and logoff, and the computer restarts. This is done in a loop at every boot. The shutdown is initialized by Windows, after checking no program is launched at startup that could initiate the restart. I am totally blocked and can not understand why the reboot. The event handler does not report invalid by a system problem that would order a restart. Do you have any suggestions? thank you in advance
windows
windows-xp
embedded
reboot
null
08/13/2011 12:32:55
off topic
Windows XP Embedded : loop reboot === I use Windows XPE on workstations Kiosk (Public Access), I exactly the same two terminals (hardware side) I have a recovery image on a DVD that allows me to restore it if a crash or other problem. This DVD works perfectly on one of two terminals, restoration is performed to completion, and Windows XPE starts without problems. When I use the DVD on the second terminal, catering is also carried to term (Clonezilla is used to prepare and partition the drive before copying the backup image on it, all this is automated on the recovery DVD) Once the restoration is complete, Windows XPE boots, login screen (automatic login), loading the desktop and logoff, and the computer restarts. This is done in a loop at every boot. The shutdown is initialized by Windows, after checking no program is launched at startup that could initiate the restart. I am totally blocked and can not understand why the reboot. The event handler does not report invalid by a system problem that would order a restart. Do you have any suggestions? thank you in advance
2
7,131,388
08/20/2011 11:11:20
445,714
09/12/2010 18:34:42
69
0
Returning results from a helper method
Say I have the following helper method public int doTheSum(int num1, int num2) { return num1 + num2; } And this method public int doSum(int num1, int num2) { return the answer from the helper method } So how do i get the method to return the result from the helper method
java
methods
helper
null
null
08/20/2011 13:57:34
too localized
Returning results from a helper method === Say I have the following helper method public int doTheSum(int num1, int num2) { return num1 + num2; } And this method public int doSum(int num1, int num2) { return the answer from the helper method } So how do i get the method to return the result from the helper method
3
11,316,870
07/03/2012 18:22:12
1,481,279
06/25/2012 23:05:48
11
0
Adding menu support in wordpress - css not being recognized though
website: http://www.telugumovieshub.com/ I followed this tutorial here (except for creating a child theme): http://50dollarblogs.net/wordpress-menus-support/ to add menu support to my theme (coremag) which did not support it. It did add the menu support as needed. My issue is that the css that I have added to my stylesheet.css is not being recognized at all. #navigation ul#menu-main-menu{ display: block; height: auto; list-style-type: none; margin: 0; padding: 0; width: 100%} #navigation ul#menu-main-menu li.current_page_item a:link, #navigation ul#menu-main-menu li.current_page_item a:active, #navigation ul#menu main-menu li.current_page_item a:visited { background-color: #525252; border-style: none; border-width: 0; color: #FFFFFF; display: block; font-size: 11px; font-weight: bold; height: auto; list-style-type: none; margin: 0; padding: 6px 9px; text-decoration: none; width: auto;} I have left the current nav menu there to show the look that I am trying to achieve. Thanks for any help. Ken
php
css
wordpress
null
null
07/06/2012 14:56:07
too localized
Adding menu support in wordpress - css not being recognized though === website: http://www.telugumovieshub.com/ I followed this tutorial here (except for creating a child theme): http://50dollarblogs.net/wordpress-menus-support/ to add menu support to my theme (coremag) which did not support it. It did add the menu support as needed. My issue is that the css that I have added to my stylesheet.css is not being recognized at all. #navigation ul#menu-main-menu{ display: block; height: auto; list-style-type: none; margin: 0; padding: 0; width: 100%} #navigation ul#menu-main-menu li.current_page_item a:link, #navigation ul#menu-main-menu li.current_page_item a:active, #navigation ul#menu main-menu li.current_page_item a:visited { background-color: #525252; border-style: none; border-width: 0; color: #FFFFFF; display: block; font-size: 11px; font-weight: bold; height: auto; list-style-type: none; margin: 0; padding: 6px 9px; text-decoration: none; width: auto;} I have left the current nav menu there to show the look that I am trying to achieve. Thanks for any help. Ken
3
8,334,280
11/30/2011 23:04:00
966,977
09/27/2011 11:59:23
6
2
git Include a file but have its changes untracked
I'd like to include a source file (have it delivered when someone clones a repository) in my repository but have changes to it ignored by default. `git update-index --assume-unchanged ...` doesn't work because it only applies to the local index. I want all users to have the file in question ignored by default. `.gitignore` doesn't work because if I track a file via `git add -f ..`, then changes to it are tracked. This is similar to how Subversion would work if I `svn add` ed the file then applied a `.svnignore`. Examples: $ git clone git@git:gsmith/sandbox.git snip... $ cd sandbox/ $ ls -a . .. .git .gitignore gitignored tracked $ cat .gitignore gitignored $ echo foo >> gitignored $ git status # On branch master # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: gitignored # no changes added to commit (use "git add" and/or "git commit -a") I would like this file to be ignored. $ git reset --hard HEAD HEAD is now at 34b1f3d initial setup $ git rm gitignored rm 'gitignored' $ git commit -m "test" [master cd8199d] test 1 files changed, 0 insertions(+), 1 deletions(-) delete mode 100644 gitignored $ git status # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # nothing to commit (working directory clean) $ ls -a . .. .git .gitignore tracked $ echo foo >> gitignored $ git status # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # nothing to commit (working directory clean) Now it is ignored. However, someone who clones the repository will not get the contents of `gitignored`.
git
null
null
null
null
null
open
git Include a file but have its changes untracked === I'd like to include a source file (have it delivered when someone clones a repository) in my repository but have changes to it ignored by default. `git update-index --assume-unchanged ...` doesn't work because it only applies to the local index. I want all users to have the file in question ignored by default. `.gitignore` doesn't work because if I track a file via `git add -f ..`, then changes to it are tracked. This is similar to how Subversion would work if I `svn add` ed the file then applied a `.svnignore`. Examples: $ git clone git@git:gsmith/sandbox.git snip... $ cd sandbox/ $ ls -a . .. .git .gitignore gitignored tracked $ cat .gitignore gitignored $ echo foo >> gitignored $ git status # On branch master # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: gitignored # no changes added to commit (use "git add" and/or "git commit -a") I would like this file to be ignored. $ git reset --hard HEAD HEAD is now at 34b1f3d initial setup $ git rm gitignored rm 'gitignored' $ git commit -m "test" [master cd8199d] test 1 files changed, 0 insertions(+), 1 deletions(-) delete mode 100644 gitignored $ git status # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # nothing to commit (working directory clean) $ ls -a . .. .git .gitignore tracked $ echo foo >> gitignored $ git status # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # nothing to commit (working directory clean) Now it is ignored. However, someone who clones the repository will not get the contents of `gitignored`.
0
11,430,920
07/11/2012 10:42:37
1,169,575
01/25/2012 15:52:52
157
2
Rspec Cucumber avoid repeated tests
very often I see people writing tests (specs) in both capybara and rspec. By default RSpec generates all kind of specs, actually I'm just disabling these one: config.generators do |g| g.test_framework :rspec, :view_specs => false, :request_specs => false, :routing_specs => false end end I'm doing this because I want to test views with Cucumber, am I right? Maybe there's some other spec I should disable to avoid repeated tests among the two frameworks? Thanks!
ruby-on-rails
ruby
ruby-on-rails-3
rspec
cucumber
07/12/2012 13:31:56
not a real question
Rspec Cucumber avoid repeated tests === very often I see people writing tests (specs) in both capybara and rspec. By default RSpec generates all kind of specs, actually I'm just disabling these one: config.generators do |g| g.test_framework :rspec, :view_specs => false, :request_specs => false, :routing_specs => false end end I'm doing this because I want to test views with Cucumber, am I right? Maybe there's some other spec I should disable to avoid repeated tests among the two frameworks? Thanks!
1
5,180,797
03/03/2011 12:39:05
642,977
03/03/2011 12:37:32
1
0
What is the real future of VoIP communication service?
Many people say that future of communication is dependent on mobile phone service. I also agree with this. However, Some people say that future of communication will be dominated by VoIP. Is it possible to merge these technologies.
service
voip
null
null
null
03/03/2011 17:59:25
off topic
What is the real future of VoIP communication service? === Many people say that future of communication is dependent on mobile phone service. I also agree with this. However, Some people say that future of communication will be dominated by VoIP. Is it possible to merge these technologies.
2
4,107,102
11/05/2010 14:59:33
318,747
04/16/2010 17:33:16
493
3
Is this busy waiting?
Is this loop busy waiting, I would think the wait call takes care of that. If it is, how can it be fixed to not busy wait? id = fork(); for (i = 0; i < 20; i++) { switch (id) { case 0: /* do stuff with child */ exit(0); default: { if (children>=3) { int s; wait(&s); children--; } children++; id = fork(); } } }
c
null
null
null
null
null
open
Is this busy waiting? === Is this loop busy waiting, I would think the wait call takes care of that. If it is, how can it be fixed to not busy wait? id = fork(); for (i = 0; i < 20; i++) { switch (id) { case 0: /* do stuff with child */ exit(0); default: { if (children>=3) { int s; wait(&s); children--; } children++; id = fork(); } } }
0
7,255,201
08/31/2011 09:42:36
724,949
04/26/2011 07:33:53
1
0
postgres double precision
select round(product_qty * 100) - product_qty as test, id, product_qty from stock_move where product_id=63 and state='done' and id=45058; test | id | product_qty 54.45 | 45058 | 0.55 (1 ligne) select round(product_qty * 100) - (product_qty*100) as test, id, product_qty from stock_move where product_id=63 and state='done' and id=45058; test | id | product_qty -7.105427357601e-15 | 45058 | 0.55 (1 ligne) can somebody explain me these results?
postgresql
null
null
null
null
08/31/2011 14:54:25
not a real question
postgres double precision === select round(product_qty * 100) - product_qty as test, id, product_qty from stock_move where product_id=63 and state='done' and id=45058; test | id | product_qty 54.45 | 45058 | 0.55 (1 ligne) select round(product_qty * 100) - (product_qty*100) as test, id, product_qty from stock_move where product_id=63 and state='done' and id=45058; test | id | product_qty -7.105427357601e-15 | 45058 | 0.55 (1 ligne) can somebody explain me these results?
1
1,147,353
07/18/2009 11:53:28
131,882
07/01/2009 18:25:13
52
6
Exception messages
in the alpha version of an app there will be the exception message checked for specific problems. e.g. ex.Message.Contains("String or binary data would be truncated") then a MessageBox will be displayed for the user currently i am testing on an englisch windows system. i guess: the exception message will contain strings in another languages on other windows systems(e.g. a german or thailand windows system). my question: how to ensure that internal(see above code) are only english exception messages are used ? kind regards, jeff
c#
exception
exception-handling
multilingual
null
null
open
Exception messages === in the alpha version of an app there will be the exception message checked for specific problems. e.g. ex.Message.Contains("String or binary data would be truncated") then a MessageBox will be displayed for the user currently i am testing on an englisch windows system. i guess: the exception message will contain strings in another languages on other windows systems(e.g. a german or thailand windows system). my question: how to ensure that internal(see above code) are only english exception messages are used ? kind regards, jeff
0
6,832,009
07/26/2011 14:53:33
808,261
06/21/2011 10:48:54
38
0
php framework for displaying mySQL content
Can anyone recommend a php framework for displaying mySQL database content on a website, please? I am in the process of creating an asset management database in mySQL. I would like my users to be able to input data and view output online. I am perfectly capable of writing the php to do so, but, if there is a framework that already does this, why re-invent the wheel? My web searches so far have come to nothing so I am hoping a few of you may be able to point me in the right direction. I realise that this question is quite vague - I intend to clarify myself further once I have received a few responses (hopefully helping me with correct terminology) Thanks
php
mysql
frameworks
null
null
07/27/2011 23:11:36
not constructive
php framework for displaying mySQL content === Can anyone recommend a php framework for displaying mySQL database content on a website, please? I am in the process of creating an asset management database in mySQL. I would like my users to be able to input data and view output online. I am perfectly capable of writing the php to do so, but, if there is a framework that already does this, why re-invent the wheel? My web searches so far have come to nothing so I am hoping a few of you may be able to point me in the right direction. I realise that this question is quite vague - I intend to clarify myself further once I have received a few responses (hopefully helping me with correct terminology) Thanks
4
5,316,184
03/15/2011 18:18:24
1,231,786
11/24/2010 00:57:10
225
7
Monotouch: can I use "Upgrade Current Target for iPad command"
Is it possible to use the XCode "Upgrade Current Target for iPad" command to assist in converting a Monotouch created app for the iPhone to make a "universal app"?
monotouch
null
null
null
null
null
open
Monotouch: can I use "Upgrade Current Target for iPad command" === Is it possible to use the XCode "Upgrade Current Target for iPad" command to assist in converting a Monotouch created app for the iPhone to make a "universal app"?
0
5,266,803
03/10/2011 22:44:02
172,279
09/11/2009 21:24:40
2,282
137
Having JSF spit out an HTML Search field. Doable?
I'm not a Java developer, but work with a team that is using JSF 1.2 We'd like to start using HTML 5 tags and attributes. It does not appear that JSF 1.2 supports those by default. Is there anyway to have a JSF text tag: <x:inputText> spit out an html 5 search tag: <input type="search" placeholder="blahblah" /> Right now, I'm having to let it output a regular text field and then I place inline JS after it to trigger a function that converts it client side: <input type="text"> <script> funciton here that changes type to 'search' and adds placeholder attribute</script> It works, but is a bit hacky. Is there a legitimate way to get server-side JSF to output proper HTML 5 tags?
java
jsf
html5
null
null
null
open
Having JSF spit out an HTML Search field. Doable? === I'm not a Java developer, but work with a team that is using JSF 1.2 We'd like to start using HTML 5 tags and attributes. It does not appear that JSF 1.2 supports those by default. Is there anyway to have a JSF text tag: <x:inputText> spit out an html 5 search tag: <input type="search" placeholder="blahblah" /> Right now, I'm having to let it output a regular text field and then I place inline JS after it to trigger a function that converts it client side: <input type="text"> <script> funciton here that changes type to 'search' and adds placeholder attribute</script> It works, but is a bit hacky. Is there a legitimate way to get server-side JSF to output proper HTML 5 tags?
0
1,612,984
10/23/2009 11:59:55
104,450
05/10/2009 19:00:07
76
1
How to make industry standard Destop java applications ?
I Know how to create the basic controls in swing, but coming to industry standard application developments, i lack the skills to do them. I am designing a small Java Swing application. Instead of creating a JFrame for each purpose , I would like to create controls, display them, hide them (whenever necessary ) ,everything in just one window. How can i do it ? I am a beginner. Please point me to nice web resources on the conventional ways of doing Desktop Java applications using swing .
java
swing
desktop
industry
null
07/26/2012 16:22:22
not constructive
How to make industry standard Destop java applications ? === I Know how to create the basic controls in swing, but coming to industry standard application developments, i lack the skills to do them. I am designing a small Java Swing application. Instead of creating a JFrame for each purpose , I would like to create controls, display them, hide them (whenever necessary ) ,everything in just one window. How can i do it ? I am a beginner. Please point me to nice web resources on the conventional ways of doing Desktop Java applications using swing .
4
10,570,741
05/13/2012 09:39:12
1,148,529
01/13/2012 21:16:52
113
1
howto install magento on my website
I want to install Magento on my website. I [downloaded Magento][1] from there website<br> I extracted the archive. And then uploaded the folder on my server.<br> I then went. To the Magento directory (http://www.example.nl/magento) on my website but i get this error > Internal Server Error > > The server encountered an internal error or misconfiguration and was unable to complete your request. and this > Additionally, a 404 Not Found error was encountered while trying to > use an ErrorDocument to handle the request. I tried a couple of things like editing the permissions to the Magento folder to 777,755,744 but still the same error. I then edited the `.htaccess` file and set the memory limit to `php_value memory_limit 512M` but still same error. :(. I then found a link on [system-requirements for magento][2].<br> but i don't know if my website has all of them. i then found a php script [on this page][3] that checks<br> my site if it meets all of the requirements ([direct link to the script][4]) but i get exact the same error when i go to `magento/magento-check.php` I then tried things like going via <br>`ftp://www.example.com/magento/magento-check.php`<br> but that just show the php code(noob I know). i also tried this [page][5] on installing magento on a php4 server. but when i got to the php5-cgi file i just get it to download<br> please help me and keep in mind that i am a bit of a noob when it comes to magento and such<br> thank you in advanced [magento/forum][6]<br> [magento/forum2][7] [1]: http://www.magentocommerce.com/download [2]: http://www.magentocommerce.com/system-requirements [3]: http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento [4]: http://www.magentocommerce.com/_media/magento-check.zip [5]: http://www.magentocommerce.com/knowledge-base/entry/installing-magento-on-a-php4-server [6]: http://www.magentocommerce.com/boards/viewthread/44506/ [7]: http://www.magentocommerce.com/boards/viewthread/12115/#t43123
php
apache
magento
error-handling
null
05/14/2012 07:43:52
too localized
howto install magento on my website === I want to install Magento on my website. I [downloaded Magento][1] from there website<br> I extracted the archive. And then uploaded the folder on my server.<br> I then went. To the Magento directory (http://www.example.nl/magento) on my website but i get this error > Internal Server Error > > The server encountered an internal error or misconfiguration and was unable to complete your request. and this > Additionally, a 404 Not Found error was encountered while trying to > use an ErrorDocument to handle the request. I tried a couple of things like editing the permissions to the Magento folder to 777,755,744 but still the same error. I then edited the `.htaccess` file and set the memory limit to `php_value memory_limit 512M` but still same error. :(. I then found a link on [system-requirements for magento][2].<br> but i don't know if my website has all of them. i then found a php script [on this page][3] that checks<br> my site if it meets all of the requirements ([direct link to the script][4]) but i get exact the same error when i go to `magento/magento-check.php` I then tried things like going via <br>`ftp://www.example.com/magento/magento-check.php`<br> but that just show the php code(noob I know). i also tried this [page][5] on installing magento on a php4 server. but when i got to the php5-cgi file i just get it to download<br> please help me and keep in mind that i am a bit of a noob when it comes to magento and such<br> thank you in advanced [magento/forum][6]<br> [magento/forum2][7] [1]: http://www.magentocommerce.com/download [2]: http://www.magentocommerce.com/system-requirements [3]: http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento [4]: http://www.magentocommerce.com/_media/magento-check.zip [5]: http://www.magentocommerce.com/knowledge-base/entry/installing-magento-on-a-php4-server [6]: http://www.magentocommerce.com/boards/viewthread/44506/ [7]: http://www.magentocommerce.com/boards/viewthread/12115/#t43123
3
626,558
03/09/2009 14:56:07
75,660
03/09/2009 14:56:07
1
0
Javascript for zooming and panning an image
I have a requirement in the project I am working on for a piece of javascript which will allow the user to pan over and zoom in and out of a large image. Unfortunately, my experience with javascript is limited. Does anybody know of a free script out there which would satisfy my requirements?
javascript
html
null
null
null
null
open
Javascript for zooming and panning an image === I have a requirement in the project I am working on for a piece of javascript which will allow the user to pan over and zoom in and out of a large image. Unfortunately, my experience with javascript is limited. Does anybody know of a free script out there which would satisfy my requirements?
0
9,603,893
03/07/2012 15:05:29
273,700
02/15/2010 17:55:09
300
8
How the property isCompleted of IAsyncResult is updated?
When I call a method asynchronously using the pattern BeginXxx/EndXxx I get an IAsyncResult result after calling the BeginXxx. How the property "isCompleted" (in the returning result variable) gets updated if nor the method BeginXxxx or EndXxx have any reference to the result variable? ex: // Create the delegate. AsyncMethodCaller caller = new AsyncMethodCaller(ad.TestMethod); // Initiate the asychronous call. IAsyncResult result = caller.BeginInvoke(3000, out threadId, null, null); // Poll while simulating work. while(result.IsCompleted == false) { Thread.Sleep(250); Console.Write("."); } Thanks!
c#
asp.net
asynchronous
null
null
null
open
How the property isCompleted of IAsyncResult is updated? === When I call a method asynchronously using the pattern BeginXxx/EndXxx I get an IAsyncResult result after calling the BeginXxx. How the property "isCompleted" (in the returning result variable) gets updated if nor the method BeginXxxx or EndXxx have any reference to the result variable? ex: // Create the delegate. AsyncMethodCaller caller = new AsyncMethodCaller(ad.TestMethod); // Initiate the asychronous call. IAsyncResult result = caller.BeginInvoke(3000, out threadId, null, null); // Poll while simulating work. while(result.IsCompleted == false) { Thread.Sleep(250); Console.Write("."); } Thanks!
0
3,006,470
06/09/2010 13:54:27
234,645
12/18/2009 15:47:18
2,420
144
Web Design UI initial mock up - what software to use?
When constructing an initial mock up of screens for a web application, what tools would be best to use? For starters, I'd like to avoid MS Paint and MS Visio! Ideally I'd like ones that: - Are free - Make it ***quick*** and ***easy*** to design/redesign web application UIs at a ***basic*** and ***initial*** level.
design
software-tools
null
null
null
02/21/2012 13:06:18
not constructive
Web Design UI initial mock up - what software to use? === When constructing an initial mock up of screens for a web application, what tools would be best to use? For starters, I'd like to avoid MS Paint and MS Visio! Ideally I'd like ones that: - Are free - Make it ***quick*** and ***easy*** to design/redesign web application UIs at a ***basic*** and ***initial*** level.
4
9,962,213
04/01/2012 05:47:41
1,305,860
04/01/2012 04:12:11
1
0
jquery load() can't load the js
when i use load() method to load a html page,which include a js file. after load, the html and css is loaded but the extar js file is missing. Any idea how to load the js file with the html page.
javascript
jquery
load
null
null
04/01/2012 06:06:16
not a real question
jquery load() can't load the js === when i use load() method to load a html page,which include a js file. after load, the html and css is loaded but the extar js file is missing. Any idea how to load the js file with the html page.
1
8,082,350
11/10/2011 15:57:09
84,201
03/29/2009 07:46:24
9,613
169
What mark-up would be semantically correct to make this calculator in HTML5, CSS?
What mark-up would be semantically correct to make this calculator in HTML5, CSS? ![enter image description here][1] [1]: http://i.stack.imgur.com/0tlil.jpg
html5
css3
null
null
null
11/10/2011 22:15:28
not a real question
What mark-up would be semantically correct to make this calculator in HTML5, CSS? === What mark-up would be semantically correct to make this calculator in HTML5, CSS? ![enter image description here][1] [1]: http://i.stack.imgur.com/0tlil.jpg
1
8,153,388
11/16/2011 14:38:02
1,049,611
11/16/2011 12:10:49
1
0
Need help on fast bulk SMS sending . .
Am new on this platform and can see its a place to be :) Please am working on an online platform to enable sending of Bulk SMS via my SMS gateway. All i need help on now is in the upload of the large volumes of numbers (e.g. 50,000 mobile numbers minimum), validation and display of valid and invalid numbers and the fast pushing out of this message. Is there a ready plugin or can u provide classes I can integrate. Thanks in advance
bulksms
null
null
null
null
11/16/2011 16:17:14
not a real question
Need help on fast bulk SMS sending . . === Am new on this platform and can see its a place to be :) Please am working on an online platform to enable sending of Bulk SMS via my SMS gateway. All i need help on now is in the upload of the large volumes of numbers (e.g. 50,000 mobile numbers minimum), validation and display of valid and invalid numbers and the fast pushing out of this message. Is there a ready plugin or can u provide classes I can integrate. Thanks in advance
1
9,863,244
03/25/2012 19:22:40
1,011,513
10/24/2011 19:11:21
1,269
94
Cron jobs which don't belong to users?
I have mysterious processes that run on regular intervals in a server that I inherited. My first thought was crontab is the culprit. I used the following command from [this question](http://stackoverflow.com/questions/134906/how-do-i-list-all-cron-jobs-for-all-users) given by [kyle burton](http://stackoverflow.com/users/19784/kyle-burton) for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done and found most of them but not all of them. Somehow there seem to be cron processes that don't belong to any user that I can't see with this command. I have two questions: can a cron job exist without belonging to any user (like if you just make a file and call "crontab file" will that file be associated with the user that calls the command? Can users have more than one file installed in the crontab?) and second, if so, how can I see every currently installed file that cron will run. Thanks.
php
unix
cron
crontab
null
03/26/2012 19:20:48
off topic
Cron jobs which don't belong to users? === I have mysterious processes that run on regular intervals in a server that I inherited. My first thought was crontab is the culprit. I used the following command from [this question](http://stackoverflow.com/questions/134906/how-do-i-list-all-cron-jobs-for-all-users) given by [kyle burton](http://stackoverflow.com/users/19784/kyle-burton) for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done and found most of them but not all of them. Somehow there seem to be cron processes that don't belong to any user that I can't see with this command. I have two questions: can a cron job exist without belonging to any user (like if you just make a file and call "crontab file" will that file be associated with the user that calls the command? Can users have more than one file installed in the crontab?) and second, if so, how can I see every currently installed file that cron will run. Thanks.
2
8,140,129
11/15/2011 17:01:05
1,047,991
11/15/2011 16:18:34
1
0
PHP MYSQL loop to check if LicenseID Values are contained in mysql DB
I have some troubles to find the right loop to check if some values are contained in mysql DB. I'm making a software and i want add license ID. Each User has x keys to use. Now when the user start the client , it invokes a php page that check if the Key sent in the POST method is stored in DB or not. If that key isnt store than i need to check the number of his keys. If it's > than X i'll ban him otherwise i add the new keys in the DB. I'm new with PHP and MYSQL. I wrote this code and i would know if i can improve it. <!-- language: php --> .... $user = POST METHOD $licenseID = POST METHOD .... .... $resultLic= mysql_query("SELECT id , idUser , idLicense FROM license WHERE idUser = '$user'") or die(mysql_error()); $resultNumber = mysql_num_rows($resultLic); $keyFound = '0'; // If keyfound is 1 the key is stored in DB while ($rows = mysql_fetch_array($resultLic,MYSQL_BOTH)) { //this loop check if the $licenseID is stored in DB or not for($i=0; $i< $resultNumber ; i++) { if($rows['idLicense'] === $licenseID) { //Just for the debug echo("License Found"); $keyFound = '1'; break; } //If key isn't in DB and there are less than 3 keys the new key will be store in DB if($keyfound == '0' && $resultNumber < 3){ mysql_query(Update users set ...Store $licenseID in Table) } // Else mean that the user want user another generated key (from the client) in the DB and i will be ban (It's wrote in TOS terms that they cant use the software on more than 3 different station) else { mysql_query(update users set ban ='1'.....etc) } } I know that this code seems really bad so i would know how i can improve it. Someone Could give me any advice? **Update:** I forgot to say that i choose to have 2 tables one users where is content all information about the users id , username , password etc and another table license where i get id , idUsername , idLicense (the last one store license that the software generate) Thanks
php
mysql
query
loops
while-loops
04/26/2012 12:33:28
not a real question
PHP MYSQL loop to check if LicenseID Values are contained in mysql DB === I have some troubles to find the right loop to check if some values are contained in mysql DB. I'm making a software and i want add license ID. Each User has x keys to use. Now when the user start the client , it invokes a php page that check if the Key sent in the POST method is stored in DB or not. If that key isnt store than i need to check the number of his keys. If it's > than X i'll ban him otherwise i add the new keys in the DB. I'm new with PHP and MYSQL. I wrote this code and i would know if i can improve it. <!-- language: php --> .... $user = POST METHOD $licenseID = POST METHOD .... .... $resultLic= mysql_query("SELECT id , idUser , idLicense FROM license WHERE idUser = '$user'") or die(mysql_error()); $resultNumber = mysql_num_rows($resultLic); $keyFound = '0'; // If keyfound is 1 the key is stored in DB while ($rows = mysql_fetch_array($resultLic,MYSQL_BOTH)) { //this loop check if the $licenseID is stored in DB or not for($i=0; $i< $resultNumber ; i++) { if($rows['idLicense'] === $licenseID) { //Just for the debug echo("License Found"); $keyFound = '1'; break; } //If key isn't in DB and there are less than 3 keys the new key will be store in DB if($keyfound == '0' && $resultNumber < 3){ mysql_query(Update users set ...Store $licenseID in Table) } // Else mean that the user want user another generated key (from the client) in the DB and i will be ban (It's wrote in TOS terms that they cant use the software on more than 3 different station) else { mysql_query(update users set ban ='1'.....etc) } } I know that this code seems really bad so i would know how i can improve it. Someone Could give me any advice? **Update:** I forgot to say that i choose to have 2 tables one users where is content all information about the users id , username , password etc and another table license where i get id , idUsername , idLicense (the last one store license that the software generate) Thanks
1
11,278,917
07/01/2012 01:21:20
530,825
12/04/2010 22:54:53
228
2
What may I benefit from switching my development platform to VIM, what may I lose?
When I first learned to program I learned to do so with an IDE, and that has stuck with me until recently. The last few months I have been using gedit for a web based project and while the project turned out quite well ([check it out here][1]), I felt like gedit didn't provide anything extraordinarily useful. As of now, my two favourite IDE's are Eclipse and Qt Creator. On my laptop (a Zenbook running Ubuntu) Qt Creator starts in one second and Eclipse starts in five, so performance is not an issue. So what would I lose from switching to VIM and what could I gain? [1]: http://peizo.selfip.org/signage
eclipse
vim
ubuntu
ide
qt-creator
07/01/2012 06:25:19
not constructive
What may I benefit from switching my development platform to VIM, what may I lose? === When I first learned to program I learned to do so with an IDE, and that has stuck with me until recently. The last few months I have been using gedit for a web based project and while the project turned out quite well ([check it out here][1]), I felt like gedit didn't provide anything extraordinarily useful. As of now, my two favourite IDE's are Eclipse and Qt Creator. On my laptop (a Zenbook running Ubuntu) Qt Creator starts in one second and Eclipse starts in five, so performance is not an issue. So what would I lose from switching to VIM and what could I gain? [1]: http://peizo.selfip.org/signage
4
10,129,080
04/12/2012 17:57:13
697,630
04/07/2011 21:35:31
3,828
188
Analysis and Design for Functional Programming
How do you deal with analysis and design phases when you plan to develop a system using a functional programming language like Haskell? My background is in imperative/object-oriented programming languages, and therefore, I am used to use case analysis and the use of UML to document the design of program. But the thing is that UML is inherently related to the object-oriented way of doing software. And I am intrigued about what would be the best way to develop documentation and define software designs for a system that is going to be developed using functional programming. - Would you still use [use case analysis][1] or perhaps [structured analysis and design][2] instead? - How do software architects define the high-level design of the system so that developers follow it? - What do you show to you clients or to new developers when you are supposed to present a design of the solution? - How do you document a picture of the whole thing without having first to write it all? - Is there anything comparable to [UML][3] in the functional world? [1]: http://en.wikipedia.org/wiki/Use-case_analysis [2]: http://en.wikipedia.org/wiki/Structured_Analysis_and_Design_Technique [3]: http://en.wikipedia.org/wiki/Unified_Modeling_Language
haskell
functional-programming
analysis
software-design
purely-functional
04/13/2012 04:23:10
not constructive
Analysis and Design for Functional Programming === How do you deal with analysis and design phases when you plan to develop a system using a functional programming language like Haskell? My background is in imperative/object-oriented programming languages, and therefore, I am used to use case analysis and the use of UML to document the design of program. But the thing is that UML is inherently related to the object-oriented way of doing software. And I am intrigued about what would be the best way to develop documentation and define software designs for a system that is going to be developed using functional programming. - Would you still use [use case analysis][1] or perhaps [structured analysis and design][2] instead? - How do software architects define the high-level design of the system so that developers follow it? - What do you show to you clients or to new developers when you are supposed to present a design of the solution? - How do you document a picture of the whole thing without having first to write it all? - Is there anything comparable to [UML][3] in the functional world? [1]: http://en.wikipedia.org/wiki/Use-case_analysis [2]: http://en.wikipedia.org/wiki/Structured_Analysis_and_Design_Technique [3]: http://en.wikipedia.org/wiki/Unified_Modeling_Language
4
6,198,319
06/01/2011 08:30:26
827,530
02/11/2011 06:02:56
160
10
Android: How to ignore or disable savedInstanceState?
I want to ignore or disable savedInstanceState so that the state of current activity won't save when I go to the next activity. public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); Many thanks in advanced! :)
java
android
instance
state
null
null
open
Android: How to ignore or disable savedInstanceState? === I want to ignore or disable savedInstanceState so that the state of current activity won't save when I go to the next activity. public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); Many thanks in advanced! :)
0
4,981,598
02/13/2011 00:26:15
385,730
07/07/2010 16:07:56
8
0
How To Create And Write UTF-16 Text File Using Applescript?
I'm writing an _Applescript_ to parse an _iOS Localization_ file (_/en.lproj/Localizable.strings_), translate the values and output the translation (_/fr.lproj/Localizable.strings_) to disk in _UTF-16 (Unicode)_ encoding. For some reason, the generated file has an extra space between every letter. After some digging, I found the cause of the problem in Learn AppleScript: The Comprehensive Guide to Scripting. > "If you accidently read a UTF-16 file > as MacRoman, the resulting value may > look at first glance like an ordinary > string, especially if it contains > English text. You'll quickly discover > that something is very wrong when you > try to use it, however: a common > symptom is that each visible character > in your "string" seems to have an > invisible character in front of it. > For example, reading a UTF-16 encoded > text file containing the phrase "Hello > World!" as a string produces a string > like " H e l l o W o r l d ! ", where > each " " is really an invisible ASCII > 0 character." So for example my English localization string file has: "Yes" = "Yes"; And the generated French localization string file has: " Y e s " = " O u i " ; Here is my _createFile_ method: on createFile(fileFolder, fileName) tell application "Finder" if (exists file fileName of folder fileFolder) then set the fileAccess to open for access file fileName of folder fileFolder with write permission set eof of fileAccess to 0 write ((ASCII character 254) & (ASCII character 255)) to fileAccess starting at 0 --write «data rdatFEFF» to fileAccess starting at 0 close access the fileAccess else set the filePath to make new file at fileFolder with properties {name:fileName} set the fileAccess to open for access file fileName of folder fileFolder with write permission write ((ASCII character 254) & (ASCII character 255)) to fileAccess starting at 0 --write «data rdatFEFF» to fileAccess starting at 0 close access the fileAccess end if return file fileName of folder fileFolder as text end tell end createFile And here is my _writeFile_ method: on writeFile(filePath, newLine) tell application "Finder" try set targetFileAccess to open for access file filePath with write permission write newLine to targetFileAccess as Unicode text starting at eof close access the targetFileAccess return true on error try close access file filePath end try return false end try end tell end writeFile Any idea what I'm doing wrong?
ios
applescript
null
null
null
null
open
How To Create And Write UTF-16 Text File Using Applescript? === I'm writing an _Applescript_ to parse an _iOS Localization_ file (_/en.lproj/Localizable.strings_), translate the values and output the translation (_/fr.lproj/Localizable.strings_) to disk in _UTF-16 (Unicode)_ encoding. For some reason, the generated file has an extra space between every letter. After some digging, I found the cause of the problem in Learn AppleScript: The Comprehensive Guide to Scripting. > "If you accidently read a UTF-16 file > as MacRoman, the resulting value may > look at first glance like an ordinary > string, especially if it contains > English text. You'll quickly discover > that something is very wrong when you > try to use it, however: a common > symptom is that each visible character > in your "string" seems to have an > invisible character in front of it. > For example, reading a UTF-16 encoded > text file containing the phrase "Hello > World!" as a string produces a string > like " H e l l o W o r l d ! ", where > each " " is really an invisible ASCII > 0 character." So for example my English localization string file has: "Yes" = "Yes"; And the generated French localization string file has: " Y e s " = " O u i " ; Here is my _createFile_ method: on createFile(fileFolder, fileName) tell application "Finder" if (exists file fileName of folder fileFolder) then set the fileAccess to open for access file fileName of folder fileFolder with write permission set eof of fileAccess to 0 write ((ASCII character 254) & (ASCII character 255)) to fileAccess starting at 0 --write «data rdatFEFF» to fileAccess starting at 0 close access the fileAccess else set the filePath to make new file at fileFolder with properties {name:fileName} set the fileAccess to open for access file fileName of folder fileFolder with write permission write ((ASCII character 254) & (ASCII character 255)) to fileAccess starting at 0 --write «data rdatFEFF» to fileAccess starting at 0 close access the fileAccess end if return file fileName of folder fileFolder as text end tell end createFile And here is my _writeFile_ method: on writeFile(filePath, newLine) tell application "Finder" try set targetFileAccess to open for access file filePath with write permission write newLine to targetFileAccess as Unicode text starting at eof close access the targetFileAccess return true on error try close access file filePath end try return false end try end tell end writeFile Any idea what I'm doing wrong?
0
5,390,569
03/22/2011 11:36:59
367,271
06/15/2010 12:54:26
21
2
Dynamically allocating and destroying mutexes?
I have an application that's built on top of Eventlet. I'm trying to write a decent decorator for synchronizing calls to certain methods across threads. The decorator currently looks something like this: _semaphores_semaphore = semaphore.Semaphore() _semaphores = {} def synchronized(name): def wrap(f): def inner(*args, **kwargs): # Grab the lock protecting _semaphores. with _semaphores_semaphore: # If the named semaphore does not yet exist, create it. if name not in _semaphores: _semaphores[name] = semaphore.Semaphore() sem = _semaphores[name] with sem: return f(*args, **kwargs) This works fine, and looks nice and thread safe to me, although this whole thread safety and locking business might be a bit rusty for me. The problem is that a specific, existing use of semaphores elsewhere in the application, which I'm wanting to convert to using this decorator, creates these semaphores on the fly: Based on user input, it has to create a file. It checks in a dict whether it already has a semaphore for this file, if not, it creates one, and locks it. Once it's done and has released the lock, it checks if it's been locked again (by another process in the mean time), and if not, it deletes the semaphore. This code is written with the assumption of green threads and is safe in that context, but if I want to convert it to use my decorator, and this is what I can't work out. If I don't care about cleaning up the possibly-never-to-be-used-again semaphores (there could be hundreds of thousands of these), I'm fine. If I do want to clean them up, I'm not sure what to do. To delete the semaphore, it seems obvious that I need to be holding the _semaphores_semaphore, since I'm manipulating the _semaphores dict, but I have to do something with the specific semaphore, too, but everything I can think of seems to be racy: * While inside the "with sem:" block, I could grab the _semaphores_semaphore and sem from _semaphores. However, other threads might be blocked waiting for it (at "with sem:"), and if a new thread comes along wanting to touch the same resource, it will not find the same semaphore in _semaphores, but instead create a new one => fail. I could improve this slightly by checking the balance of sem to see if another thread is already waiting for me to release it. If so, leave it alone, if not, delete it. This way, the last thread waiting to act on the resource will delete it. However, if a thread has just left the "with _semaphores_semaphore:" block, but hasn't yet made it to "with sem:", I have the same problem as before => fail. It feels like I'm missing something obvious, but I can't work out what it is.
python
multithreading
locking
null
null
null
open
Dynamically allocating and destroying mutexes? === I have an application that's built on top of Eventlet. I'm trying to write a decent decorator for synchronizing calls to certain methods across threads. The decorator currently looks something like this: _semaphores_semaphore = semaphore.Semaphore() _semaphores = {} def synchronized(name): def wrap(f): def inner(*args, **kwargs): # Grab the lock protecting _semaphores. with _semaphores_semaphore: # If the named semaphore does not yet exist, create it. if name not in _semaphores: _semaphores[name] = semaphore.Semaphore() sem = _semaphores[name] with sem: return f(*args, **kwargs) This works fine, and looks nice and thread safe to me, although this whole thread safety and locking business might be a bit rusty for me. The problem is that a specific, existing use of semaphores elsewhere in the application, which I'm wanting to convert to using this decorator, creates these semaphores on the fly: Based on user input, it has to create a file. It checks in a dict whether it already has a semaphore for this file, if not, it creates one, and locks it. Once it's done and has released the lock, it checks if it's been locked again (by another process in the mean time), and if not, it deletes the semaphore. This code is written with the assumption of green threads and is safe in that context, but if I want to convert it to use my decorator, and this is what I can't work out. If I don't care about cleaning up the possibly-never-to-be-used-again semaphores (there could be hundreds of thousands of these), I'm fine. If I do want to clean them up, I'm not sure what to do. To delete the semaphore, it seems obvious that I need to be holding the _semaphores_semaphore, since I'm manipulating the _semaphores dict, but I have to do something with the specific semaphore, too, but everything I can think of seems to be racy: * While inside the "with sem:" block, I could grab the _semaphores_semaphore and sem from _semaphores. However, other threads might be blocked waiting for it (at "with sem:"), and if a new thread comes along wanting to touch the same resource, it will not find the same semaphore in _semaphores, but instead create a new one => fail. I could improve this slightly by checking the balance of sem to see if another thread is already waiting for me to release it. If so, leave it alone, if not, delete it. This way, the last thread waiting to act on the resource will delete it. However, if a thread has just left the "with _semaphores_semaphore:" block, but hasn't yet made it to "with sem:", I have the same problem as before => fail. It feels like I'm missing something obvious, but I can't work out what it is.
0
6,190,864
05/31/2011 16:50:47
767,073
05/24/2011 04:13:38
43
0
extract meaning of a word in C#
I m doing a project which invoves extracting the semantics of a word. While doing some resaerch I found out it's better to get Synonyms of a word rather than trying to extract semantics. What is the best way of doing this. I only need to get the synonym of a word. Please help.
c#
synonym
null
null
null
05/31/2011 16:57:53
not a real question
extract meaning of a word in C# === I m doing a project which invoves extracting the semantics of a word. While doing some resaerch I found out it's better to get Synonyms of a word rather than trying to extract semantics. What is the best way of doing this. I only need to get the synonym of a word. Please help.
1
6,684,943
07/13/2011 20:06:17
843,444
07/13/2011 20:06:17
1
0
Interbase Ext. Not Working?
Installed Apache 2.2.19 and PHP 5.3.6 When I uncommented the extension for the php_interbase.dll apache breaks. The dll is in the php/ext/ path and is pointing to it correctly. the extension_dir directive points to the same path and other extensions work fine. Apache Error=httpd.pid overwritten -- Unclean shutdown of previous Apache run? Any help would be appreciated
php
windows
apache
null
null
null
open
Interbase Ext. Not Working? === Installed Apache 2.2.19 and PHP 5.3.6 When I uncommented the extension for the php_interbase.dll apache breaks. The dll is in the php/ext/ path and is pointing to it correctly. the extension_dir directive points to the same path and other extensions work fine. Apache Error=httpd.pid overwritten -- Unclean shutdown of previous Apache run? Any help would be appreciated
0
6,278,718
06/08/2011 12:31:14
696,783
11/04/2009 13:05:28
56
1
Insert html tags in mysql table with C#
i have this question about mysql data in a table... how can i insert an html text with tags, text, etc in a mysql table? What datatype do i need to store something like that and what do i need to encode or whatever i need to perform the insert? I'm using c# 4.0 and mysql connector 6.3.6 Thanks!
mysql
c#-4.0
html-tag
null
null
null
open
Insert html tags in mysql table with C# === i have this question about mysql data in a table... how can i insert an html text with tags, text, etc in a mysql table? What datatype do i need to store something like that and what do i need to encode or whatever i need to perform the insert? I'm using c# 4.0 and mysql connector 6.3.6 Thanks!
0