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
11,722,715
07/30/2012 13:36:54
1,556,698
07/27/2012 05:19:07
1
0
How to click a item by using label on a screen using Python
I have screen contains some labels wanted to click perticluaar item on screen by label using python
python
null
null
null
null
07/30/2012 13:42:16
not a real question
How to click a item by using label on a screen using Python === I have screen contains some labels wanted to click perticluaar item on screen by label using python
1
8,139,400
11/15/2011 16:10:49
84,201
03/29/2009 07:46:24
9,471
169
Is there a place to upload a CSS file and then 2 people can work on the file at same time. without having local capy?
Is there a place to upload a CSS file and then 2 people can work on the file at same time. without having local copy? And nothing should overwritten and missed. 2 people should be able to work on same file at same time from remote places. and later change from both should make the final css. What could be easiest and free way to do this. Developers are not known to Version control yet.
css
null
null
null
null
11/17/2011 15:43:33
off topic
Is there a place to upload a CSS file and then 2 people can work on the file at same time. without having local capy? === Is there a place to upload a CSS file and then 2 people can work on the file at same time. without having local copy? And nothing should overwritten and missed. 2 people should be able to work on same file at same time from remote places. and later change from both should make the final css. What could be easiest and free way to do this. Developers are not known to Version control yet.
2
6,315,122
06/11/2011 09:19:17
465,751
10/04/2010 11:08:59
56
2
[android] How to get added and removed file using Media scanner or other android API?
When we remove or add any file(even text, document or non-media files) on sdcard in android or even after transfer data file on PC though USB mode, media scanner get started. I want to know which files are removed or added in array or one at a time after media scanner is done or in between...Can it be done using MediaScanner API or other android API? I want to update list based on the added file or removed file. Please guide me.
android
media
null
null
null
null
open
[android] How to get added and removed file using Media scanner or other android API? === When we remove or add any file(even text, document or non-media files) on sdcard in android or even after transfer data file on PC though USB mode, media scanner get started. I want to know which files are removed or added in array or one at a time after media scanner is done or in between...Can it be done using MediaScanner API or other android API? I want to update list based on the added file or removed file. Please guide me.
0
7,058,206
08/14/2011 16:47:56
883,118
08/07/2011 21:00:07
1
0
COM Access from a Silverlight application?
At my company we have produced a piece of software that a lot of people want to use in their own applications. As such, we have a set of COM commands that can be called from managed code to load in files, get results etc. A customer is interested in creating their own Silverlight-based application/website which would interface with our software via COM. Is it possible, if say our software was installed on their server along with their Silverlight application that communication could take place? I'm finding the literature online about COM with Silverlight pretty confusing and could use a point in the right direction. What steps are required to set up say a basic example showing that communication is at least possible? Thanks in advance guys.
silverlight
com
null
null
null
null
open
COM Access from a Silverlight application? === At my company we have produced a piece of software that a lot of people want to use in their own applications. As such, we have a set of COM commands that can be called from managed code to load in files, get results etc. A customer is interested in creating their own Silverlight-based application/website which would interface with our software via COM. Is it possible, if say our software was installed on their server along with their Silverlight application that communication could take place? I'm finding the literature online about COM with Silverlight pretty confusing and could use a point in the right direction. What steps are required to set up say a basic example showing that communication is at least possible? Thanks in advance guys.
0
10,596,860
05/15/2012 08:27:36
1,395,636
05/15/2012 08:22:55
1
0
Google Analytics for Chrome Web Store App
I have an app on Chrome Web Store and receive two types of traffic from them: 1. Chrome/Chrome as Source/Medium 2. Chrome-NTP-Icon/(not set) as Source/Medium I couldn't find out what the difference is between the two types. The NTP stands for New Tab Page. Thanks!
google-analytics
chrome-web-store
null
null
null
05/16/2012 21:03:14
not a real question
Google Analytics for Chrome Web Store App === I have an app on Chrome Web Store and receive two types of traffic from them: 1. Chrome/Chrome as Source/Medium 2. Chrome-NTP-Icon/(not set) as Source/Medium I couldn't find out what the difference is between the two types. The NTP stands for New Tab Page. Thanks!
1
10,693,639
05/21/2012 22:47:38
1,407,241
05/21/2012 07:00:39
1
0
Excel 2010 - Payment Plan
I am attempting to set up a payment plan template in Excel 2010 whereby there is no interest accrued or calculated but the payments can be weekly, bi-weekly, monthly and bi-monthly over a period of no more than 1 year. The payment amount is also fixed i.e. Invoice is $1,000 and the client will be paying $50 bi-weekly from the date of the invoice. I wish to populate the table with the payment due dates, payment made and balance remaining. Is this at all feasible?
excel
xlsm
null
null
null
05/23/2012 19:01:35
off topic
Excel 2010 - Payment Plan === I am attempting to set up a payment plan template in Excel 2010 whereby there is no interest accrued or calculated but the payments can be weekly, bi-weekly, monthly and bi-monthly over a period of no more than 1 year. The payment amount is also fixed i.e. Invoice is $1,000 and the client will be paying $50 bi-weekly from the date of the invoice. I wish to populate the table with the payment due dates, payment made and balance remaining. Is this at all feasible?
2
9,657,970
03/11/2012 19:04:14
891,082
08/12/2011 03:33:07
13
0
Heroku: SSL is not enabled
So my Rails (3.2.1) app was working fine on Heroku. Then I set config.force_ssl = true in my production config file, upon opening the file, I now got the "SSL is not enabled" error. I thought Heroku allows you to piggyback their ssl certs, but it is not working for me. What I've tried: a. using "heroku addons:add piggyback_ssl (fails, as the add-on is now standard..) b. validating my account (shouldn't be neccessary, but I tried it anyway) c. changing my config.force_ssl = false, but my app still tries to use SSL... (sorry for the poor layout, but I really don't know how to make even lists work...)
ssl
heroku
null
null
null
null
open
Heroku: SSL is not enabled === So my Rails (3.2.1) app was working fine on Heroku. Then I set config.force_ssl = true in my production config file, upon opening the file, I now got the "SSL is not enabled" error. I thought Heroku allows you to piggyback their ssl certs, but it is not working for me. What I've tried: a. using "heroku addons:add piggyback_ssl (fails, as the add-on is now standard..) b. validating my account (shouldn't be neccessary, but I tried it anyway) c. changing my config.force_ssl = false, but my app still tries to use SSL... (sorry for the poor layout, but I really don't know how to make even lists work...)
0
9,380,901
02/21/2012 16:10:05
357,764
06/03/2010 17:37:50
109
9
Exception adding element to observablecollection property of dynamic variable
I'm implementing a flexible processor to dynamically create some data via a template approach. Everything working well until... I need to add elements to an observablecollection<item> and I'm referencing the object containing the collection as a dynamic. So I have this: dynamic componentItem = Activator.CreateInstance(targetType); targetType (UxBillingLineItem) contains this property which is initialized in the default constructor: public ObservableCollection<UxBillingLineItem> ComponentServices { get; set; } (The nesting is deliberate) I create an element to add to this collection: object comp = Activator.CreateInstance(targetType); Then I do this to add it: componentItem.ComponentServices.Add(comp); But I get this exception: "The best overloaded method match for 'System.Collections.ObjectModel.Collection[UxBillingLineItem].Add(UxBillingLineItem)' has some invalid arguments" (pretend those square brackets are less-than/greater-than characters..)
dynamic
observablecollection
null
null
null
null
open
Exception adding element to observablecollection property of dynamic variable === I'm implementing a flexible processor to dynamically create some data via a template approach. Everything working well until... I need to add elements to an observablecollection<item> and I'm referencing the object containing the collection as a dynamic. So I have this: dynamic componentItem = Activator.CreateInstance(targetType); targetType (UxBillingLineItem) contains this property which is initialized in the default constructor: public ObservableCollection<UxBillingLineItem> ComponentServices { get; set; } (The nesting is deliberate) I create an element to add to this collection: object comp = Activator.CreateInstance(targetType); Then I do this to add it: componentItem.ComponentServices.Add(comp); But I get this exception: "The best overloaded method match for 'System.Collections.ObjectModel.Collection[UxBillingLineItem].Add(UxBillingLineItem)' has some invalid arguments" (pretend those square brackets are less-than/greater-than characters..)
0
5,002,675
02/15/2011 10:47:34
617,606
02/15/2011 10:39:32
1
0
Split a string that taking string and integer values
I want to split a string that taking both string and integer values like (Cmp_12). I want to use them in Separately.
javascript
asp.net
vb.net
sql-server-2005
null
null
open
Split a string that taking string and integer values === I want to split a string that taking both string and integer values like (Cmp_12). I want to use them in Separately.
0
6,642,595
07/10/2011 17:20:56
837,814
07/10/2011 17:20:56
1
0
changing component properties at runtime causing issues?
I have a TFNN neural network component that works exactly as expected at runtime and it works as expected. If i change the properties at runtime however, i get an exception error if the property exceeds that initial property at design time. What is the difference in the way delphi handles componenets at design time and run time?
delphi
exception
properties
components
null
07/10/2011 18:37:58
not a real question
changing component properties at runtime causing issues? === I have a TFNN neural network component that works exactly as expected at runtime and it works as expected. If i change the properties at runtime however, i get an exception error if the property exceeds that initial property at design time. What is the difference in the way delphi handles componenets at design time and run time?
1
7,025,336
08/11/2011 11:50:46
527,142
12/01/2010 20:43:33
136
4
Java SecurityManager
I just tried to use an empty Security File. Although, System.exit(0); does work. Is there a way to eliminate this? Thanks guys!
java
null
null
null
null
08/11/2011 12:27:06
not a real question
Java SecurityManager === I just tried to use an empty Security File. Although, System.exit(0); does work. Is there a way to eliminate this? Thanks guys!
1
7,078,826
08/16/2011 13:19:49
769,646
05/25/2011 13:20:24
1
0
how i can handle null exception in the next linq query ? "i am new in linq and mvc"
rows = (from Driver in _repository.GetDrivers(String.Empty, sidx, sord, page - 1, rows) join DC in context.tbl_DriversCars on Driver.DriverID equals DC.DriverID into j1 from j2 in j1.DefaultIfEmpty() join o in context.tbl_Cars on j2.CarID equals o.CarID into j3 from j4 in j3.DefaultIfEmpty() join DS in context.tbl_DriverShifts on Driver.DriverID equals DS.DriverID into j5 from j6 in j5.DefaultIfEmpty() select new { //row id id = Driver.DriverID, //table of cells values cell = new string[] { Driver.DriverID.ToString(), (Driver.F_Name+" "+Driver.M_Name+" " +Driver.L_Name), Driver.age.ToString(), Driver.BirthDate.ToString(), Driver.NationalityID.ToString(), Driver.InstitutionStartDate.ToString(), Driver.InstitutionEndDate.ToString(), Driver.LicenseStartDate.ToString(), Driver.LicenseEndDate.ToString(), Driver.MobileNo.ToString(), Driver.Address1.ToString(), Driver.Address2.ToString(), Driver.Telephone.ToString(), //j6.DriverShiftID.ToString(), j6.ShiftID.ToString(), j4.CarModel.Last().ToString()+" "+j4.CarModelYear.ToShortDateString()//, //"["+ Driver.tbl_DriversCars.CarTypeID.ToString()+"]"+ Car.tbl_CarType.CarTypeName_EN, //"["+ Car.tbl_CarType.CarTypeID.ToString()+"]"+ Car.tbl_CarType.CarTypeName_AR, //Car.CarModelYear.ToString(), //Car.ChaseNumber.ToString(), //Car.LicenseExpirationDate.ToShortDateString() } } ).ToArray()
linq
mvc
null
null
null
08/16/2011 13:26:21
not a real question
how i can handle null exception in the next linq query ? "i am new in linq and mvc" === rows = (from Driver in _repository.GetDrivers(String.Empty, sidx, sord, page - 1, rows) join DC in context.tbl_DriversCars on Driver.DriverID equals DC.DriverID into j1 from j2 in j1.DefaultIfEmpty() join o in context.tbl_Cars on j2.CarID equals o.CarID into j3 from j4 in j3.DefaultIfEmpty() join DS in context.tbl_DriverShifts on Driver.DriverID equals DS.DriverID into j5 from j6 in j5.DefaultIfEmpty() select new { //row id id = Driver.DriverID, //table of cells values cell = new string[] { Driver.DriverID.ToString(), (Driver.F_Name+" "+Driver.M_Name+" " +Driver.L_Name), Driver.age.ToString(), Driver.BirthDate.ToString(), Driver.NationalityID.ToString(), Driver.InstitutionStartDate.ToString(), Driver.InstitutionEndDate.ToString(), Driver.LicenseStartDate.ToString(), Driver.LicenseEndDate.ToString(), Driver.MobileNo.ToString(), Driver.Address1.ToString(), Driver.Address2.ToString(), Driver.Telephone.ToString(), //j6.DriverShiftID.ToString(), j6.ShiftID.ToString(), j4.CarModel.Last().ToString()+" "+j4.CarModelYear.ToShortDateString()//, //"["+ Driver.tbl_DriversCars.CarTypeID.ToString()+"]"+ Car.tbl_CarType.CarTypeName_EN, //"["+ Car.tbl_CarType.CarTypeID.ToString()+"]"+ Car.tbl_CarType.CarTypeName_AR, //Car.CarModelYear.ToString(), //Car.ChaseNumber.ToString(), //Car.LicenseExpirationDate.ToShortDateString() } } ).ToArray()
1
2,600,900
04/08/2010 14:51:21
312,004
04/08/2010 14:51:21
1
0
How can I get Symbolic-Name of an Osgi bundle which is using one of my exported packages ?
Inside one of my implementation libraries I want to know from which user library request is coming from? Bundle A ClientCode -- > ServiceInterface Bundle B ClientCode -- > ServiceInterface Bundle C ServiceInterface ServiceImpl. And those interfaces are resolved by one of impl. bundles (Bundle C). Inside that bundle I want to know from which bundle request is coming from (A or B)? Thanks.
osgi
bundle
null
null
null
null
open
How can I get Symbolic-Name of an Osgi bundle which is using one of my exported packages ? === Inside one of my implementation libraries I want to know from which user library request is coming from? Bundle A ClientCode -- > ServiceInterface Bundle B ClientCode -- > ServiceInterface Bundle C ServiceInterface ServiceImpl. And those interfaces are resolved by one of impl. bundles (Bundle C). Inside that bundle I want to know from which bundle request is coming from (A or B)? Thanks.
0
3,103,008
06/23/2010 15:18:39
374,380
06/23/2010 15:18:39
1
0
CPSchedulePowerUpAtDate on iOS iPhone SDK 4.0?
what's the equivalent of CPSchedulePowerUpAtDate on the iOS 4.0? In iPhone OS 3.1.3 I could use it. I'm getting this error: dyld: lazy symbol binding failed: Symbol not found: _CPSchedulePowerUpAtDate Referenced from: /Applications/AppABC.app/AppABC Expected in: /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport dyld: Symbol not found: _CPSchedulePowerUpAtDate Referenced from: /Applications/AppABC.app/AppABC Expected in: /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport (yes, it's a private framework, but I'm not programming for the appstore.) Thanks!
iphone
sdk
4.0
ios
null
null
open
CPSchedulePowerUpAtDate on iOS iPhone SDK 4.0? === what's the equivalent of CPSchedulePowerUpAtDate on the iOS 4.0? In iPhone OS 3.1.3 I could use it. I'm getting this error: dyld: lazy symbol binding failed: Symbol not found: _CPSchedulePowerUpAtDate Referenced from: /Applications/AppABC.app/AppABC Expected in: /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport dyld: Symbol not found: _CPSchedulePowerUpAtDate Referenced from: /Applications/AppABC.app/AppABC Expected in: /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport (yes, it's a private framework, but I'm not programming for the appstore.) Thanks!
0
10,021,018
04/05/2012 00:09:13
1,267,547
03/13/2012 21:14:10
47
0
check certain url in javascript?
how can i add something in javascript that will check the website url of someone on a website and then redirect to a certain page on the website, if a match is found? for example... the string we want to check for, will be `mydirectory`, so if someone went to `mysite.com/mydirectory/anyfile.php` or even `mysite.com/mydirectory/index.php` javascript would then redirect their page / url to `mysite.com/index.php` because it has `mydirectory` in the url, how can i do that using javascript?
javascript
javascript-events
null
null
null
null
open
check certain url in javascript? === how can i add something in javascript that will check the website url of someone on a website and then redirect to a certain page on the website, if a match is found? for example... the string we want to check for, will be `mydirectory`, so if someone went to `mysite.com/mydirectory/anyfile.php` or even `mysite.com/mydirectory/index.php` javascript would then redirect their page / url to `mysite.com/index.php` because it has `mydirectory` in the url, how can i do that using javascript?
0
3,098,209
06/23/2010 00:46:24
273,812
02/15/2010 20:54:25
263
0
How to find the no of elements in an string array (the string is passed to a function).
#include<iostream> #include<string> using namespace std; class Prerequisites { public: void orderClasses(string* Input); }; void Prerequisites::orderClasses(string* Input) { // Need to find the length of the array Input } int main() { Prerequisites A; string classes[]={"CSE121: CSE110", "CSE110:", "MATH122:" }; A.orderClasses(classes); } I need to find the length of the array classes[] in the methos orderClasses. I cannot alter the signature of the method orderClasses ! That is a requirement.
c++
string
null
null
null
null
open
How to find the no of elements in an string array (the string is passed to a function). === #include<iostream> #include<string> using namespace std; class Prerequisites { public: void orderClasses(string* Input); }; void Prerequisites::orderClasses(string* Input) { // Need to find the length of the array Input } int main() { Prerequisites A; string classes[]={"CSE121: CSE110", "CSE110:", "MATH122:" }; A.orderClasses(classes); } I need to find the length of the array classes[] in the methos orderClasses. I cannot alter the signature of the method orderClasses ! That is a requirement.
0
7,286,581
09/02/2011 16:35:37
925,100
09/02/2011 10:46:40
3
0
Insert doesn't work? Why?
The database has opened, and the table has created. But I can't Insert record whit this: var sqlinsert=dbconn.createStatement('INSERT INTO "quicklink" ("name","href") VALUES (:name,:href)'); sqlinsert.params.name = "Something"; sqlinsert.params.href = "URL"; Why? What is the problem with it?
javascript
firefox-addon
null
null
null
09/02/2011 17:11:16
not a real question
Insert doesn't work? Why? === The database has opened, and the table has created. But I can't Insert record whit this: var sqlinsert=dbconn.createStatement('INSERT INTO "quicklink" ("name","href") VALUES (:name,:href)'); sqlinsert.params.name = "Something"; sqlinsert.params.href = "URL"; Why? What is the problem with it?
1
8,181,374
11/18/2011 11:04:08
1,053,626
11/18/2011 10:52:31
1
0
Front-End Live editing (HTML/CSS)
A while back I came across a tool where you could see HTML/CSS (maybe JS?) changes without refreshing your browser. Does anyone know the name of this tool? I've looked through the Firebug settings and been searching the web for a while but I'm unable to find what I am looking for.
html
css
front-end
null
null
11/22/2011 08:00:54
off topic
Front-End Live editing (HTML/CSS) === A while back I came across a tool where you could see HTML/CSS (maybe JS?) changes without refreshing your browser. Does anyone know the name of this tool? I've looked through the Firebug settings and been searching the web for a while but I'm unable to find what I am looking for.
2
9,153,140
02/05/2012 21:19:57
1,191,153
02/05/2012 21:08:13
1
0
Exception handler on linux
I'm trying to get my application to make a save when some error(segmentation faults) occurs. I already have the code working for Windows, but I'm having trouble making it work on Linux. Windows version: <code> EXCEPTION_DISPOSITION __cdecl _SEHHandler(struct _EXCEPTION_RECORD *ExceptionRecord, void* EstablisherFrame, struct _CONTEXT *ContextRecord, void* DispatcherContext) { save(); } </code> Sorry if I did something wrong, I'm new here. Thanks, Kraup.
segmentation-fault
null
null
null
null
02/06/2012 15:53:43
not a real question
Exception handler on linux === I'm trying to get my application to make a save when some error(segmentation faults) occurs. I already have the code working for Windows, but I'm having trouble making it work on Linux. Windows version: <code> EXCEPTION_DISPOSITION __cdecl _SEHHandler(struct _EXCEPTION_RECORD *ExceptionRecord, void* EstablisherFrame, struct _CONTEXT *ContextRecord, void* DispatcherContext) { save(); } </code> Sorry if I did something wrong, I'm new here. Thanks, Kraup.
1
4,927,258
02/07/2011 22:12:39
558,386
12/30/2010 14:47:55
20
2
Amazon Account?
How do I find out the account or email address associated with an Amazon S3 access key id? I need to find the secret access key, but everyone that uses it has the secret memorized by their computer, and no one remembers who set it up originally. Thanks!
amazon-s3
null
null
null
null
02/09/2011 20:43:17
off topic
Amazon Account? === How do I find out the account or email address associated with an Amazon S3 access key id? I need to find the secret access key, but everyone that uses it has the secret memorized by their computer, and no one remembers who set it up originally. Thanks!
2
849,897
05/11/2009 20:19:06
15,691
09/17/2008 11:59:19
171
12
Can Rails Migrations be used to convert data?
I'm trying to convert a column in my Rails app, for arguments sake let's pretend I'm trying to change the `age` column in my `users` table to a string representation rather than an int. In my migration I have this; def.self up add_column :users, :age_text, :string users = User.find(:all) users.each do |u| u.age_text = convert_to_text(u.age) u.save end end def self.convert_to_text(number) #code here to convert 1 to 'one' etc end But it doesn't seem to be working, is what I'm attempting here even possible with migrations?
ruby-on-rails
ruby
migration
null
null
null
open
Can Rails Migrations be used to convert data? === I'm trying to convert a column in my Rails app, for arguments sake let's pretend I'm trying to change the `age` column in my `users` table to a string representation rather than an int. In my migration I have this; def.self up add_column :users, :age_text, :string users = User.find(:all) users.each do |u| u.age_text = convert_to_text(u.age) u.save end end def self.convert_to_text(number) #code here to convert 1 to 'one' etc end But it doesn't seem to be working, is what I'm attempting here even possible with migrations?
0
7,876,259
10/24/2011 13:21:44
833,395
07/07/2011 11:16:56
98
10
Could not find binary file of a framework?
I have one project. In that project a Private Framework is Included. Actually in XCode I can only see it's Header file. I want to see its binary file. I am using XCode 4.2 compatible with ios 5.0 simulator. How can I find the path of its binary file.....
iphone
objective-c
xcode
cocoa-touch
ios5
null
open
Could not find binary file of a framework? === I have one project. In that project a Private Framework is Included. Actually in XCode I can only see it's Header file. I want to see its binary file. I am using XCode 4.2 compatible with ios 5.0 simulator. How can I find the path of its binary file.....
0
9,945,657
03/30/2012 15:09:36
1,109,024
12/21/2011 02:36:05
94
27
What is the best way to display a category page instead of product page in magento?
When a user navigates to certain products i would like to display the category instead of the displaying the product, but without doing a reidrect. So user goes to `www.example.com/kids-toys/pink_bike.html` i would like the page to display exactly like `www.example.com/kids-toys/` but without doing a redirect, I would like to use the targetPath in the Url Rewrites to go to the category instead of the product. For example what would be the cleanest way to modify the targetPath so that instead of going `'catalog/product/view/id/221'` it goes to `'catalog/category/view/id/13'`. Is there a specific event i could call to modify the targetPath before it is being dispatched. Or maybe someone could suggest another way of accomplishing this..
magento
null
null
null
null
05/24/2012 12:17:32
not constructive
What is the best way to display a category page instead of product page in magento? === When a user navigates to certain products i would like to display the category instead of the displaying the product, but without doing a reidrect. So user goes to `www.example.com/kids-toys/pink_bike.html` i would like the page to display exactly like `www.example.com/kids-toys/` but without doing a redirect, I would like to use the targetPath in the Url Rewrites to go to the category instead of the product. For example what would be the cleanest way to modify the targetPath so that instead of going `'catalog/product/view/id/221'` it goes to `'catalog/category/view/id/13'`. Is there a specific event i could call to modify the targetPath before it is being dispatched. Or maybe someone could suggest another way of accomplishing this..
4
8,888,905
01/17/2012 02:18:12
1,152,941
01/17/2012 00:46:19
1
0
reading and writing information from console using thread
I try to write an application , in which one thread reads information from console and another thread prints the same information back to console.
c#
java
c++
c
vb
01/17/2012 03:21:35
not a real question
reading and writing information from console using thread === I try to write an application , in which one thread reads information from console and another thread prints the same information back to console.
1
1,056,672
06/29/2009 05:17:38
121,793
06/12/2009 06:05:21
33
1
How to model this[Networks, details in post] in database for efficiency and ease of use?
At linkedin, when you visit someones profile you can see how you are connected to them. I believe that linkedin shows upto 3rd level connections if not more, something like shabda -> Foo user, bar user, baz user -> Joel's connection -> Joel How can I represent this in the database. If I model as, <pre> User Id PK Name Char Connection User1 FK User2 FK </pre> Then to find the network, three levels deep, I need to get all my connection, their connections, and their connections, and then see if the current user is there. This obviously would be very inefficient with DB of any size, and probably clunky to work with as well. Since, on linked in I can see this network, on any profile I visit, I don't think this is precalculated either. The other thing which comes to my mind is probably this is best not stored in a relational DB, but then what would be the best way to store and retrieve it?
database
data-modelling
null
null
null
null
open
How to model this[Networks, details in post] in database for efficiency and ease of use? === At linkedin, when you visit someones profile you can see how you are connected to them. I believe that linkedin shows upto 3rd level connections if not more, something like shabda -> Foo user, bar user, baz user -> Joel's connection -> Joel How can I represent this in the database. If I model as, <pre> User Id PK Name Char Connection User1 FK User2 FK </pre> Then to find the network, three levels deep, I need to get all my connection, their connections, and their connections, and then see if the current user is there. This obviously would be very inefficient with DB of any size, and probably clunky to work with as well. Since, on linked in I can see this network, on any profile I visit, I don't think this is precalculated either. The other thing which comes to my mind is probably this is best not stored in a relational DB, but then what would be the best way to store and retrieve it?
0
4,774,522
01/23/2011 15:13:39
522,962
11/28/2010 13:22:57
95
0
need to speed up my database or query somehow
I have a left join statement on 2 tables: tbl1 has about 1 million records and tbl2 has about 20 million. The query takes about 9 seconds to execute. I have indexes on both but something doesn't seem right given how long queries take. Here is my select statement: EXPLAIN SELECT * FROM (SELECT tbl1.id, tbl1.name, tbl2.addr FROM tbl1 LEFT JOIN tbl2 ON tbl2.id = tbl1.id WHERE tbl1.name LIKE 'G%' AND tble2.addr IS NOT NULL) as tempTable GROUP BY id LIMIT 10; +----+-------------+------------+--------+------------------+--------------+---------+----------------| id|select_type| table |type |poss_keys|key |key_len|ref | rows | Extra +----+-------------+------------+--------+------------------+--------------+---------+---------------- 1 | PRIMARY | <derived2>|system| NULL |NULL| NULL |NULL | 0 | const row not found | 2 | DERIVED | tbl1 |range |id,name |name| 903 |NULL | 1 | Using where | 2 | DERIVED | tbl2 |ref |id,addr |id | 4 |tbl2.tbl1.id| 25 | Using where | +----+-------------+------------+--------+------------------+--------------+---------+----------------
mysql
null
null
null
null
null
open
need to speed up my database or query somehow === I have a left join statement on 2 tables: tbl1 has about 1 million records and tbl2 has about 20 million. The query takes about 9 seconds to execute. I have indexes on both but something doesn't seem right given how long queries take. Here is my select statement: EXPLAIN SELECT * FROM (SELECT tbl1.id, tbl1.name, tbl2.addr FROM tbl1 LEFT JOIN tbl2 ON tbl2.id = tbl1.id WHERE tbl1.name LIKE 'G%' AND tble2.addr IS NOT NULL) as tempTable GROUP BY id LIMIT 10; +----+-------------+------------+--------+------------------+--------------+---------+----------------| id|select_type| table |type |poss_keys|key |key_len|ref | rows | Extra +----+-------------+------------+--------+------------------+--------------+---------+---------------- 1 | PRIMARY | <derived2>|system| NULL |NULL| NULL |NULL | 0 | const row not found | 2 | DERIVED | tbl1 |range |id,name |name| 903 |NULL | 1 | Using where | 2 | DERIVED | tbl2 |ref |id,addr |id | 4 |tbl2.tbl1.id| 25 | Using where | +----+-------------+------------+--------+------------------+--------------+---------+----------------
0
6,540,448
06/30/2011 20:03:35
405,030
07/28/2010 20:58:05
364
12
How to program to old game consoles?
I want to know how to program to old game consoles for fun. Can I use a programming language such as C? Will I have to use assembly? I do not know any console compiler, assembler or API. I will need to compile into ROM image and test with emulators, because I do not own any console. Each console has its interesting features and I would like to play with them. - Atari 2600 (only 128 bytes of RAM) - NES (only 8-bit) - SNES (a good console, 16-bit) - PS1 (3D, complex) - Game Boy (simple, monochromatic)
compiler
hardware
video-game-consoles
null
null
07/01/2011 03:53:57
not a real question
How to program to old game consoles? === I want to know how to program to old game consoles for fun. Can I use a programming language such as C? Will I have to use assembly? I do not know any console compiler, assembler or API. I will need to compile into ROM image and test with emulators, because I do not own any console. Each console has its interesting features and I would like to play with them. - Atari 2600 (only 128 bytes of RAM) - NES (only 8-bit) - SNES (a good console, 16-bit) - PS1 (3D, complex) - Game Boy (simple, monochromatic)
1
5,757,630
04/22/2011 16:33:13
111,510
05/23/2009 13:10:53
13
0
Spinx pdf output: Apostrophes in python source are replaced by right single quotes
I am outputting some [documentation](https://bitbucket.org/tiktuk/plac-tik-branch/src/191c050cfee0/plac/doc/) as pdf using [Sphinx](http://sphinx.pocoo.org/). It's all very fine except for when python source code are output, then single quotes (unicode U+0027) are output as right single quotes (U+2019) which look awkward. [Here](http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html) are images of the glyphs in question and [here](http://placdocs.tiktuk.net/plac.pdf) is my generated pdf. Does anybody know how to correct this?
python
pdf
documentation
latex
sphinx
null
open
Spinx pdf output: Apostrophes in python source are replaced by right single quotes === I am outputting some [documentation](https://bitbucket.org/tiktuk/plac-tik-branch/src/191c050cfee0/plac/doc/) as pdf using [Sphinx](http://sphinx.pocoo.org/). It's all very fine except for when python source code are output, then single quotes (unicode U+0027) are output as right single quotes (U+2019) which look awkward. [Here](http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html) are images of the glyphs in question and [here](http://placdocs.tiktuk.net/plac.pdf) is my generated pdf. Does anybody know how to correct this?
0
10,960,680
06/09/2012 11:40:07
1,389,172
05/11/2012 10:09:40
11
0
i want to read the xml with the hierarchy
I want to use DOM Parser for reading the xml file from java class. I dont know what will the tag. i want use the root element to access all the child nodes i will show the sample flow for the xml <root> <category name="books"> <books> <book> <name> Java </name> </book> <book> <name> Dotnet </name> </book> </books> <category> <category name="fruits"> <fruits> <fruit> <name> Apple </name> <fruit> <fruit> <name> graphs </name> <fruit> <fruits> <category> </root> In the above xml i want to read category name and with in the fruit tag child node values. please share dom method java code to read the format.
java
xml
domparser
null
null
06/10/2012 10:19:30
not a real question
i want to read the xml with the hierarchy === I want to use DOM Parser for reading the xml file from java class. I dont know what will the tag. i want use the root element to access all the child nodes i will show the sample flow for the xml <root> <category name="books"> <books> <book> <name> Java </name> </book> <book> <name> Dotnet </name> </book> </books> <category> <category name="fruits"> <fruits> <fruit> <name> Apple </name> <fruit> <fruit> <name> graphs </name> <fruit> <fruits> <category> </root> In the above xml i want to read category name and with in the fruit tag child node values. please share dom method java code to read the format.
1
5,282,692
03/12/2011 13:13:47
565,840
01/06/2011 17:50:54
786
23
and, or, not versus &&, ||, !
Yes, this is valid C++ : if (false or (true and not false)) ... [Among others][1] such as `bitand` and `xor`. In C, they used to be macros, but now they [are keywords][2] ! You can even overload them ! Then why would someone ever teach or write something like : if (false || (true && !(false))) ... Why is **nobody** using them ? [1]: http://en.wikipedia.org/wiki/Operators_in_C_and_C++#C.2B.2B_operator_synonyms [2]: http://en.wikipedia.org/wiki/Iso646.h#C.2B.2B
c++
logic
keywords
null
null
03/12/2011 13:23:04
not constructive
and, or, not versus &&, ||, ! === Yes, this is valid C++ : if (false or (true and not false)) ... [Among others][1] such as `bitand` and `xor`. In C, they used to be macros, but now they [are keywords][2] ! You can even overload them ! Then why would someone ever teach or write something like : if (false || (true && !(false))) ... Why is **nobody** using them ? [1]: http://en.wikipedia.org/wiki/Operators_in_C_and_C++#C.2B.2B_operator_synonyms [2]: http://en.wikipedia.org/wiki/Iso646.h#C.2B.2B
4
6,827,806
07/26/2011 09:14:55
588,855
08/06/2010 17:52:56
989
9
Git - What does -m mean
In `Git`, when we type for example: $ git commit -m "xyz" What does `-m` mean? Thanks.
git
null
null
null
null
07/26/2011 09:25:47
too localized
Git - What does -m mean === In `Git`, when we type for example: $ git commit -m "xyz" What does `-m` mean? Thanks.
3
5,975,837
05/12/2011 09:18:20
750,268
05/12/2011 09:14:28
1
0
array based list program
The program should be able to Read the array length and the data values (names, client’s numbers, and ages) for the _clients from a formatted text _le clientsnumber.txt and form a new array of the instances that have been read; Form an array of _clients such that the array's length is given by the user and each instance has a randomly chosen name, a clients number, and an age; Measure and output processing time spent for each major processing step 1{5 (the Java System.currentTimeMillis() method allows you to get elapsed time in terms of milliseconds). Compute and output the following statistics for each array formed at Step 1 or 3: (a) Relative frequencies of each English letter from A to Z, no matter whether the upper- and lower-case, in the name strings for all the instances; (b) Relative frequencies of all the instances in each of the four intervals of clients numbers, namely, [100 􀀀 119], [120 􀀀 149], [150 􀀀 169], and [170 􀀀 199], and (c) Relative frequencies of all the instances in each of the three age intervals, namely, [15 􀀀 34], [35 􀀀 44], and [45 􀀀 64]. Sequentially search the array formed at Step 1 or read at Step 3 for an instance which name (say, John) is speci_ed by the user and either output all the data values for the _rst such instance found or indicate that the search was unsuccessful. Measure and output processing time spent for each major processing step 1{5 (the Java System.currentTimeMillis() method allows you to get elapsed time in terms of milliseconds). Write the array's length and data for all the instances into a text _le Clients.txt with the following _xed format (Java 2 SE 5 facilitates the formatted output with the printf and format methods being equivalent to one another): List of clients: length 100000 1 : Mzest : SSN 101 : Age 16 2 : Onihmp : SSN 145 : Age 32
java
null
null
null
null
05/12/2011 10:20:53
not a real question
array based list program === The program should be able to Read the array length and the data values (names, client’s numbers, and ages) for the _clients from a formatted text _le clientsnumber.txt and form a new array of the instances that have been read; Form an array of _clients such that the array's length is given by the user and each instance has a randomly chosen name, a clients number, and an age; Measure and output processing time spent for each major processing step 1{5 (the Java System.currentTimeMillis() method allows you to get elapsed time in terms of milliseconds). Compute and output the following statistics for each array formed at Step 1 or 3: (a) Relative frequencies of each English letter from A to Z, no matter whether the upper- and lower-case, in the name strings for all the instances; (b) Relative frequencies of all the instances in each of the four intervals of clients numbers, namely, [100 􀀀 119], [120 􀀀 149], [150 􀀀 169], and [170 􀀀 199], and (c) Relative frequencies of all the instances in each of the three age intervals, namely, [15 􀀀 34], [35 􀀀 44], and [45 􀀀 64]. Sequentially search the array formed at Step 1 or read at Step 3 for an instance which name (say, John) is speci_ed by the user and either output all the data values for the _rst such instance found or indicate that the search was unsuccessful. Measure and output processing time spent for each major processing step 1{5 (the Java System.currentTimeMillis() method allows you to get elapsed time in terms of milliseconds). Write the array's length and data for all the instances into a text _le Clients.txt with the following _xed format (Java 2 SE 5 facilitates the formatted output with the printf and format methods being equivalent to one another): List of clients: length 100000 1 : Mzest : SSN 101 : Age 16 2 : Onihmp : SSN 145 : Age 32
1
11,378,279
07/07/2012 20:09:00
860,532
07/24/2011 19:19:41
324
6
Scrum timeboxing and changing requirements - oxymoron?
This seem like 2 contradictory statement or circular logic at best. My understanding is that 1) Design happens daily, but the problem is you don't know the cost and hence you won't know how much you can commit to in the time box without an upfront design phase, but if you do that you're following iterative waterfall than Scrum. 2) The collaboration causes requirement changes which makes it hard to scope lock within the sprint. How do you change requirements without changing the scope? When should you tell the project owner, to wait for the next sprint or squeeze it into the current sprint, or bump something else out. Bumping something else out is not clear cut either when there are multiple dependencies so you can't just sub a 2 hrs work for another 2 hrs work. It doesn't scale linearly especially the closer it's to release. 3) The technical discipline of the project owner is usually not there. What ends up being is that, the time lock is there, but the scope changes. The 40hrs work week is flexible however, so that's where all that extras end up spilling. This might be ok for 2-3 sprints a year, but back to back it's really exhausting and people leave, usually the brighter ones figure it out first that they're not paid enough to work 50% more. 4) Collaboration turns into hours of unproductive meeting, because none does their homework & prepare themselves as if going for a test. This also turns into a deadly cycle, with devs having less hours to code and design and more hours "collaborating". The "saner" work environment usually is a blend of scrum and iterative waterfall. The further away it goes from there the more it devolves into chaos with long hours and little to show for. I can see scrum happening without the timeboxing ala. Kanban, but I have not met any PO who is willing to give up on that - yet. So how does scrum solve this issue? Is my understanding of the way scrum works off?
project-management
agile
scrum
waterfall
null
07/07/2012 21:44:58
off topic
Scrum timeboxing and changing requirements - oxymoron? === This seem like 2 contradictory statement or circular logic at best. My understanding is that 1) Design happens daily, but the problem is you don't know the cost and hence you won't know how much you can commit to in the time box without an upfront design phase, but if you do that you're following iterative waterfall than Scrum. 2) The collaboration causes requirement changes which makes it hard to scope lock within the sprint. How do you change requirements without changing the scope? When should you tell the project owner, to wait for the next sprint or squeeze it into the current sprint, or bump something else out. Bumping something else out is not clear cut either when there are multiple dependencies so you can't just sub a 2 hrs work for another 2 hrs work. It doesn't scale linearly especially the closer it's to release. 3) The technical discipline of the project owner is usually not there. What ends up being is that, the time lock is there, but the scope changes. The 40hrs work week is flexible however, so that's where all that extras end up spilling. This might be ok for 2-3 sprints a year, but back to back it's really exhausting and people leave, usually the brighter ones figure it out first that they're not paid enough to work 50% more. 4) Collaboration turns into hours of unproductive meeting, because none does their homework & prepare themselves as if going for a test. This also turns into a deadly cycle, with devs having less hours to code and design and more hours "collaborating". The "saner" work environment usually is a blend of scrum and iterative waterfall. The further away it goes from there the more it devolves into chaos with long hours and little to show for. I can see scrum happening without the timeboxing ala. Kanban, but I have not met any PO who is willing to give up on that - yet. So how does scrum solve this issue? Is my understanding of the way scrum works off?
2
5,231,785
03/08/2011 11:24:36
590,569
01/26/2011 12:22:44
1
4
When I have width: auto and specific left and right, why does setting min-width to the value of calculated width expand the element by 2px?
I have a page made of elements with width and height set to auto and their dimensions defined with left, right, top and bottom properties. When the page is loaded, all widths and heights are set to their calculated values by the browser, as they should be. However, when I set min-width of the elements to their respective calculated widths, each of those elements is expanded by 2px. The same happens if I set their min-height to be equal to the calculated height. I do it with jQuery, like this element.css('min-width', element.css('width')); or element.css('min-width', element.width()); The effect is exactly the same as it should be, but there should not be the extra 2px if I understand what's happening correctly. Using element.css('min-width', element.width() - 2); completely solves the problem but I don't like not understanding why there are the extra 2px. According to specifications, neither width nor min-width nor max-width should include padding, borders or margins. I've tested in Chrome and FF and both behave the same way.
javascript
jquery
html
css
null
null
open
When I have width: auto and specific left and right, why does setting min-width to the value of calculated width expand the element by 2px? === I have a page made of elements with width and height set to auto and their dimensions defined with left, right, top and bottom properties. When the page is loaded, all widths and heights are set to their calculated values by the browser, as they should be. However, when I set min-width of the elements to their respective calculated widths, each of those elements is expanded by 2px. The same happens if I set their min-height to be equal to the calculated height. I do it with jQuery, like this element.css('min-width', element.css('width')); or element.css('min-width', element.width()); The effect is exactly the same as it should be, but there should not be the extra 2px if I understand what's happening correctly. Using element.css('min-width', element.width() - 2); completely solves the problem but I don't like not understanding why there are the extra 2px. According to specifications, neither width nor min-width nor max-width should include padding, borders or margins. I've tested in Chrome and FF and both behave the same way.
0
10,903,970
06/05/2012 19:52:29
1,438,013
06/05/2012 17:51:52
1
0
Why does this PHP script with MICROTIME() gives a strange result?
I need some help to figure out a situation with a webserver regarding execution time. I've noticed a problem when the server returns a higher number of characters than ~41000 - around 40KB. So I did a script: <?php $php_start_time = MICROTIME(TRUE); echo $_GET['i'].':'; for($i=0;$i<=$_GET['i'];$i++) { echo 'a'; } echo '<br>runtime: '.(MICROTIME(TRUE) - $php_start_time); ?> And I try it out, more than 10 times each, multiple browsers: when $_GET['i']=40952 I get around **0.013...ms** when $_GET['i']=40953 I get around **0.679...ms** **a difference of 0.666 for just one single char ?** *(funny number though)* I saw the runtime differs a lot when trying to get the page results from different locations (online proxy). So I suppose it has to do with distances. I`m in EU, the server is in US. Until I find a way to fix this issue the script is available at: http://selfreveal.com/speed_test_1.php?i=40953 Also a phpinfo(): http://selfreveal.com/phpinfo.php Suggestions ? Thank you very much!
php
apache
script
runtime
microtime
06/05/2012 20:21:15
too localized
Why does this PHP script with MICROTIME() gives a strange result? === I need some help to figure out a situation with a webserver regarding execution time. I've noticed a problem when the server returns a higher number of characters than ~41000 - around 40KB. So I did a script: <?php $php_start_time = MICROTIME(TRUE); echo $_GET['i'].':'; for($i=0;$i<=$_GET['i'];$i++) { echo 'a'; } echo '<br>runtime: '.(MICROTIME(TRUE) - $php_start_time); ?> And I try it out, more than 10 times each, multiple browsers: when $_GET['i']=40952 I get around **0.013...ms** when $_GET['i']=40953 I get around **0.679...ms** **a difference of 0.666 for just one single char ?** *(funny number though)* I saw the runtime differs a lot when trying to get the page results from different locations (online proxy). So I suppose it has to do with distances. I`m in EU, the server is in US. Until I find a way to fix this issue the script is available at: http://selfreveal.com/speed_test_1.php?i=40953 Also a phpinfo(): http://selfreveal.com/phpinfo.php Suggestions ? Thank you very much!
3
6,080,259
05/21/2011 07:17:42
700,775
04/10/2011 11:25:30
6
1
mysql improve performmance by create new table
the code below is work but it take long time to run sometime the php code stop but it work well with mysql graphical tool (becase it can wait) . Are there any method to make it faster I use index in some column it help Are there any method to create table if I create table i think it will improve performance but this table it must be update maybe one a week what is the good practice please suggest SELECT member.own, member.provincecode, province.PROVINCE_NAME, member.amphurecode, amphur.AMPHUR_NAME, member.Sname, member.Ssurname, member.Hno, member.Moo, member.Sex, member.tambol, member.dateofbirth, member.migratedate, Year( Current_Date( ) ) - Year( member.dateofbirth ) AS y, Year( Current_Date( ) ) - Year( member.migratedate ) AS m FROM member LEFT JOIN amphur ON ( member.amphurecode COLLATE utf8_general_ci = amphur.AMPHUR_CODE ) LEFT JOIN province ON member.provincecode COLLATE utf8_general_ci = province.PROVINCE_CODE
mysql
null
null
null
null
null
open
mysql improve performmance by create new table === the code below is work but it take long time to run sometime the php code stop but it work well with mysql graphical tool (becase it can wait) . Are there any method to make it faster I use index in some column it help Are there any method to create table if I create table i think it will improve performance but this table it must be update maybe one a week what is the good practice please suggest SELECT member.own, member.provincecode, province.PROVINCE_NAME, member.amphurecode, amphur.AMPHUR_NAME, member.Sname, member.Ssurname, member.Hno, member.Moo, member.Sex, member.tambol, member.dateofbirth, member.migratedate, Year( Current_Date( ) ) - Year( member.dateofbirth ) AS y, Year( Current_Date( ) ) - Year( member.migratedate ) AS m FROM member LEFT JOIN amphur ON ( member.amphurecode COLLATE utf8_general_ci = amphur.AMPHUR_CODE ) LEFT JOIN province ON member.provincecode COLLATE utf8_general_ci = province.PROVINCE_CODE
0
83,899
09/17/2008 14:36:10
842
08/09/2008 10:29:44
939
70
Video capture on linux?
We need to capture live video and display *easily* on Linux. We need a cheap card or USB device with a simple API. Anyone want to share some experience?
linux
video
image-capture
video-capture
null
07/12/2011 14:57:02
off topic
Video capture on linux? === We need to capture live video and display *easily* on Linux. We need a cheap card or USB device with a simple API. Anyone want to share some experience?
2
10,137,474
04/13/2012 08:19:57
1,256,637
03/08/2012 09:24:26
1
0
wysiwyg editor In DJANGO
I have been looking at some of our sites and noticed that we in the admin panel when editing a page, if we have 2 wysiwyg editors the second one won't work and won't let me click inside it. I'm not sure whether this is something that been happening the whole time the sites have been live, but i'm new to the site and the original developer is not here. If you need anymore information please ask as i'm not sure where to look at the moment. Thanks.
javascript
python
html
django
null
04/13/2012 12:35:43
not a real question
wysiwyg editor In DJANGO === I have been looking at some of our sites and noticed that we in the admin panel when editing a page, if we have 2 wysiwyg editors the second one won't work and won't let me click inside it. I'm not sure whether this is something that been happening the whole time the sites have been live, but i'm new to the site and the original developer is not here. If you need anymore information please ask as i'm not sure where to look at the moment. Thanks.
1
8,421,288
12/07/2011 19:28:13
1,027,942
11/03/2011 14:44:31
33
4
Strange errors like error C2146 and error C2061
Im writing a project in C with visual studio that contains these files: 1) multiThreadServer.cpp 2) myLib.cpp 3) myLib.h The 1st (multiThreadServer.cpp) includes these #include <WinSock2.h> #include <Windows.h> #include <stdio.h> #include "myLib.h" 2nd (myLib.cpp) these #include <WinSock2.h> #include <stdio.h> #include "myLib.h" 3nd (myLib.h) includes nothing In .h file i have these functions defined http://pastebin.com/r2cXyBUA Now, when im going to compile the whole project these annoying syntax errors returned http://pastebin.com/fTe20k4B I m searching 1.30 hour now on net but i cannot find a way to fix it. What the problem could be ?
syntax
null
null
null
null
12/07/2011 20:06:12
too localized
Strange errors like error C2146 and error C2061 === Im writing a project in C with visual studio that contains these files: 1) multiThreadServer.cpp 2) myLib.cpp 3) myLib.h The 1st (multiThreadServer.cpp) includes these #include <WinSock2.h> #include <Windows.h> #include <stdio.h> #include "myLib.h" 2nd (myLib.cpp) these #include <WinSock2.h> #include <stdio.h> #include "myLib.h" 3nd (myLib.h) includes nothing In .h file i have these functions defined http://pastebin.com/r2cXyBUA Now, when im going to compile the whole project these annoying syntax errors returned http://pastebin.com/fTe20k4B I m searching 1.30 hour now on net but i cannot find a way to fix it. What the problem could be ?
3
10,900,066
06/05/2012 15:18:22
977,017
10/03/2011 16:03:01
3
0
Debian apt-get update not working
Hallo I am on a Debian / Plesk System. After I tried to update via the Plesk AdminPanel, the panel crashed and was not reachable anymore via Port :8443. Also the MailServer seems to be crashed on all Domains on this server. My Provider said, that I should do an Upgrade from Debian 5/Plesk 9.X to Debian 6/Plesk 10.4.4 correctly: /usr/local/psa/admin/sbin/autoinstaller --select-release-id PLESK_10_4_4 --ignore-key-errors --upgrade-installed-components /usr/local/psa/admin/sbin/autoinstaller --select-release-current --upgrade-installed-components Then he writes I should input these to my /etc/apt/sources.list: # Main updates deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free deb-src http://ftp.de.debian.org/debian/ squeeze main contrib non-free # Security updates deb http://security.debian.org/ squeeze/updates main contrib non-free deb-src http://security.debian.org/ squeeze/updates main contrib non-free and do an apt-get update && apt-get dist-upgrade So I logged in to the shell and tried "apt-get update". $:/etc/apt# apt-get update Err http://backports.debian.org lenny-backports/main Packages 404 Not Found [IP: 206.12.19.9 80] Err http://backports.debian.org lenny-backports/contrib Packages 404 Not Found [IP: 206.12.19.9 80] Err http://backports.debian.org lenny-backports/non-free Packages 404 Not Found [IP: 206.12.19.9 80] W: Failed to fetch http://backports.debian.org/debian-backports/dists/lenny-backports/main/binary-amd64/Packages 404 Not Found [IP: 206.12.19.9 80] W: Failed to fetch http://backports.debian.org/debian-backports/dists/lenny-backports/contrib/binary-amd64/Packages 404 Not Found [IP: 206.12.19.9 80] W: Failed to fetch http://backports.debian.org/debian-backports/dists/lenny-backports/non-free/binary-amd64/Packages 404 Not Found [IP: 206.12.19.9 80] E: Some index files failed to download, they have been ignored, or old ones used instead. I have also a /etc/apt/sources.list.ai_back which contains # main sources deb-src http://archive.debian.org/debian/ lenny main contrib non-free #deb http://archive.debian.org/debian/ lenny contrib main non-free # volatile deb http://archive.debian.org/debian-volatile/ lenny/volatile main contrib non-free deb-src http://archive.debian.org/debian-volatile/ lenny/volatile main contrib non-free # security deb http://archive.debian.org/debian-security/ lenny/updates main contrib non-free deb-src http://archive.debian.org/debian-security/ lenny/updates main contrib non-free # intergenia.de additional repositories deb http://mirror.intergenia.de/packages/deb/ lenny dedicated deb-src http://mirror.intergenia.de/packages/deb/ lenny dedicated # plesk autoinstall Any help please? (server down)
debian
plesk
null
null
null
06/06/2012 10:44:21
off topic
Debian apt-get update not working === Hallo I am on a Debian / Plesk System. After I tried to update via the Plesk AdminPanel, the panel crashed and was not reachable anymore via Port :8443. Also the MailServer seems to be crashed on all Domains on this server. My Provider said, that I should do an Upgrade from Debian 5/Plesk 9.X to Debian 6/Plesk 10.4.4 correctly: /usr/local/psa/admin/sbin/autoinstaller --select-release-id PLESK_10_4_4 --ignore-key-errors --upgrade-installed-components /usr/local/psa/admin/sbin/autoinstaller --select-release-current --upgrade-installed-components Then he writes I should input these to my /etc/apt/sources.list: # Main updates deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free deb-src http://ftp.de.debian.org/debian/ squeeze main contrib non-free # Security updates deb http://security.debian.org/ squeeze/updates main contrib non-free deb-src http://security.debian.org/ squeeze/updates main contrib non-free and do an apt-get update && apt-get dist-upgrade So I logged in to the shell and tried "apt-get update". $:/etc/apt# apt-get update Err http://backports.debian.org lenny-backports/main Packages 404 Not Found [IP: 206.12.19.9 80] Err http://backports.debian.org lenny-backports/contrib Packages 404 Not Found [IP: 206.12.19.9 80] Err http://backports.debian.org lenny-backports/non-free Packages 404 Not Found [IP: 206.12.19.9 80] W: Failed to fetch http://backports.debian.org/debian-backports/dists/lenny-backports/main/binary-amd64/Packages 404 Not Found [IP: 206.12.19.9 80] W: Failed to fetch http://backports.debian.org/debian-backports/dists/lenny-backports/contrib/binary-amd64/Packages 404 Not Found [IP: 206.12.19.9 80] W: Failed to fetch http://backports.debian.org/debian-backports/dists/lenny-backports/non-free/binary-amd64/Packages 404 Not Found [IP: 206.12.19.9 80] E: Some index files failed to download, they have been ignored, or old ones used instead. I have also a /etc/apt/sources.list.ai_back which contains # main sources deb-src http://archive.debian.org/debian/ lenny main contrib non-free #deb http://archive.debian.org/debian/ lenny contrib main non-free # volatile deb http://archive.debian.org/debian-volatile/ lenny/volatile main contrib non-free deb-src http://archive.debian.org/debian-volatile/ lenny/volatile main contrib non-free # security deb http://archive.debian.org/debian-security/ lenny/updates main contrib non-free deb-src http://archive.debian.org/debian-security/ lenny/updates main contrib non-free # intergenia.de additional repositories deb http://mirror.intergenia.de/packages/deb/ lenny dedicated deb-src http://mirror.intergenia.de/packages/deb/ lenny dedicated # plesk autoinstall Any help please? (server down)
2
11,003,791
06/12/2012 19:50:30
1,452,076
06/12/2012 19:26:59
1
0
jQuery Mobile Losing Style After Updating DOM
A question similar to this has been posted several time, but I cannot find a solution that works. Hopefully, someone can help! I am using jQuery Mobile 1.1 and jQuery 1.7.2, so I'm on the most recent stable releases. I want to create a dynamic page header. Using this HTML code, it works fine: <div data-role="page" id="levela"> <div data-role="header" id="hdr_levela"> <h1>Title</h1> </div> </div> So I then go to dynamically create the title. I change the HTML to this: <div data-role="page" id="levela"> <div data-role="header" id="hdr_levela"> </div> </div> And added the following jQuery code: // Set the header var dirHeader = $('#hdr_levela'); dirHeader.append('<h1>' + title+ '</h1>'); The title appears, but is not styled. I have found several posts about this. In the jQuery Mobile Documentation, it says: "However, if you generate new markup client-side or load in content via Ajax and inject it into a page, you can trigger the create event to handle the auto-initialization for all the plugins contained within the new markup. This can be triggered on any element (even the page div itself), saving you the task of manually initializing each plugin (listview button, select, etc.). For example, if a block of HTML markup (say a login form) was loaded in through Ajax, trigger the create event to automatically transform all the widgets it contains (inputs and buttons in this case) into the enhanced versions. The code for this scenario would be: $( ...new markup that contains widgets... ).appendTo( ".ui-page" ).trigger( "create" );" So I tried several things. After the above code, I added the following: dirHeader.trigger("create"); This had no effect. So I tried to put it on the actual append itself: dirHeader.append('<h1>' + folderName + '</h1>').trigger("create"); This had no effect. I then tried the process on the parent element (in this case, the id of the parent div is "levela"). So I tried this: $('#levela').trigger("create"); This also had no effect. At this point, I am completely lost. Every solution involves doing one of the things I have tried and is just not working. I must be missing something incredibly basic but I just can't seem to find it. Thanks in advance for your help!
jquery
mobile
styles
null
null
null
open
jQuery Mobile Losing Style After Updating DOM === A question similar to this has been posted several time, but I cannot find a solution that works. Hopefully, someone can help! I am using jQuery Mobile 1.1 and jQuery 1.7.2, so I'm on the most recent stable releases. I want to create a dynamic page header. Using this HTML code, it works fine: <div data-role="page" id="levela"> <div data-role="header" id="hdr_levela"> <h1>Title</h1> </div> </div> So I then go to dynamically create the title. I change the HTML to this: <div data-role="page" id="levela"> <div data-role="header" id="hdr_levela"> </div> </div> And added the following jQuery code: // Set the header var dirHeader = $('#hdr_levela'); dirHeader.append('<h1>' + title+ '</h1>'); The title appears, but is not styled. I have found several posts about this. In the jQuery Mobile Documentation, it says: "However, if you generate new markup client-side or load in content via Ajax and inject it into a page, you can trigger the create event to handle the auto-initialization for all the plugins contained within the new markup. This can be triggered on any element (even the page div itself), saving you the task of manually initializing each plugin (listview button, select, etc.). For example, if a block of HTML markup (say a login form) was loaded in through Ajax, trigger the create event to automatically transform all the widgets it contains (inputs and buttons in this case) into the enhanced versions. The code for this scenario would be: $( ...new markup that contains widgets... ).appendTo( ".ui-page" ).trigger( "create" );" So I tried several things. After the above code, I added the following: dirHeader.trigger("create"); This had no effect. So I tried to put it on the actual append itself: dirHeader.append('<h1>' + folderName + '</h1>').trigger("create"); This had no effect. I then tried the process on the parent element (in this case, the id of the parent div is "levela"). So I tried this: $('#levela').trigger("create"); This also had no effect. At this point, I am completely lost. Every solution involves doing one of the things I have tried and is just not working. I must be missing something incredibly basic but I just can't seem to find it. Thanks in advance for your help!
0
8,854,671
01/13/2012 17:26:19
1,136,449
01/07/2012 21:47:39
1
0
Is jfiddle accurate?
I am not really sure how to host my website, but when I'm using jfiddle, will the webpage look exactly the same as it does in the "result" portion of jfiddle?
html
css
jsfiddle
null
null
null
open
Is jfiddle accurate? === I am not really sure how to host my website, but when I'm using jfiddle, will the webpage look exactly the same as it does in the "result" portion of jfiddle?
0
4,550,341
12/28/2010 23:23:57
392,781
07/15/2010 13:59:43
3
1
Facebook: Get user's friends' time-zones
I would like my canvas application to obtain time-zones of my user's friends. I tried doing it with the Graph API but all I can get is their names, locales and a few more (even when using the `access_token`). When using FQL the `timezone` field is always empty. 1. Is there a way to achieve this? 2. If so, could you please point me in the right direction? Cheers
php
facebook
facebook-graph-api
null
null
null
open
Facebook: Get user's friends' time-zones === I would like my canvas application to obtain time-zones of my user's friends. I tried doing it with the Graph API but all I can get is their names, locales and a few more (even when using the `access_token`). When using FQL the `timezone` field is always empty. 1. Is there a way to achieve this? 2. If so, could you please point me in the right direction? Cheers
0
2,270,452
02/16/2010 03:33:33
274,041
02/16/2010 03:33:33
1
0
Which is the best open source search engine
Which is the best open source search engine ..to process more than 5 billion of datas.. 1) NUtch 2) Solr
nutch
solr
open-source
null
null
09/10/2011 19:12:06
not a real question
Which is the best open source search engine === Which is the best open source search engine ..to process more than 5 billion of datas.. 1) NUtch 2) Solr
1
6,590,299
07/06/2011 00:18:11
803,458
06/17/2011 14:58:34
11
3
Isolated PHP Execution Region
Is it possible to include a php script (which given its current nature of the project, could screw it up) with only limited variables. This is because I want to run a file as a data template, but I don't users to be able to get access to all the data. Especially on a shared service. I didn't want to use unset on every variable, because I'll need them again later. I was hoping to be able to open a private region within the interpreter so I can run the script with only certain variables, to cut a long story short. Thanks in advance.
php
null
null
null
null
null
open
Isolated PHP Execution Region === Is it possible to include a php script (which given its current nature of the project, could screw it up) with only limited variables. This is because I want to run a file as a data template, but I don't users to be able to get access to all the data. Especially on a shared service. I didn't want to use unset on every variable, because I'll need them again later. I was hoping to be able to open a private region within the interpreter so I can run the script with only certain variables, to cut a long story short. Thanks in advance.
0
9,541,886
03/02/2012 23:37:44
1,242,328
03/01/2012 09:57:52
1
0
creating IBOutlets in ViewController.h from another UIViewController's .xib file
I am currently reading 'Beginning iOS 5 Games Development: Using the iOS SDK for iPhone, iPad and iPod Touch' by Lucas Jordan. In this book, there is a section in where you are instructed to make a 'Rock, Paper, Scissors' game using a variety of UIViewControllers. My problem is that I cannot create an IBOutlet from the ViewController_iphone.xib (which, as the name suggests, is made for the iPhone) to the ViewController.h file that comes with every new project. In ViewController_iPhone.xib I have created a UIView and set the file's owner of the .xib to ViewController_iPhone.xib. When i ctrl+click and try to link the view to ViewController.h, it simply does not give me the option to do so. When I change the file's owner to ViewController, it is not a problem to create IBOutlets in ViewController.h, however that is not the correct file's owner that will allow the program to work correctly. I have downloaded the source code for the book, and the author of the book seemed to have no problems whatsoever creating the oultlets. I have compared my project to his and I can't seem to find what is wrong. If anybody could help me, I would be very grateful. Thanks! *Fitzy*
objective-c
ios
uiviewcontroller
iboutlet
null
null
open
creating IBOutlets in ViewController.h from another UIViewController's .xib file === I am currently reading 'Beginning iOS 5 Games Development: Using the iOS SDK for iPhone, iPad and iPod Touch' by Lucas Jordan. In this book, there is a section in where you are instructed to make a 'Rock, Paper, Scissors' game using a variety of UIViewControllers. My problem is that I cannot create an IBOutlet from the ViewController_iphone.xib (which, as the name suggests, is made for the iPhone) to the ViewController.h file that comes with every new project. In ViewController_iPhone.xib I have created a UIView and set the file's owner of the .xib to ViewController_iPhone.xib. When i ctrl+click and try to link the view to ViewController.h, it simply does not give me the option to do so. When I change the file's owner to ViewController, it is not a problem to create IBOutlets in ViewController.h, however that is not the correct file's owner that will allow the program to work correctly. I have downloaded the source code for the book, and the author of the book seemed to have no problems whatsoever creating the oultlets. I have compared my project to his and I can't seem to find what is wrong. If anybody could help me, I would be very grateful. Thanks! *Fitzy*
0
3,091,011
06/22/2010 07:14:47
428,881
06/22/2010 06:54:09
1
0
ASP MVC is an Agile technology?
Do you think that ASP MVC is an Agile technology? Wich features make it Agile?
asp.net-mvc
agile
null
null
null
06/22/2010 08:56:21
not a real question
ASP MVC is an Agile technology? === Do you think that ASP MVC is an Agile technology? Wich features make it Agile?
1
7,966,883
11/01/2011 13:05:04
648,198
03/07/2011 13:11:46
154
7
Need help setting up Apache with SSL
I developed a web application with Zend Framework php. But when I deployed it to my test environment and have the whole project files in a SSL domain its giving me a 500 Internal Error message. my SSL domain is https://secure.example.com My project files is in /public_html/secure/yorke My htaccess file is in /public_html/secure/.htaccess How can I solve this 500 Internal Error message problem? Thanks so much! Here is my Htaccess file RewriteEngine On RewriteRule ^\.htaccess$ - [F] RewriteCond %{REQUEST_URI} ="" RewriteRule ^.*$ /yorke/public/index.php [NC,L] RewriteCond %{REQUEST_URI} !^/yorke/public/.*$ RewriteRule ^(.*)$ /yorke/public/$1 RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^.*$ - [NC,L] RewriteRule ^yorke/public/.*$ /yorke/public/index.php [NC,L]
apache
zend-framework
.htaccess
ssl
null
11/02/2011 03:06:17
off topic
Need help setting up Apache with SSL === I developed a web application with Zend Framework php. But when I deployed it to my test environment and have the whole project files in a SSL domain its giving me a 500 Internal Error message. my SSL domain is https://secure.example.com My project files is in /public_html/secure/yorke My htaccess file is in /public_html/secure/.htaccess How can I solve this 500 Internal Error message problem? Thanks so much! Here is my Htaccess file RewriteEngine On RewriteRule ^\.htaccess$ - [F] RewriteCond %{REQUEST_URI} ="" RewriteRule ^.*$ /yorke/public/index.php [NC,L] RewriteCond %{REQUEST_URI} !^/yorke/public/.*$ RewriteRule ^(.*)$ /yorke/public/$1 RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^.*$ - [NC,L] RewriteRule ^yorke/public/.*$ /yorke/public/index.php [NC,L]
2
10,688,603
05/21/2012 16:01:44
600,548
02/02/2011 19:45:39
63
0
How do I bind multiple properties in an Android layout element
I'm using MvvmCross to databind my ViewModel to an Android View layout. From the SimpleBinding example I can see that to bind a value to a property I do this: <EditText android:hint="Subtotal" android:gravity="left" android:inputType="numberDecimal" android:maxLines="1" android:numeric="decimal" local:MvxBind="{'Text':{'Path':'SubTotal','Converter':'Float'}}" /> so Text is bound to the SubTotal property of the ViewModel. But how do I bind to more than one property? In my case I want to bind a ViewModel property called HigherLower to the TextColor attribute of the layout element. I can't add another MvxBind and I can't set MvxBind to an array.
monodroid
mvvmcross
null
null
null
null
open
How do I bind multiple properties in an Android layout element === I'm using MvvmCross to databind my ViewModel to an Android View layout. From the SimpleBinding example I can see that to bind a value to a property I do this: <EditText android:hint="Subtotal" android:gravity="left" android:inputType="numberDecimal" android:maxLines="1" android:numeric="decimal" local:MvxBind="{'Text':{'Path':'SubTotal','Converter':'Float'}}" /> so Text is bound to the SubTotal property of the ViewModel. But how do I bind to more than one property? In my case I want to bind a ViewModel property called HigherLower to the TextColor attribute of the layout element. I can't add another MvxBind and I can't set MvxBind to an array.
0
9,621,707
03/08/2012 17:04:33
1,238,470
02/28/2012 17:44:06
15
0
Converting JSON array to html
I have successfully returned a JSON object/array(not too good with terminology), using the below code. $(function(){ $("#buildForm").click(function(e){ e.preventDefault(); var frm = $(document.buildForm); var dat = JSON.stringify(frm.serializeArray()); $.post(frm.attr("action"), {data:dat}, function(response) { var $dialog = $('<div></div>') .html(response) .dialog({ autoOpen: false, title: 'Build', modal: true, height: 400 }); $dialog.dialog('open'); // prevent the default action, e.g., following a link return false; }); }); }); It returns {"str_id":"1","str_name":"TC","tier_id":"1","buy_gold":"50000","buy_mana":"10000","res_build":"0","res_active":"0","res_owned":"0","timebuildmins":"500","timecollectmins":"30","timeminsformiss":"0","goldcollected":"1000","str_imageloc":"..\/img\/structures\/tc.png"} I don't know much JS, but im trying to learn by doing. Unfortunately, I can't figure out how to simply display, for instance, only the "str_name." As you can see, I have a popup window from the jquery ui open to display the retrieved data in JSON format. I need to be able to take bits of the returned data and display it! Simple right? Please help!
javascript
ajax
json
jquery-ui
null
null
open
Converting JSON array to html === I have successfully returned a JSON object/array(not too good with terminology), using the below code. $(function(){ $("#buildForm").click(function(e){ e.preventDefault(); var frm = $(document.buildForm); var dat = JSON.stringify(frm.serializeArray()); $.post(frm.attr("action"), {data:dat}, function(response) { var $dialog = $('<div></div>') .html(response) .dialog({ autoOpen: false, title: 'Build', modal: true, height: 400 }); $dialog.dialog('open'); // prevent the default action, e.g., following a link return false; }); }); }); It returns {"str_id":"1","str_name":"TC","tier_id":"1","buy_gold":"50000","buy_mana":"10000","res_build":"0","res_active":"0","res_owned":"0","timebuildmins":"500","timecollectmins":"30","timeminsformiss":"0","goldcollected":"1000","str_imageloc":"..\/img\/structures\/tc.png"} I don't know much JS, but im trying to learn by doing. Unfortunately, I can't figure out how to simply display, for instance, only the "str_name." As you can see, I have a popup window from the jquery ui open to display the retrieved data in JSON format. I need to be able to take bits of the returned data and display it! Simple right? Please help!
0
11,684,737
07/27/2012 09:05:40
1,514,157
07/10/2012 08:24:13
3
0
Storing images in drawable folder and getting the image to load by using the imagePath in database
I am wondering how to get the imagePath of the image stored in the drawable folder in eclipse. The imagePath is to be stored in SQLite Database. So now I am wondering how do I retrieve the Uri of the imagePath in the database. Any help will be greatly appreciated. Thank you.
android
null
null
null
null
null
open
Storing images in drawable folder and getting the image to load by using the imagePath in database === I am wondering how to get the imagePath of the image stored in the drawable folder in eclipse. The imagePath is to be stored in SQLite Database. So now I am wondering how do I retrieve the Uri of the imagePath in the database. Any help will be greatly appreciated. Thank you.
0
5,890,175
05/04/2011 21:39:54
340,819
05/14/2010 00:54:11
4,117
216
Is it not possible to use HTML entities in a title attribute?
<img src="http://junk.orderofthehammer.com/title-entity-text-taken-literally.png"> The above screengrab is from Firefox. The cursor is hovering over the yellow spot at the left hand side of the image. It is an `<img>` element (well actually it's an image together with an image map containing a single circular `<area>` element, but I assume this distinction is unimportant) that has been created and styled in JavaScript, including the application of a title attribute (constructed by cutting and gluing strings). How can I get this to behave and show the intended character, an en dash, instead of `&ndash;`? It works for innerHTML (the text "Barrow-In-Furness" in the top middle-left is a div that was also created using JavaScript, and its innerHTML set.)
html
html-entities
null
null
null
null
open
Is it not possible to use HTML entities in a title attribute? === <img src="http://junk.orderofthehammer.com/title-entity-text-taken-literally.png"> The above screengrab is from Firefox. The cursor is hovering over the yellow spot at the left hand side of the image. It is an `<img>` element (well actually it's an image together with an image map containing a single circular `<area>` element, but I assume this distinction is unimportant) that has been created and styled in JavaScript, including the application of a title attribute (constructed by cutting and gluing strings). How can I get this to behave and show the intended character, an en dash, instead of `&ndash;`? It works for innerHTML (the text "Barrow-In-Furness" in the top middle-left is a div that was also created using JavaScript, and its innerHTML set.)
0
6,623,912
07/08/2011 11:44:15
334,904
05/06/2010 22:20:45
83
5
Windows Phone 7 and unsafe code
Does anybody know will it be allowed to use unsafe code in the future updates of Windows Phone 7. It's really an awkward situation to be not allowed to use unsafe blocks in C# (especially in game development).
.net
windows-phone-7
null
null
null
07/09/2011 01:28:00
not constructive
Windows Phone 7 and unsafe code === Does anybody know will it be allowed to use unsafe code in the future updates of Windows Phone 7. It's really an awkward situation to be not allowed to use unsafe blocks in C# (especially in game development).
4
5,025,203
02/17/2011 04:58:09
265,519
02/03/2010 18:06:08
151
3
Get portion of a table and get 2 tables 1 being updated SQL Server
I have a table like: id NameColumn ------------- 1 var 2 var2 3 var3 4 var4 5 var5 ... ... n varn Is there a Way I can get a portion of this table, say, the first 3, and get to tables (the second one in the field 'id' is updated) like: TABLE1: id NameColumn ------------- 1 var 2 var2 3 var3 TABLE2: id NameColumn ------------- 1 var4 2 var5 3 var6 4 var7 ... ... n varn
sql-server-2008
null
null
null
null
null
open
Get portion of a table and get 2 tables 1 being updated SQL Server === I have a table like: id NameColumn ------------- 1 var 2 var2 3 var3 4 var4 5 var5 ... ... n varn Is there a Way I can get a portion of this table, say, the first 3, and get to tables (the second one in the field 'id' is updated) like: TABLE1: id NameColumn ------------- 1 var 2 var2 3 var3 TABLE2: id NameColumn ------------- 1 var4 2 var5 3 var6 4 var7 ... ... n varn
0
8,681,605
12/30/2011 16:27:04
133,059
07/04/2009 06:32:44
128
1
A Book A Part, best introduction to modern web design?
HTML5 for Web Designers and CSS3 for Web Designers + other titles. Are these the *some* of the best resources to get familiar with using current web technologies?
html
css
html5
css3
null
12/30/2011 17:07:20
not constructive
A Book A Part, best introduction to modern web design? === HTML5 for Web Designers and CSS3 for Web Designers + other titles. Are these the *some* of the best resources to get familiar with using current web technologies?
4
232,202
10/24/2008 01:29:18
26,404
10/09/2008 07:32:24
1
2
What message or event is raised which I invoke CListCtrl::InsertItem() method?
I was planning to implememt owner-drawn of CListCtrl. I thought that drawing an item is after the item is inserted into the control. So my method is declare a class which is derived from CListCtrl and override its DrawItem() method. The problem is DrawItem is never invoked after inserting an item. Is there anything wrong with my method? Thank you!
mfc
clistctrl
owner-drawn
null
null
null
open
What message or event is raised which I invoke CListCtrl::InsertItem() method? === I was planning to implememt owner-drawn of CListCtrl. I thought that drawing an item is after the item is inserted into the control. So my method is declare a class which is derived from CListCtrl and override its DrawItem() method. The problem is DrawItem is never invoked after inserting an item. Is there anything wrong with my method? Thank you!
0
9,900,954
03/28/2012 04:01:40
1,297,101
03/28/2012 03:58:12
1
0
What is the meaning of - "Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited."
What is the meaning of this line if you receive it in an email? "Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited" Thanks in Advance.
email
open-source
legal
notice
non-disclosure
03/28/2012 09:03:20
off topic
What is the meaning of - "Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited." === What is the meaning of this line if you receive it in an email? "Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited" Thanks in Advance.
2
11,300,396
07/02/2012 20:03:40
1,497,056
07/02/2012 19:55:53
1
0
CodeIgniter - Protect dev app with HTACCESS but allow JSON requests
I’ve been developing on CI for a couple of years now. Most recently, I’ve been working on a web app that also exposes JSON apis to mobile clients. My goal is to block/restrict access to our development server (password required) but keep JSON apis open. In other words, visitors should not be able to see our app on our dev server without first authenticating. But mobile clients should still be able to connect to our JSON apis. I'm trying to avoid using VPN and instead hoping to use basic HTACCESS. Any one have any experience or tips to share on how to accomplish this in CI? Thanks in advance for any thoughts you have to share. Jess
php
json
apache
.htaccess
codeigniter
null
open
CodeIgniter - Protect dev app with HTACCESS but allow JSON requests === I’ve been developing on CI for a couple of years now. Most recently, I’ve been working on a web app that also exposes JSON apis to mobile clients. My goal is to block/restrict access to our development server (password required) but keep JSON apis open. In other words, visitors should not be able to see our app on our dev server without first authenticating. But mobile clients should still be able to connect to our JSON apis. I'm trying to avoid using VPN and instead hoping to use basic HTACCESS. Any one have any experience or tips to share on how to accomplish this in CI? Thanks in advance for any thoughts you have to share. Jess
0
4,847,255
01/31/2011 02:58:22
596,281
01/31/2011 02:58:22
1
0
when to go from java to android
I am currently reading beginner programing with java for dummies second edition by barry burd, when i finish should I start learning android (if so any recommendations) or more java (again recomendations greatly appreciated) tyvm in advance
android
null
null
null
null
null
open
when to go from java to android === I am currently reading beginner programing with java for dummies second edition by barry burd, when i finish should I start learning android (if so any recommendations) or more java (again recomendations greatly appreciated) tyvm in advance
0
11,650,468
07/25/2012 13:10:20
1,075,996
12/01/2011 17:47:15
29
0
Perl script, find first half of string
Within a Perl script I need to process the following string: 426852 total The string will always contain an integer followed by some white space and the word total. I need to strip away the string part of the variable to just leave an integer that I can compare later in the script. What is the best way to achieve this? Thanks
regex
string
perl
null
null
07/29/2012 01:06:54
not a real question
Perl script, find first half of string === Within a Perl script I need to process the following string: 426852 total The string will always contain an integer followed by some white space and the word total. I need to strip away the string part of the variable to just leave an integer that I can compare later in the script. What is the best way to achieve this? Thanks
1
8,722,378
01/04/2012 05:22:48
1,129,225
01/04/2012 05:18:37
1
0
String Encryption in OBFUSCATORS
I'm aware of encrypting/decrypting strings using public-key cryptography, however how does the string encryption done by obfuscators work? As in, every "word" or letter is encoded into something like \us1234 or so. Does that mean every \usBLAH (#US heap?) corresponds to a particular digit/letter, or is it same as public-key crpyt. and uses Encryption/decryption? Also, any particular name of the scheme? Just like a "%20" in an encoded URL means " " (space). Many thanks!
string
encryption
null
null
null
null
open
String Encryption in OBFUSCATORS === I'm aware of encrypting/decrypting strings using public-key cryptography, however how does the string encryption done by obfuscators work? As in, every "word" or letter is encoded into something like \us1234 or so. Does that mean every \usBLAH (#US heap?) corresponds to a particular digit/letter, or is it same as public-key crpyt. and uses Encryption/decryption? Also, any particular name of the scheme? Just like a "%20" in an encoded URL means " " (space). Many thanks!
0
132,210
09/25/2008 08:53:13
428,965
09/17/2008 07:49:17
117
3
Distributed Processing: C++ equivalent of JTA
I'm developing a mission-critical solution where data integrity is paramount and performance a close second. If data gets stuffed up, it's gonna be cata$trophic. So, I'm looking for the C/C++ version of JTA (Java Transaction API). Does anyone know of any C or C++ libraries that supports distributed transactions? And yes, I've googled it ... unsuccessfully. I'd hate to be told that there isn't one and I'd need to implement the protocol specified by [Distributed TP: The XA Specification][1]. Please help! [1]: http://www.opengroup.org/pubs/catalog/c193.htm
distributed
transactions
c++
java
null
null
open
Distributed Processing: C++ equivalent of JTA === I'm developing a mission-critical solution where data integrity is paramount and performance a close second. If data gets stuffed up, it's gonna be cata$trophic. So, I'm looking for the C/C++ version of JTA (Java Transaction API). Does anyone know of any C or C++ libraries that supports distributed transactions? And yes, I've googled it ... unsuccessfully. I'd hate to be told that there isn't one and I'd need to implement the protocol specified by [Distributed TP: The XA Specification][1]. Please help! [1]: http://www.opengroup.org/pubs/catalog/c193.htm
0
6,311,574
06/10/2011 20:10:33
320,724
04/19/2010 20:00:18
639
11
Do I need to redraw my control on the consumer form if I have updated it?
there is a user control on my Application.(App1) now I have made some changes to the project of that user control.(App2) the exe,dll,etc of all these projects all are on the same folder and of course App1 has a refrence to App2. should I delete the user control on my Application1 and drop it on it again with the user control that has the latest changes Or because it gets the latest control because it is being referenced by App1?
c#
windows
null
null
null
null
open
Do I need to redraw my control on the consumer form if I have updated it? === there is a user control on my Application.(App1) now I have made some changes to the project of that user control.(App2) the exe,dll,etc of all these projects all are on the same folder and of course App1 has a refrence to App2. should I delete the user control on my Application1 and drop it on it again with the user control that has the latest changes Or because it gets the latest control because it is being referenced by App1?
0
11,349,112
07/05/2012 17:04:25
1,504,686
07/05/2012 16:48:23
1
0
Using Python to make GUI in browser
I want to have a GUI in a webpage that will allow the user to enter parameters and then run a simple python program and return a graph with the result. I have looked into using IronPython to do this but I have not been able to get it to work. They say all you need is to link to their javascript but this doesn't work for me. I am not even sure if IronPython is the right tool to be using. Is there a better way to do this? I would like to do this without much javascript.
python
html
gui
ironpython
null
07/06/2012 04:06:50
not a real question
Using Python to make GUI in browser === I want to have a GUI in a webpage that will allow the user to enter parameters and then run a simple python program and return a graph with the result. I have looked into using IronPython to do this but I have not been able to get it to work. They say all you need is to link to their javascript but this doesn't work for me. I am not even sure if IronPython is the right tool to be using. Is there a better way to do this? I would like to do this without much javascript.
1
6,819,989
07/25/2011 17:29:11
861,323
07/25/2011 10:15:39
1
0
can anyone please tell me why i cant execute such codes in my python shell
>>> try: ... x = int("a lot") ... except items["error"] as e: # Same as except ValueError as e ... print("Couldn't convert") ... Can anyone tell me why I am not able to run these lines in my shell?.
python
null
null
null
null
05/24/2012 03:39:00
not a real question
can anyone please tell me why i cant execute such codes in my python shell === >>> try: ... x = int("a lot") ... except items["error"] as e: # Same as except ValueError as e ... print("Couldn't convert") ... Can anyone tell me why I am not able to run these lines in my shell?.
1
5,735,902
04/20/2011 19:58:10
569,466
01/09/2011 21:20:04
286
0
how to open all *.xml files on my computer by my C# program ?
i made C# program that open and show xml files. how to make (on my program installation) that all *.xml files that in my computer will opened with my program ? thanks in advance
c#
winforms
installation
null
null
null
open
how to open all *.xml files on my computer by my C# program ? === i made C# program that open and show xml files. how to make (on my program installation) that all *.xml files that in my computer will opened with my program ? thanks in advance
0
11,199,650
06/26/2012 01:27:10
1,481,426
06/26/2012 01:23:46
1
0
Android Google Maps API overlay icon drawing - cannot find symbol variable icon
Android Google Maps API overlay icon drawing - cannot find symbol variable icon. Drawable drawable = this.getResources().getDrawable(R.drawable.icon);
java
android
google-maps
null
null
null
open
Android Google Maps API overlay icon drawing - cannot find symbol variable icon === Android Google Maps API overlay icon drawing - cannot find symbol variable icon. Drawable drawable = this.getResources().getDrawable(R.drawable.icon);
0
5,629,547
04/12/2011 01:50:01
330,561
05/01/2010 21:19:00
182
5
Calls-per-day rate limiting in ASP.NET MVC 3?
I've seen Jarrod Dixon's solution (http://stackoverflow.com/questions/33969/best-way-to-implement-request-throttling-in-asp-net-mvc/1318059#1318059) for implementing calls-per-second rate limiting. I'm now trying to figure out how to build a similar filter for N-calls-per-day. I am building a developer API where free accounts get ~100 calls per day and paid accounts get a higher rate limit. What's the best way to do calls-per-day rate limiting in MVC 3?
asp.net-mvc-3
rate-limiting
null
null
null
null
open
Calls-per-day rate limiting in ASP.NET MVC 3? === I've seen Jarrod Dixon's solution (http://stackoverflow.com/questions/33969/best-way-to-implement-request-throttling-in-asp-net-mvc/1318059#1318059) for implementing calls-per-second rate limiting. I'm now trying to figure out how to build a similar filter for N-calls-per-day. I am building a developer API where free accounts get ~100 calls per day and paid accounts get a higher rate limit. What's the best way to do calls-per-day rate limiting in MVC 3?
0
2,069,640
01/15/2010 05:10:33
251,298
01/15/2010 05:10:33
1
0
Different Open Source Document Management systems
HI all, Could anyone suggest some good Web based Open source Document Management systems ,other than WSS
open
source
document
management
systems
10/24/2011 00:42:01
not constructive
Different Open Source Document Management systems === HI all, Could anyone suggest some good Web based Open source Document Management systems ,other than WSS
4
9,196,817
02/08/2012 15:57:44
454,226
09/21/2010 16:59:56
41
2
How do I include flow-tools in a C++ program?
In our C++ program we want to process NetFlow data. The only tool for doing this that we've found is [flow-tools](http://www.splintered.net/sw/flow-tools/), which we've installed and are running perfectly from the command line (Linux). flow-tools is written in c, therefore we thought it might be possible to use it as a library in a c++ program, but we have no idea how to do this. The gzip for flow-tools, ftp://ftp.eng.oar.net/pub/flow-tools/flow-tools-0.66.tar.gz, includes the c-source of the files, and the dependencies are in the lib-folder. Is it at all possible to do this, and how? Might there be an alternative to flow-tools?
c++
c
linux
include
netflow
null
open
How do I include flow-tools in a C++ program? === In our C++ program we want to process NetFlow data. The only tool for doing this that we've found is [flow-tools](http://www.splintered.net/sw/flow-tools/), which we've installed and are running perfectly from the command line (Linux). flow-tools is written in c, therefore we thought it might be possible to use it as a library in a c++ program, but we have no idea how to do this. The gzip for flow-tools, ftp://ftp.eng.oar.net/pub/flow-tools/flow-tools-0.66.tar.gz, includes the c-source of the files, and the dependencies are in the lib-folder. Is it at all possible to do this, and how? Might there be an alternative to flow-tools?
0
308,450
11/21/2008 11:14:08
15,124
09/17/2008 06:17:51
3,445
209
Netbeans or Eclipse for C++?
I'm currently working on a pet project and need to do C++ development on Windows, Mac, Linux, and Solaris, and I've narrowed it down to Netbeans and Eclipse, so I was wonderig which is more solid as a C++ editor. I just need solid editing, good autocompletion for templated code ad external libraries, and project file management, the build tools are external, so thats irrelevant here, for my comparison. Thus which is a better choice? Note: I know I should be using emacs or vim, but the issue is, my theory at least, that I'm left handed, so I use my right side (design,creativity) of the brain more than the left side (logic, memory), so I just simply cannot use emacs or vim, my brain simply isn't compatible, I tried them many times too, even used emacs for a few months but it drove me crazy... Thanks
netbeans
eclipse
c++
null
null
11/11/2011 14:03:20
not constructive
Netbeans or Eclipse for C++? === I'm currently working on a pet project and need to do C++ development on Windows, Mac, Linux, and Solaris, and I've narrowed it down to Netbeans and Eclipse, so I was wonderig which is more solid as a C++ editor. I just need solid editing, good autocompletion for templated code ad external libraries, and project file management, the build tools are external, so thats irrelevant here, for my comparison. Thus which is a better choice? Note: I know I should be using emacs or vim, but the issue is, my theory at least, that I'm left handed, so I use my right side (design,creativity) of the brain more than the left side (logic, memory), so I just simply cannot use emacs or vim, my brain simply isn't compatible, I tried them many times too, even used emacs for a few months but it drove me crazy... Thanks
4
7,871,842
10/24/2011 06:08:44
222,356
12/01/2009 19:03:52
125
6
advantages of stateful programming?
i was wondering about the benefits of stateless programming, and found someone who shared my question: http://stackoverflow.com/questions/844536/advantages-of-stateless-programming as i read through the answers though, it made me curious about the converse question. what are the advantages of stateful programming? seems like there's a lot of focus on stateless code recently but i'm wary of trends. off the top of my head, i'd say that stateful code is generally more legible, but that's not necessarily the case, particularly when states are manipulated unexpectedly. stateful code is i suppose also easier to serialize. other thoughts?
functional-programming
mutable
stateless
procedural-programming
stateful
10/24/2011 07:43:27
not constructive
advantages of stateful programming? === i was wondering about the benefits of stateless programming, and found someone who shared my question: http://stackoverflow.com/questions/844536/advantages-of-stateless-programming as i read through the answers though, it made me curious about the converse question. what are the advantages of stateful programming? seems like there's a lot of focus on stateless code recently but i'm wary of trends. off the top of my head, i'd say that stateful code is generally more legible, but that's not necessarily the case, particularly when states are manipulated unexpectedly. stateful code is i suppose also easier to serialize. other thoughts?
4
4,642,105
01/09/2011 21:56:06
223,367
12/02/2009 23:52:01
1,464
4
What is the a more ruby way or doing this command
I want do this sender_email = @request.user.paypal_email if @request.user.paypal_email == "paypal@anonymous.com" So basically I want to only execute the command if the users paypal email is "paypal@anonymous.com"...this works fine but it seems like there is room for refacting ...any suggestions
ruby-on-rails
ruby
null
null
null
null
open
What is the a more ruby way or doing this command === I want do this sender_email = @request.user.paypal_email if @request.user.paypal_email == "paypal@anonymous.com" So basically I want to only execute the command if the users paypal email is "paypal@anonymous.com"...this works fine but it seems like there is room for refacting ...any suggestions
0
1,887,642
12/11/2009 12:05:17
196,480
10/26/2009 07:45:38
46
2
How do i use Double Datatype in flex?
please help me ............
flex
null
null
null
null
10/21/2011 20:15:54
not a real question
How do i use Double Datatype in flex? === please help me ............
1
8,719,545
01/03/2012 22:28:32
117,700
06/04/2009 23:04:34
1,127
19
importing data that is unique - c#/sql server solution
we periodically need to import a CSV that looks like this: Name,SpecID,TestResult1,TestResult2,TestResult3 Alex,ASD123,3.23,452.2,232 Craig,DFG444,453.56,345.3,23 the data gets stored this way: SPECIMENTABLE (name,specid,SPECIMENTABLEID) Alex,ASD123,1 Craig,DFG444,2 and RESULTTABLE (testresult,result,SPECIMENTABLEID) TestResult1,3.23,1 TestResult2,452.2,1 TestResult3,232,1 TestResult1, 453.56,2 etc im dumping the data like this: public void DumpQuickLabDump() { // T-SQL Connection string connection = "Data Source=gaia;Initial Catalog=SalesDWH;Integrated Security=True"; // Get the data into the DataTable //dtData = GetData(...); // Create an object of SqlBulkCopy SqlBulkCopy objSBC = new SqlBulkCopy(connection); // Specify the destination table objSBC.BulkCopyTimeout = 0; objSBC.BatchSize = 10000; objSBC.DestinationTableName = "SpecimenTable"; // Write the data to the SQL Server objSBC.WriteToServer(QuickLabDump); } public void DumpTestResults() { // T-SQL Connection string connection = "Data Source=gaia;Initial Catalog=SalesDWH;Integrated Security=True"; // Get the data into the DataTable //dtData = GetData(...); // Create an object of SqlBulkCopy SqlBulkCopy objSBC = new SqlBulkCopy(connection); // Specify the destination table objSBC.BulkCopyTimeout = 0; objSBC.BatchSize = 10000; objSBC.DestinationTableName = "ResultTable"; // Write the data to the SQL Server objSBC.WriteToServer(TestResults); } sometimes the client will submit a CSV to me for uploading and then several days later, they will import another CSV but it will have a percentage of the SAME RECORDS. how do i avoid duplicating the data? (please keep in mind that two tables are getting populated in the database from the one CSV file) the solution can be .NET or sql. thank you so much
c#
sql
sql-server
sql-server-2008
null
null
open
importing data that is unique - c#/sql server solution === we periodically need to import a CSV that looks like this: Name,SpecID,TestResult1,TestResult2,TestResult3 Alex,ASD123,3.23,452.2,232 Craig,DFG444,453.56,345.3,23 the data gets stored this way: SPECIMENTABLE (name,specid,SPECIMENTABLEID) Alex,ASD123,1 Craig,DFG444,2 and RESULTTABLE (testresult,result,SPECIMENTABLEID) TestResult1,3.23,1 TestResult2,452.2,1 TestResult3,232,1 TestResult1, 453.56,2 etc im dumping the data like this: public void DumpQuickLabDump() { // T-SQL Connection string connection = "Data Source=gaia;Initial Catalog=SalesDWH;Integrated Security=True"; // Get the data into the DataTable //dtData = GetData(...); // Create an object of SqlBulkCopy SqlBulkCopy objSBC = new SqlBulkCopy(connection); // Specify the destination table objSBC.BulkCopyTimeout = 0; objSBC.BatchSize = 10000; objSBC.DestinationTableName = "SpecimenTable"; // Write the data to the SQL Server objSBC.WriteToServer(QuickLabDump); } public void DumpTestResults() { // T-SQL Connection string connection = "Data Source=gaia;Initial Catalog=SalesDWH;Integrated Security=True"; // Get the data into the DataTable //dtData = GetData(...); // Create an object of SqlBulkCopy SqlBulkCopy objSBC = new SqlBulkCopy(connection); // Specify the destination table objSBC.BulkCopyTimeout = 0; objSBC.BatchSize = 10000; objSBC.DestinationTableName = "ResultTable"; // Write the data to the SQL Server objSBC.WriteToServer(TestResults); } sometimes the client will submit a CSV to me for uploading and then several days later, they will import another CSV but it will have a percentage of the SAME RECORDS. how do i avoid duplicating the data? (please keep in mind that two tables are getting populated in the database from the one CSV file) the solution can be .NET or sql. thank you so much
0
705,502
04/01/2009 13:34:36
80,347
03/20/2009 06:40:49
1
1
Why does Microsoft's C compiler want the variables at the beginnig of the function?
I am currently writing a C (not C++). It seems the Microsoft's C compiler requires all variables to be declared on top of the function. For example, the following code will not pass compilation: int foo(int x) { assert(x != 0); int y = 2 * x; return y; } The compiler reports an error at the third line, saying error C2143: syntax error : missing ';' before 'type' If the code is changed to be like below it will pass compilation: int foo(int x) { int y; assert(x != 0); y = 2 * x; return y; } If I change the source file name from `.c` to be `.cpp`, the compilation will also pass as well. I suspect there's an option somewhere to turn off the strictness of the compiler, but I haven't found it. Can anyone help on this? Thanks in advance.
c
c++
null
null
null
null
open
Why does Microsoft's C compiler want the variables at the beginnig of the function? === I am currently writing a C (not C++). It seems the Microsoft's C compiler requires all variables to be declared on top of the function. For example, the following code will not pass compilation: int foo(int x) { assert(x != 0); int y = 2 * x; return y; } The compiler reports an error at the third line, saying error C2143: syntax error : missing ';' before 'type' If the code is changed to be like below it will pass compilation: int foo(int x) { int y; assert(x != 0); y = 2 * x; return y; } If I change the source file name from `.c` to be `.cpp`, the compilation will also pass as well. I suspect there's an option somewhere to turn off the strictness of the compiler, but I haven't found it. Can anyone help on this? Thanks in advance.
0
11,340,474
07/05/2012 08:24:30
1,492,955
06/30/2012 11:58:25
1
0
Clear cache for java application
i am trying to write a program that detects when the headphones are plugged into the system and then run another piece of code when you remove the headphones. The code is working fine but the problem that i am facing is that the status of the device is getting cached so only 1 minute after i pull out the headphones does my program detect that it has been removed. This happens when i run the code is a endless while loop. but if i run single instances not in a loop it shows the correct status immediately on the run here is the code : public class Headphonecheck { public static int hpfound = 0; public static int hpnfound =0; public static void isHeadphoneAvailable() { while (true) { if (!AudioSystem.isLineSupported(Port.Info.HEADPHONE) && hpnfound ==0) { System.out.println("NO HEADPHONE FOUND"); System.out.println("Do something else"); hpfound = 0; hpnfound = 1; } else { if(AudioSystem.isLineSupported(Port.Info.HEADPHONE) && hpfound ==0){ System.out.println("HEADPHONE FOUND"); System.out.println("Do something"); hpnfound = 0; hpfound =1; } } } //close while } public static void main (String[] args){ isHeadphoneAvailable(); } } if you remove the while loop and run the code it works perfectly for single run .. i.e. you plug in the headphones and run the code it shows HEADPHONE FOUND and then when you remove the headphones and run the code it shows NO HEADPHONE FOUND. in the while loop once if you have the headphone in and run the code it shows HEADPHONE FOUND and then if you remove the headphone immediately it takes about 50 secs to show NO HEADPHONE FOUND. this is because it is caching it for 50 secs and then clearing the cache HOW DO I STOP IT FROM CACHING OR CLEAR THE CACHE
java
caching
audio
javasound
null
null
open
Clear cache for java application === i am trying to write a program that detects when the headphones are plugged into the system and then run another piece of code when you remove the headphones. The code is working fine but the problem that i am facing is that the status of the device is getting cached so only 1 minute after i pull out the headphones does my program detect that it has been removed. This happens when i run the code is a endless while loop. but if i run single instances not in a loop it shows the correct status immediately on the run here is the code : public class Headphonecheck { public static int hpfound = 0; public static int hpnfound =0; public static void isHeadphoneAvailable() { while (true) { if (!AudioSystem.isLineSupported(Port.Info.HEADPHONE) && hpnfound ==0) { System.out.println("NO HEADPHONE FOUND"); System.out.println("Do something else"); hpfound = 0; hpnfound = 1; } else { if(AudioSystem.isLineSupported(Port.Info.HEADPHONE) && hpfound ==0){ System.out.println("HEADPHONE FOUND"); System.out.println("Do something"); hpnfound = 0; hpfound =1; } } } //close while } public static void main (String[] args){ isHeadphoneAvailable(); } } if you remove the while loop and run the code it works perfectly for single run .. i.e. you plug in the headphones and run the code it shows HEADPHONE FOUND and then when you remove the headphones and run the code it shows NO HEADPHONE FOUND. in the while loop once if you have the headphone in and run the code it shows HEADPHONE FOUND and then if you remove the headphone immediately it takes about 50 secs to show NO HEADPHONE FOUND. this is because it is caching it for 50 secs and then clearing the cache HOW DO I STOP IT FROM CACHING OR CLEAR THE CACHE
0
2,650,689
04/16/2010 04:52:00
304,825
03/30/2010 06:05:13
1
0
Changing the way Package's are displayed in eclipse
Currently my eclipse source folder display the entire package path and java files under that path. Is there some setting that i change and see subpackages+(java)files under parent packages. for e.g. src/main/java com.company.packageA a.java com.company.packageA.subpackageA suba.java becomes src/main/java com.company.packageA subpackageA a.java
eclipse
null
null
null
null
null
open
Changing the way Package's are displayed in eclipse === Currently my eclipse source folder display the entire package path and java files under that path. Is there some setting that i change and see subpackages+(java)files under parent packages. for e.g. src/main/java com.company.packageA a.java com.company.packageA.subpackageA suba.java becomes src/main/java com.company.packageA subpackageA a.java
0
4,851,995
01/31/2011 14:27:11
410,560
08/04/2010 09:04:35
115
1
Serialize a struct and send it via socket with C++
i would send a struct via C++ sockets. This is an example struct: struct PIPPO { int x; int y; }; that i use with: PIPPO test2; test2.x = 10; test2.y = 20; and I have the code above to serialize and send it via socket. The problem is that if I try to get the HEX value of the test variable i only see 0A and infact on the other computer that receives the data I cannot convert back the binary data into a struct. Can someone help me? template <class T> void SerializeData(char *outputArray, T inputData) { memcpy(outputArray, &inputData, sizeof(inputData)); } char *StrToHexStr(char *str) { char *newstr = new char[(strlen(str)*2)+1]; char *cpold = str; char *cpnew = newstr; while('\0' != *cpold) { sprintf(cpnew, "%02X", (char)(*cpold++)); cpnew+=2; } *(cpnew) = '\0'; return(newstr); } char *test = new char[sizeof(PIPPO)]; memcpy((void *)&test, (void *)&test2, sizeof(test2)); send(this->m_socket, test, strlen(test), 0);
c++
sockets
serialization
null
null
null
open
Serialize a struct and send it via socket with C++ === i would send a struct via C++ sockets. This is an example struct: struct PIPPO { int x; int y; }; that i use with: PIPPO test2; test2.x = 10; test2.y = 20; and I have the code above to serialize and send it via socket. The problem is that if I try to get the HEX value of the test variable i only see 0A and infact on the other computer that receives the data I cannot convert back the binary data into a struct. Can someone help me? template <class T> void SerializeData(char *outputArray, T inputData) { memcpy(outputArray, &inputData, sizeof(inputData)); } char *StrToHexStr(char *str) { char *newstr = new char[(strlen(str)*2)+1]; char *cpold = str; char *cpnew = newstr; while('\0' != *cpold) { sprintf(cpnew, "%02X", (char)(*cpold++)); cpnew+=2; } *(cpnew) = '\0'; return(newstr); } char *test = new char[sizeof(PIPPO)]; memcpy((void *)&test, (void *)&test2, sizeof(test2)); send(this->m_socket, test, strlen(test), 0);
0
6,289,020
06/09/2011 06:43:39
541,976
12/14/2010 13:00:43
98
0
symfony file-input widget problem
in my RcProfileTableForm.class.php i have this line for file input: $this->widgetSchema['file'] = new sfWidgetFormInputFile(array('label' => 'Profile Pic'),array('class' => 'file_input')); on my form i have the lable as Profile Pic as above, then the button to click to open the browser to choose the input file and next to that i have the wording "No file chosen". if you do choose a file, the filename will appear there. my problem now is: i cannot find in all of my code where that string is defined - No file chosen????? i need to make that string RED and cannot find it anywhere...is this a symfony(1.4.5) thing??? can some-one please help? thank you
symfony
symfony-forms
symfony-1.4
null
null
null
open
symfony file-input widget problem === in my RcProfileTableForm.class.php i have this line for file input: $this->widgetSchema['file'] = new sfWidgetFormInputFile(array('label' => 'Profile Pic'),array('class' => 'file_input')); on my form i have the lable as Profile Pic as above, then the button to click to open the browser to choose the input file and next to that i have the wording "No file chosen". if you do choose a file, the filename will appear there. my problem now is: i cannot find in all of my code where that string is defined - No file chosen????? i need to make that string RED and cannot find it anywhere...is this a symfony(1.4.5) thing??? can some-one please help? thank you
0
5,233,570
03/08/2011 14:09:34
389,200
07/12/2010 05:12:35
159
3
how to integrate Bhoositukra with .net?
How to integrate Bhoositukra with .net?
.net
null
null
null
null
03/08/2011 14:21:01
not a real question
how to integrate Bhoositukra with .net? === How to integrate Bhoositukra with .net?
1
4,068,986
11/01/2010 12:48:44
357,261
06/03/2010 08:59:33
444
0
how to cart items for shoping cart
could some body how can i cart items for shopping cart application ...i am really new to web development and i want to create a shopping cart and want to cart items in it please suggest me how should i cart items
asp.net
null
null
null
null
11/01/2010 12:57:55
not a real question
how to cart items for shoping cart === could some body how can i cart items for shopping cart application ...i am really new to web development and i want to create a shopping cart and want to cart items in it please suggest me how should i cart items
1
2,940,156
05/30/2010 20:22:16
48,771
12/23/2008 22:50:17
404
7
In Ruby, MongoDB returns a BSON::OrderedHash. How to I covert it to JSON? Using to_json give a "stack level too deep" error.
I am trying to make a web service using Ruby Sinatra and MongoDB. It will return JSON objects. I decided to use MongoDB, in part, because it stores documents internally in a "JSON-like" structure. I thought this would make it easy to me to run a query and send a JSON result to the client. However, I have run into problems converting the results from MongoDB into JSON. MongoDB's find_one() returns a BSON::OrderedHash. From the [documentation][1] it seems like this should behave similar to Ruby's Hash type. When I try to convert it to JSON using the .to_json function, I get a "stack level too deep" error. Trying to convert an identical works just fine. This code works like I would expect: require "json" my_hash = Hash.new my_hash[ "a" ] = "aaa" my_hash[ "b" ] = 9 puts my_hash.to_json This code produces `to_json': stack level too deep (SystemStackError): require "json" require "bson" my_bson = BSON::OrderedHash.new my_bson[ "a" ] = "aaa" my_bson[ "b" ] = 9 puts my_bson.to_json Trying to convert to hash first didn't help. Same error. puts my_bson.to_hash.to_json Why am I getting the stack level too deep error? This is a simple hash. Is there an easy to to convert the MongoDB results to JSON? I don't want to write a conversion function that is specific to my data. That defeats the point of have a schemaless database. [1]: http://api.mongodb.org/ruby/1.0.2/BSON/OrderedHash.html
ruby
json
mongodb
null
null
07/24/2012 12:10:52
too localized
In Ruby, MongoDB returns a BSON::OrderedHash. How to I covert it to JSON? Using to_json give a "stack level too deep" error. === I am trying to make a web service using Ruby Sinatra and MongoDB. It will return JSON objects. I decided to use MongoDB, in part, because it stores documents internally in a "JSON-like" structure. I thought this would make it easy to me to run a query and send a JSON result to the client. However, I have run into problems converting the results from MongoDB into JSON. MongoDB's find_one() returns a BSON::OrderedHash. From the [documentation][1] it seems like this should behave similar to Ruby's Hash type. When I try to convert it to JSON using the .to_json function, I get a "stack level too deep" error. Trying to convert an identical works just fine. This code works like I would expect: require "json" my_hash = Hash.new my_hash[ "a" ] = "aaa" my_hash[ "b" ] = 9 puts my_hash.to_json This code produces `to_json': stack level too deep (SystemStackError): require "json" require "bson" my_bson = BSON::OrderedHash.new my_bson[ "a" ] = "aaa" my_bson[ "b" ] = 9 puts my_bson.to_json Trying to convert to hash first didn't help. Same error. puts my_bson.to_hash.to_json Why am I getting the stack level too deep error? This is a simple hash. Is there an easy to to convert the MongoDB results to JSON? I don't want to write a conversion function that is specific to my data. That defeats the point of have a schemaless database. [1]: http://api.mongodb.org/ruby/1.0.2/BSON/OrderedHash.html
3
6,879,225
07/29/2011 21:28:30
27,134
10/11/2008 22:39:20
120
4
git vs. subversion
I'm looking for ammunition to convince a customer to switch from subversion to git for handling the _large_ source code it has to manage. I'm personally convinced of the benefits with git after researching the topic quite thoroughly for a a few weeks, I have also used it in a few smaller private projects where it really shone. My customer will likely be more persuaded by objective monetary benefits than my personal anecdotes. Are there any studies of version control studies programs that can show the benefits of alternatives to svn in an objective way?
git
svn
version-control
dvcs
null
07/29/2011 22:11:30
not constructive
git vs. subversion === I'm looking for ammunition to convince a customer to switch from subversion to git for handling the _large_ source code it has to manage. I'm personally convinced of the benefits with git after researching the topic quite thoroughly for a a few weeks, I have also used it in a few smaller private projects where it really shone. My customer will likely be more persuaded by objective monetary benefits than my personal anecdotes. Are there any studies of version control studies programs that can show the benefits of alternatives to svn in an objective way?
4
8,738,465
01/05/2012 06:22:09
379,122
06/29/2010 14:54:45
135
4
What is the best way to get our Person into our User using spring jdbcTemplate
I have two domain objects: 1. User (which has a Person) 2. Person **FYI**: In our domain there are Persons (people :-) that are not users so we can't just combine them. I am trying to figure out the best way of getting the Person object populated into the User object. I have come up with 3 possible solutions and was curious what others have done and any pros and cons that others can see. **Option 1:** Have our UserDao and PersonDao wired into our Userservice and then have `userService.getUser(userId)` call the `userDAO.getUser(userId)` then take the user we get back from that and call `user.setPerson(personDao.getPerson(user.getPersonId()))` **Pros**: Don't have to wire in a dao inside a dao (isn't that bad...not sure) **Cons**: Something seems wrong about having the dao return a domain object that isn't fully initialized right? Then you have to worry about whether or not there is a person in the User object. Hitting the database twice. Also you then have to add a personId to the User object instead of just having a Person object. **Option 2:** Have the UserDao's getUser() method join the user table with the person table and then inside the UserRowMapper setup the user and then call `user.setPerson(personRowMapper.mapRow(rs, rowNum))` **Pros**: Don't have to wire in a dao inside a dao (isn't that bad...not sure). Also you only hit the database once instead of hitting the database twice in the other to options. **Cons**: The PersonRowMapper would be its own class and not encapsulated in the PersonDao (should it be?). **Option 3:** Have the PersonDao wired into the UserDao and the just call `user.setPerson(personDao.getPerson(rs.getLong("person_id")));` **Pros**: The personDao is in charge of getting the Person domain object and the userDao doesn't need to know details about how that person was retrieved. **Cons**: The personDao is wired into the userDao (is that bad?). Hitting the database twice.
domain-driven-design
dao
jdbctemplate
null
null
null
open
What is the best way to get our Person into our User using spring jdbcTemplate === I have two domain objects: 1. User (which has a Person) 2. Person **FYI**: In our domain there are Persons (people :-) that are not users so we can't just combine them. I am trying to figure out the best way of getting the Person object populated into the User object. I have come up with 3 possible solutions and was curious what others have done and any pros and cons that others can see. **Option 1:** Have our UserDao and PersonDao wired into our Userservice and then have `userService.getUser(userId)` call the `userDAO.getUser(userId)` then take the user we get back from that and call `user.setPerson(personDao.getPerson(user.getPersonId()))` **Pros**: Don't have to wire in a dao inside a dao (isn't that bad...not sure) **Cons**: Something seems wrong about having the dao return a domain object that isn't fully initialized right? Then you have to worry about whether or not there is a person in the User object. Hitting the database twice. Also you then have to add a personId to the User object instead of just having a Person object. **Option 2:** Have the UserDao's getUser() method join the user table with the person table and then inside the UserRowMapper setup the user and then call `user.setPerson(personRowMapper.mapRow(rs, rowNum))` **Pros**: Don't have to wire in a dao inside a dao (isn't that bad...not sure). Also you only hit the database once instead of hitting the database twice in the other to options. **Cons**: The PersonRowMapper would be its own class and not encapsulated in the PersonDao (should it be?). **Option 3:** Have the PersonDao wired into the UserDao and the just call `user.setPerson(personDao.getPerson(rs.getLong("person_id")));` **Pros**: The personDao is in charge of getting the Person domain object and the userDao doesn't need to know details about how that person was retrieved. **Cons**: The personDao is wired into the userDao (is that bad?). Hitting the database twice.
0
2,531,088
03/27/2010 21:50:30
255,355
01/20/2010 23:24:37
34
1
Read options from file
I would like to write a function which will read values from a text file and write them to variables. For example my file is: mysql_server localhost mysql_user root mysql_passworg abcdefg mysql_database testgenerator log log.txt username admin password abcd and I have the same variables as the first word in the line. So how to make the function read data from file and do sth like this: char *mysql_server = localhost; char *mysql_user = root; ... I have no idea even how to start writing it...
c
file
null
null
null
null
open
Read options from file === I would like to write a function which will read values from a text file and write them to variables. For example my file is: mysql_server localhost mysql_user root mysql_passworg abcdefg mysql_database testgenerator log log.txt username admin password abcd and I have the same variables as the first word in the line. So how to make the function read data from file and do sth like this: char *mysql_server = localhost; char *mysql_user = root; ... I have no idea even how to start writing it...
0
9,403,875
02/22/2012 22:08:08
1,207,291
02/13/2012 16:47:40
55
6
How to now why my Browser say a lot of Error: The operation couldn't be completed (NSURLErrorDomain error -999)
I'm doing a Browser, and I got a lot of times this error, does somebody knows why?
objective-c
ios
null
null
null
02/24/2012 03:13:45
not a real question
How to now why my Browser say a lot of Error: The operation couldn't be completed (NSURLErrorDomain error -999) === I'm doing a Browser, and I got a lot of times this error, does somebody knows why?
1
6,322,630
06/12/2011 15:03:11
420,941
08/15/2010 12:09:06
123
2
Should I create a guest user in my "demo" website
I am planning to create few websites to show in my portfolio (so they are not for real clients) the website I am working on, in order to use it you need to register and log in I am thinking, if a possible client wants to see this website - would they "have time" to register, or should I provide a guest username and password? in a real situation, this would not be a good idea, but in this case, where I just want to "show off" what I can do - do you think I should create a guest user or not thanks
session
login
null
null
null
06/12/2011 15:11:57
not constructive
Should I create a guest user in my "demo" website === I am planning to create few websites to show in my portfolio (so they are not for real clients) the website I am working on, in order to use it you need to register and log in I am thinking, if a possible client wants to see this website - would they "have time" to register, or should I provide a guest username and password? in a real situation, this would not be a good idea, but in this case, where I just want to "show off" what I can do - do you think I should create a guest user or not thanks
4
7,535,713
09/23/2011 23:05:49
286,802
03/05/2010 03:13:31
2,028
3
How can I check if the android phone is charging
I am writing an android application. I would like to know how can I check if the phone is charging when my application starts? I have read this http://stackoverflow.com/questions/6243452/how-to-know-if-the-phone-is-charging But this only register and get notified when there is a change in charging state of the phone (from charging to stop charging or vice versa). But what if the phone is charging when my application starts, how can I cover that case? I have looked up PowerManager and USBManager in android. Neither has API which provides what I need. Thank you.
android
null
null
null
null
null
open
How can I check if the android phone is charging === I am writing an android application. I would like to know how can I check if the phone is charging when my application starts? I have read this http://stackoverflow.com/questions/6243452/how-to-know-if-the-phone-is-charging But this only register and get notified when there is a change in charging state of the phone (from charging to stop charging or vice versa). But what if the phone is charging when my application starts, how can I cover that case? I have looked up PowerManager and USBManager in android. Neither has API which provides what I need. Thank you.
0
6,100,572
05/23/2011 17:17:35
759,100
05/02/2011 09:35:28
33
0
newsletter in c#
i am using c# to send mail. in my mail i used three images one for background, one for headerimage and last for footer image.. but the problem is i am not getting the background image when i recieve the mail.. my code for the image is: imgAtt.ContentId = "Winter.jpg"; ingatt1.ContentId = "images5.jpg"; MailMessage mail = new MailMessage(); mail.To.Add(to); mail.From = new MailAddress(from); mail.Subject = "In line image test"; mail.Body = "<html><body>" + "<div style=\"width:300px; height:300px;border:4px solid; background-image:'cid:"+ingAtt.ContentId+"\"> " + "<center>" + "<img style=\"width:100px; height:100px;\" src=\'cid:" + imgAtt.ContentId + "' /> " + "</center>" + "</div> " + "</body>" + "</html>"; mail.IsBodyHtml = true; please someone help me..
c#
html
null
null
null
05/25/2011 08:39:04
too localized
newsletter in c# === i am using c# to send mail. in my mail i used three images one for background, one for headerimage and last for footer image.. but the problem is i am not getting the background image when i recieve the mail.. my code for the image is: imgAtt.ContentId = "Winter.jpg"; ingatt1.ContentId = "images5.jpg"; MailMessage mail = new MailMessage(); mail.To.Add(to); mail.From = new MailAddress(from); mail.Subject = "In line image test"; mail.Body = "<html><body>" + "<div style=\"width:300px; height:300px;border:4px solid; background-image:'cid:"+ingAtt.ContentId+"\"> " + "<center>" + "<img style=\"width:100px; height:100px;\" src=\'cid:" + imgAtt.ContentId + "' /> " + "</center>" + "</div> " + "</body>" + "</html>"; mail.IsBodyHtml = true; please someone help me..
3
10,976,133
06/11/2012 07:41:32
1,448,371
06/11/2012 07:32:05
1
0
multiplay in php
I'm still beginner in PHP. I have a small problem, I would to multiply the value "get_formatted_order_total();" with 3.75 and what I did is[ `get_formatted_order_total(); * 3.75` ] but It didn't work. here is the code c`<li class="total"> <?php _e('Total:', 'woocommerce'); ?> <strong><?php echo $order->get_formatted_order_total(); ?></strong> </li>` Thank You
php
wordpress
null
null
null
null
open
multiplay in php === I'm still beginner in PHP. I have a small problem, I would to multiply the value "get_formatted_order_total();" with 3.75 and what I did is[ `get_formatted_order_total(); * 3.75` ] but It didn't work. here is the code c`<li class="total"> <?php _e('Total:', 'woocommerce'); ?> <strong><?php echo $order->get_formatted_order_total(); ?></strong> </li>` Thank You
0
4,293,951
11/27/2010 21:16:10
136,396
07/10/2009 16:51:48
188
3
Invalid chunked encoding error on wordpress css download.
I have a wordpress site that intermittently displays incorrectly due to a bad css url being served to the client (by apache). I have tracked down the problem to the css file being somehow linked to with an incorrect link: siteexample.com/wp-content/themes/twentyten/ce.bf1f3e76cdf43e6250526a554c555315.style,s.css this file doesn't actually exist on the filesystem, which leads me to believe it is generated on the fly and served by apache through a possible tempfile. This functionality does indeed work on some of my other sites and I can click the link in question and load the css file (for those sites the theme is working correctly as well. If I view the page source and click the bad link it gives me an error (In google chrome): Error 321 (net::ERR_INVALID_CHUNKED_ENCODING): Unknown error. Now noticing the "ce.bf1f3e"... on the beginning of the bad css url, the "ce" could be a prefix for "chunked encoding", but I am not aware of how this url is being generated in the first place. If it is on the apache side or on the wordpress side. How can I turn off chunked encoding or force the css url to be given to the client as it exists on the filesystem as "style.css"?
css
apache
http
wordpress
null
null
open
Invalid chunked encoding error on wordpress css download. === I have a wordpress site that intermittently displays incorrectly due to a bad css url being served to the client (by apache). I have tracked down the problem to the css file being somehow linked to with an incorrect link: siteexample.com/wp-content/themes/twentyten/ce.bf1f3e76cdf43e6250526a554c555315.style,s.css this file doesn't actually exist on the filesystem, which leads me to believe it is generated on the fly and served by apache through a possible tempfile. This functionality does indeed work on some of my other sites and I can click the link in question and load the css file (for those sites the theme is working correctly as well. If I view the page source and click the bad link it gives me an error (In google chrome): Error 321 (net::ERR_INVALID_CHUNKED_ENCODING): Unknown error. Now noticing the "ce.bf1f3e"... on the beginning of the bad css url, the "ce" could be a prefix for "chunked encoding", but I am not aware of how this url is being generated in the first place. If it is on the apache side or on the wordpress side. How can I turn off chunked encoding or force the css url to be given to the client as it exists on the filesystem as "style.css"?
0
8,301,407
11/28/2011 19:44:56
640,015
03/01/2011 19:50:06
377
0
Adding a user to gridView
I have a form that has a button called "Add User". When the button is clicked it adds the user information to the data grid I inserted. For some reason it doesn't do anything when I click the button. I think I have something missing from my code below. public partial class frmManageUsers : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnAddUser_Click1(object sender, EventArgs e) { string UserName, Password; if (txtUserName.Text == "" || txtUserName.Text == null) { lblError.Text = ("User Name cannot be empty"); lblError.ForeColor = System.Drawing.Color.Red; return; } else UserName = (txtUserName.Text); if (txtPassword.Text == "" || txtPassword.Text == null) { lblError.Text = ("Password cannot be empty"); lblError.ForeColor = System.Drawing.Color.Red; return; } else Password = (txtPassword.Text); Session["txtUserName"] = UserName; Session["txtPassword"] = Password; Session["txtSecurityLevel"] = txtSecurityLevel.Text; Server.Transfer("frmManageUsers.aspx"); bool result = clsDataLayer.SaveUser("PayrollSystem_DB.mdb", UserName, Password, txtSecurityLevel.Text); Server.Transfer("grdUserLogin"); } protected void drpdwnlstSecurityLevel_SelectedIndexChanged1(object sender, EventArgs e) { } }
c#
null
null
null
null
11/28/2011 20:56:37
not a real question
Adding a user to gridView === I have a form that has a button called "Add User". When the button is clicked it adds the user information to the data grid I inserted. For some reason it doesn't do anything when I click the button. I think I have something missing from my code below. public partial class frmManageUsers : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnAddUser_Click1(object sender, EventArgs e) { string UserName, Password; if (txtUserName.Text == "" || txtUserName.Text == null) { lblError.Text = ("User Name cannot be empty"); lblError.ForeColor = System.Drawing.Color.Red; return; } else UserName = (txtUserName.Text); if (txtPassword.Text == "" || txtPassword.Text == null) { lblError.Text = ("Password cannot be empty"); lblError.ForeColor = System.Drawing.Color.Red; return; } else Password = (txtPassword.Text); Session["txtUserName"] = UserName; Session["txtPassword"] = Password; Session["txtSecurityLevel"] = txtSecurityLevel.Text; Server.Transfer("frmManageUsers.aspx"); bool result = clsDataLayer.SaveUser("PayrollSystem_DB.mdb", UserName, Password, txtSecurityLevel.Text); Server.Transfer("grdUserLogin"); } protected void drpdwnlstSecurityLevel_SelectedIndexChanged1(object sender, EventArgs e) { } }
1
11,247,450
06/28/2012 15:00:59
1,488,898
06/28/2012 14:40:56
1
0
Android: How to set the max number of activity in a programme?
I am creating an application which the number of activity is a int variable, how to set?
android
variables
null
null
null
06/28/2012 19:01:36
not a real question
Android: How to set the max number of activity in a programme? === I am creating an application which the number of activity is a int variable, how to set?
1
142,357
09/26/2008 22:28:19
15,352
09/17/2008 08:34:45
84
1
What are the best Eclipse 3.4 JVM settings?
What are the best JVM settings you have found for running eclipse. <b>please post the list of settings you would use in the eclipse.ini file</b> Thanks!
eclipse
jvm
ganymede
eclipse-3.4
null
04/09/2012 12:28:20
not constructive
What are the best Eclipse 3.4 JVM settings? === What are the best JVM settings you have found for running eclipse. <b>please post the list of settings you would use in the eclipse.ini file</b> Thanks!
4
7,756,132
10/13/2011 14:58:24
258,564
01/25/2010 15:59:46
158
0
account(s) management over multiple tenants
i have an app with multiple tenants on GAE. over the 'master' (which is a tenant on its own) i let people register and create a subapp/tenant where the creator is the owner of the app. what is the best way to manage the user accounts? lets say USER_A creates APP_A and USER_B creates APP_B. so there are 2 users and 2 apps where each user is owner to the app it created and does not have access to the other users app. now USER_B wants to give access to the other user on his app. what is the best way to model this situation. should i store members in a completely separate namespace and validate the users session by switching constantly between namespaces? i think the best place to keep what permissions a specific user has on an app is on the actual app tenant rather than the USER object. any tips or best practices? thank you
python
google-app-engine
namespaces
user-accounts
null
null
open
account(s) management over multiple tenants === i have an app with multiple tenants on GAE. over the 'master' (which is a tenant on its own) i let people register and create a subapp/tenant where the creator is the owner of the app. what is the best way to manage the user accounts? lets say USER_A creates APP_A and USER_B creates APP_B. so there are 2 users and 2 apps where each user is owner to the app it created and does not have access to the other users app. now USER_B wants to give access to the other user on his app. what is the best way to model this situation. should i store members in a completely separate namespace and validate the users session by switching constantly between namespaces? i think the best place to keep what permissions a specific user has on an app is on the actual app tenant rather than the USER object. any tips or best practices? thank you
0
9,585,996
03/06/2012 14:51:15
1,176,276
01/29/2012 09:22:20
116
3
Hide registration and login links in php when a user logged in?
simply i want to hide some links when a user logged in to my website. It is common that website designer is going to display some features like register, login and forgot password as links. so I decided to use codeiginter to be my framework environment, but I still can't get login, register and forgot password to disappear when a user logged in. is there some php code I have to include in my page so the change happen when a user logged in to my website!! please share your thoughts, Thanks
php
codeigniter
login
show-hide
null
03/11/2012 18:40:49
not a real question
Hide registration and login links in php when a user logged in? === simply i want to hide some links when a user logged in to my website. It is common that website designer is going to display some features like register, login and forgot password as links. so I decided to use codeiginter to be my framework environment, but I still can't get login, register and forgot password to disappear when a user logged in. is there some php code I have to include in my page so the change happen when a user logged in to my website!! please share your thoughts, Thanks
1
11,395,520
07/09/2012 12:58:36
596,998
01/31/2011 14:43:34
780
51
oes_texture_float // floating point textures
Is it possible to somehow modify this fragment shader so that it doesn't use the oes_texture_float extension? Because I get an error on the machine which is supposed to run a webgl animation. I set up my scene using three.js webglrenderer and a cube with a shadermaterial applied to it. On My macbook pro, everything works fine, but on some windows machine I get the error "float textures not supported" (I've searched and found that this probably has to do with oes_texture_float extension) So I'm guessing I need to change my fragment shader? Or am I missing the point completely? <script type="x-shader/x-vertex" id="vertexshader"> // switch on high precision floats #ifdef GL_ES precision highp float; #endif void main() { gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); } </script> <script type="x-shader/x-fragment" id="fragmentshader"> #ifdef GL_ES precision mediump float; #endif #define PI 3.14159265 uniform float time; uniform vec2 resolution; float f(float x) { return (sin(x * 1.50 * PI ) + 19.0); } float q(vec2 p) { float s = (f(p.x + 0.85)) / 2.0; float c = smoothstep(0.9, 1.20, 1.0 - abs(p.y - s)); return c; } vec3 aurora(vec2 p, float time) { vec3 c1 = q( vec2(p.x, p.y / 0.051) + vec2(time / 3.0, -0.3)) * vec3(2.90, 0.50, 0.10); vec3 c2 = q( vec2(p.x, p.y / 0.051) + vec2(time, -0.2)) * vec3(1.3, .6, 0.3); vec3 c3 = q( vec2(p.x, p.y / 0.051) + vec2(time / 5.0, -0.5)) * vec3(1.7, 0.4, 0.20); return c1+c2+c3; } void main( void ) { vec2 p = ( gl_FragCoord.xy / resolution.xy ); vec3 c = aurora(p, time); gl_FragColor = vec4(1.0-c, c); } </script>
glsl
webgl
three.js
null
null
null
open
oes_texture_float // floating point textures === Is it possible to somehow modify this fragment shader so that it doesn't use the oes_texture_float extension? Because I get an error on the machine which is supposed to run a webgl animation. I set up my scene using three.js webglrenderer and a cube with a shadermaterial applied to it. On My macbook pro, everything works fine, but on some windows machine I get the error "float textures not supported" (I've searched and found that this probably has to do with oes_texture_float extension) So I'm guessing I need to change my fragment shader? Or am I missing the point completely? <script type="x-shader/x-vertex" id="vertexshader"> // switch on high precision floats #ifdef GL_ES precision highp float; #endif void main() { gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); } </script> <script type="x-shader/x-fragment" id="fragmentshader"> #ifdef GL_ES precision mediump float; #endif #define PI 3.14159265 uniform float time; uniform vec2 resolution; float f(float x) { return (sin(x * 1.50 * PI ) + 19.0); } float q(vec2 p) { float s = (f(p.x + 0.85)) / 2.0; float c = smoothstep(0.9, 1.20, 1.0 - abs(p.y - s)); return c; } vec3 aurora(vec2 p, float time) { vec3 c1 = q( vec2(p.x, p.y / 0.051) + vec2(time / 3.0, -0.3)) * vec3(2.90, 0.50, 0.10); vec3 c2 = q( vec2(p.x, p.y / 0.051) + vec2(time, -0.2)) * vec3(1.3, .6, 0.3); vec3 c3 = q( vec2(p.x, p.y / 0.051) + vec2(time / 5.0, -0.5)) * vec3(1.7, 0.4, 0.20); return c1+c2+c3; } void main( void ) { vec2 p = ( gl_FragCoord.xy / resolution.xy ); vec3 c = aurora(p, time); gl_FragColor = vec4(1.0-c, c); } </script>
0
8,729,472
01/04/2012 15:36:13
1,055,090
11/19/2011 08:15:51
17
0
how do i include the another file in index.php for showing the output
I've two file one is index.php another is condition.php. condition.php hold some switch statement.I wrote only one case,but there is more than 20 cases.ow do i include the another file in index.php for showing the output..here is my code: //index.php <? $xml = simplexml_load_file('http://www.google.com/ig/api?weather=dhaka'); $information = $xml->xpath("/xml_api_reply/weather/forecast_information"); $current = $xml->xpath("/xml_api_reply/weather/current_conditions"); $forecast_list = $xml->xpath("/xml_api_reply/weather/forecast_conditions"); ?> <html> <head> <title>Google Weather API</title> </head> <body> <h1><?= print $information[0]->city['data']; ?></h1> <h2>Today's weather</h2> <div class="weather"> <?php include 'condition.php'; ?> <span class="condition"> <?= $current[0]->temp_f['data'] ?>&deg; F, <?= $current[0]->condition['data'] ?> </span> </div> </body> </html> here is the condition.php switch ($cond) { case "Mostly Cloudy": $col="/test/images/weather/mostly_cloudy.png"; echo "<img src=\"$col\" alt=\"\"/>"; break; case "Thunderstorm": $col="/test/images/weather/thunderstorm.png"; echo "<img src=\"$col\" alt=\"\"/>"; break;} I posted 2 cases but there is more than 20 cases.
php
xml
php5
null
null
null
open
how do i include the another file in index.php for showing the output === I've two file one is index.php another is condition.php. condition.php hold some switch statement.I wrote only one case,but there is more than 20 cases.ow do i include the another file in index.php for showing the output..here is my code: //index.php <? $xml = simplexml_load_file('http://www.google.com/ig/api?weather=dhaka'); $information = $xml->xpath("/xml_api_reply/weather/forecast_information"); $current = $xml->xpath("/xml_api_reply/weather/current_conditions"); $forecast_list = $xml->xpath("/xml_api_reply/weather/forecast_conditions"); ?> <html> <head> <title>Google Weather API</title> </head> <body> <h1><?= print $information[0]->city['data']; ?></h1> <h2>Today's weather</h2> <div class="weather"> <?php include 'condition.php'; ?> <span class="condition"> <?= $current[0]->temp_f['data'] ?>&deg; F, <?= $current[0]->condition['data'] ?> </span> </div> </body> </html> here is the condition.php switch ($cond) { case "Mostly Cloudy": $col="/test/images/weather/mostly_cloudy.png"; echo "<img src=\"$col\" alt=\"\"/>"; break; case "Thunderstorm": $col="/test/images/weather/thunderstorm.png"; echo "<img src=\"$col\" alt=\"\"/>"; break;} I posted 2 cases but there is more than 20 cases.
0
8,456,679
12/10/2011 13:04:45
311,130
04/07/2010 15:18:03
942
18
freeware extJs designer
I want to build a web site (private POC and later maybe commercial). It will include file-browser layout. Is there any freewarw UI designer anyone can recommend for my goal? I liked ExtJs, but it's only 30 days trail and later it forces my application to be open-source, right? http://www.sencha.com/blog/ext-js-designer-preview Can I use the designer and then make custom changes and thus make my application not open source? TIA
javascript
jquery
extjs
null
null
02/06/2012 18:08:28
not constructive
freeware extJs designer === I want to build a web site (private POC and later maybe commercial). It will include file-browser layout. Is there any freewarw UI designer anyone can recommend for my goal? I liked ExtJs, but it's only 30 days trail and later it forces my application to be open-source, right? http://www.sencha.com/blog/ext-js-designer-preview Can I use the designer and then make custom changes and thus make my application not open source? TIA
4