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
5,410,090
03/23/2011 18:48:09
379,732
06/30/2010 06:52:25
18
0
how to draw a line on an encoded image in bb ?
I want to draw a line on the encoded image so I will get a new image. Can you please give me information about that if you want ? Thank you very much. Here I give my code that I got the encoded image. String URL = "http://maps.google.com/maps/api/staticmap?center=" + centerX + "," + centerY + "&zoom=15&size=480x320&path=color:0x0000ff|weight:5"+path+"&maptype=roadmap&sensor=true;deviceside=true"; try { conn = (HttpConnection) Connector.open(URL); stream = conn.openInputStream(); byteArray = new ByteArrayOutputStream(); int dataToWrite = 0; while ((dataToWrite = stream.read()) != -1) { byteArray.write(dataToWrite); } byte[] bArray = byteArray.toByteArray(); EncodedImage image = EncodedImage.createEncodedImage(bArray, 0, bArray.length); imageBitmap = image.getBitmap(); vfm.deleteAll(); bitField = new BitmapField(imageBitmap); vfm.add(bitField);
java
blackberry
drawing
null
null
null
open
how to draw a line on an encoded image in bb ? === I want to draw a line on the encoded image so I will get a new image. Can you please give me information about that if you want ? Thank you very much. Here I give my code that I got the encoded image. String URL = "http://maps.google.com/maps/api/staticmap?center=" + centerX + "," + centerY + "&zoom=15&size=480x320&path=color:0x0000ff|weight:5"+path+"&maptype=roadmap&sensor=true;deviceside=true"; try { conn = (HttpConnection) Connector.open(URL); stream = conn.openInputStream(); byteArray = new ByteArrayOutputStream(); int dataToWrite = 0; while ((dataToWrite = stream.read()) != -1) { byteArray.write(dataToWrite); } byte[] bArray = byteArray.toByteArray(); EncodedImage image = EncodedImage.createEncodedImage(bArray, 0, bArray.length); imageBitmap = image.getBitmap(); vfm.deleteAll(); bitField = new BitmapField(imageBitmap); vfm.add(bitField);
0
7,370,978
09/10/2011 10:02:44
323,422
04/22/2010 15:46:11
457
3
How can we find a repeated number in array in O(n) time and O(1) space complexity
How can we find a repeated number in array in O(n) time and O(1) complexity? eg array 2,1,4,3,3,10 output is 3
algorithm
data-structures
null
null
null
null
open
How can we find a repeated number in array in O(n) time and O(1) space complexity === How can we find a repeated number in array in O(n) time and O(1) complexity? eg array 2,1,4,3,3,10 output is 3
0
6,391,668
06/17/2011 20:50:21
465,179
10/03/2010 13:37:44
1,884
58
Freemarker Pagination - or just general algorithm for clicking through pages
p - is request parameter where the page number is given by user <#assign totalPages =searchResult.getTotalPages()> <#assign lastPage = 0> <#list totalPages as curPage> <#if p=curPage> <a href="#" class="selected">${p}</a> <#assign lastPage = curPage?number> <#else> <a href="/search.html?q=${q?html}&amp;p=${curPage}">${curPage}</a> </#if> </#list> This will print links like this 1 2 3 4 5 6 7 8 9 10 11 - and the list keeps going to the last page lets say 100 What I would like to accomplish is these cases (number in `<x>` is the p - page selected by user): Case A: 1 <2> 3 4 5 ... 100 Case B: 1 ... 11 12 <13> 14 15 ... 100 Case C: 1 ... <96> 97 98 99 100 ###Any ideas on how to do this in the above freemarker code? Pseudo code is fine too.
algorithm
pagination
freemarker
null
null
null
open
Freemarker Pagination - or just general algorithm for clicking through pages === p - is request parameter where the page number is given by user <#assign totalPages =searchResult.getTotalPages()> <#assign lastPage = 0> <#list totalPages as curPage> <#if p=curPage> <a href="#" class="selected">${p}</a> <#assign lastPage = curPage?number> <#else> <a href="/search.html?q=${q?html}&amp;p=${curPage}">${curPage}</a> </#if> </#list> This will print links like this 1 2 3 4 5 6 7 8 9 10 11 - and the list keeps going to the last page lets say 100 What I would like to accomplish is these cases (number in `<x>` is the p - page selected by user): Case A: 1 <2> 3 4 5 ... 100 Case B: 1 ... 11 12 <13> 14 15 ... 100 Case C: 1 ... <96> 97 98 99 100 ###Any ideas on how to do this in the above freemarker code? Pseudo code is fine too.
0
1,980,525
12/30/2009 14:43:21
148,978
08/01/2009 14:17:54
261
1
How to get the row numbers when I using render in RoR?
I use this code to generate the td tag format: <%= render(:partial => "cart_item", :collection => @cart.items) %> And this is the _cart_item.html.erb: <tr> <td class="column-left"><%=h cart_item.title %></td> <td> x <%= cart_item.quantity %></td> <td class="column-right">$ <%= cart_item.price %></td> </tr> But I want to know the row number as well. How can I do?
ruby-on-rails
ruby
null
null
null
null
open
How to get the row numbers when I using render in RoR? === I use this code to generate the td tag format: <%= render(:partial => "cart_item", :collection => @cart.items) %> And this is the _cart_item.html.erb: <tr> <td class="column-left"><%=h cart_item.title %></td> <td> x <%= cart_item.quantity %></td> <td class="column-right">$ <%= cart_item.price %></td> </tr> But I want to know the row number as well. How can I do?
0
1,399,612
09/09/2009 13:12:31
161,967
08/24/2009 10:02:35
348
4
Associating a compiler with an editor
How does typical editors for java work? How do they associate javac and java to the editor so that once you say compile and run, it directs the file to the compiler, and extracts the output to the editor?
java
editor
null
null
null
null
open
Associating a compiler with an editor === How does typical editors for java work? How do they associate javac and java to the editor so that once you say compile and run, it directs the file to the compiler, and extracts the output to the editor?
0
10,726,677
05/23/2012 19:37:19
1,413,439
05/23/2012 19:17:46
1
0
SQL Select same fields with different dates
I have a query that I need to run for some data. Basically I have 3 unique fields, and 3 more that need to be repeated for time ranges. So that I will have three sub queries within the primary select statement. I've been only experimenting with just the one sub query get that working and then copy n pasting the other two and changing the date range. Here is the SQL that I've come up with but it gives me an error. I'm trying to use sub queries since I don't have perms to create procedures. SELECT mon.description as ScriptName, up0.pageseqnum as PageSeq, usd.DisplayName as PageName, --This subquery is the one week old data for the Response Time, Page Weight, and Number of Objects. (SELECT ROUND(AVG(CAST(up1.ResponseTime AS FLOAT)* 0.001),3) AS ResponseTime, ROUND(AVG(CAST(up1.numbytes AS FLOAT)* 0.001), 3) AS NumberofKilobytes, CONVERT(INT,AVG(up1.numobj),0) AS NumberOfObjects FROM table0 AS up1 WHERE up1.Monitor_Id = up0.Monitor_id AND up1.TestTime BETWEEN DATEADD(HOUR,4,'2012-05-14 00:00:00') AND DATEADD(HOUR,4,'2012-05-21 00:00:00') AND ISNULL(up1.ContentMatchStatus,'0')= 0 AND up1.UserScriptStatus = 0 AND up1.TimeoutStatus = 0 AND up1.ResponseTime > 0 ) AS CurrentWeek FROM table0 (nolock) AS up0 JOIN table1 usd ON up0.Monitor_Id=usd.monitor_id and up0.PageSeqNum=usd.PageSeqNum JOIN table3 mon on up0.Monitor_Id = mon.Monitor_id WHERE up0.Monitor_Id in (1, 2, 3, 4, 5, 6, 7, 8 ,9 ,10) GROUP BY up0.Monitor_Id, mon.Description, up0.PageSeqNum, usd.DisplayName ORDER BY mon.Description ASC; I'm hoping the result set should have these columns: ScriptName | PageSeq | PageName | Current Week (with the three columns from that sub query) Any help would be appreciated.
sql
null
null
null
null
null
open
SQL Select same fields with different dates === I have a query that I need to run for some data. Basically I have 3 unique fields, and 3 more that need to be repeated for time ranges. So that I will have three sub queries within the primary select statement. I've been only experimenting with just the one sub query get that working and then copy n pasting the other two and changing the date range. Here is the SQL that I've come up with but it gives me an error. I'm trying to use sub queries since I don't have perms to create procedures. SELECT mon.description as ScriptName, up0.pageseqnum as PageSeq, usd.DisplayName as PageName, --This subquery is the one week old data for the Response Time, Page Weight, and Number of Objects. (SELECT ROUND(AVG(CAST(up1.ResponseTime AS FLOAT)* 0.001),3) AS ResponseTime, ROUND(AVG(CAST(up1.numbytes AS FLOAT)* 0.001), 3) AS NumberofKilobytes, CONVERT(INT,AVG(up1.numobj),0) AS NumberOfObjects FROM table0 AS up1 WHERE up1.Monitor_Id = up0.Monitor_id AND up1.TestTime BETWEEN DATEADD(HOUR,4,'2012-05-14 00:00:00') AND DATEADD(HOUR,4,'2012-05-21 00:00:00') AND ISNULL(up1.ContentMatchStatus,'0')= 0 AND up1.UserScriptStatus = 0 AND up1.TimeoutStatus = 0 AND up1.ResponseTime > 0 ) AS CurrentWeek FROM table0 (nolock) AS up0 JOIN table1 usd ON up0.Monitor_Id=usd.monitor_id and up0.PageSeqNum=usd.PageSeqNum JOIN table3 mon on up0.Monitor_Id = mon.Monitor_id WHERE up0.Monitor_Id in (1, 2, 3, 4, 5, 6, 7, 8 ,9 ,10) GROUP BY up0.Monitor_Id, mon.Description, up0.PageSeqNum, usd.DisplayName ORDER BY mon.Description ASC; I'm hoping the result set should have these columns: ScriptName | PageSeq | PageName | Current Week (with the three columns from that sub query) Any help would be appreciated.
0
10,568,585
05/13/2012 00:59:40
1,234,339
02/26/2012 20:32:09
38
0
Android access main activity variables from another class
I have a main activity class and find class. I need to access variable of main activity variable's that is "name" from find class. I tried to access with below snippet code but I get an error. How can I access main activity variables from another class ? public class main extends Activity { public static String name=null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button button1=(Button)findViewById(R.id.button1); final EditText edittext = (EditText) findViewById(R.id.editText1); button1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { name=edittext.getText().toString(); } }); } My second class.... public class find { public void finder(){ main mainactivity=new main(); String incoming_name =mainactivity.name;//I can not use like that ? // do something } }
android
android-activity
null
null
null
05/14/2012 14:07:57
not a real question
Android access main activity variables from another class === I have a main activity class and find class. I need to access variable of main activity variable's that is "name" from find class. I tried to access with below snippet code but I get an error. How can I access main activity variables from another class ? public class main extends Activity { public static String name=null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button button1=(Button)findViewById(R.id.button1); final EditText edittext = (EditText) findViewById(R.id.editText1); button1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { name=edittext.getText().toString(); } }); } My second class.... public class find { public void finder(){ main mainactivity=new main(); String incoming_name =mainactivity.name;//I can not use like that ? // do something } }
1
7,586,984
09/28/2011 17:13:15
175,804
09/19/2009 00:07:09
197
7
Where to buy Android Dev Phone?
Newb questions here. I'm looking at android resources for dev phones and google mentions they have two dev phones right on developer.android.com (ADP2, Nexus One). I've signed up for the developer account with google but have only come across the Nexus S for purchase. Google says to go to the market place for more information but there isn't any. Where can I find information about buying these phones. Google sends me to this link (https://market.android.com/publish/Home) for more information but there's nothing there. Would anyone be able to give me a quick rundown of what phones are considered dev phones and where to get them? Thanks!
android
phone
dev
null
null
09/29/2011 09:43:26
off topic
Where to buy Android Dev Phone? === Newb questions here. I'm looking at android resources for dev phones and google mentions they have two dev phones right on developer.android.com (ADP2, Nexus One). I've signed up for the developer account with google but have only come across the Nexus S for purchase. Google says to go to the market place for more information but there isn't any. Where can I find information about buying these phones. Google sends me to this link (https://market.android.com/publish/Home) for more information but there's nothing there. Would anyone be able to give me a quick rundown of what phones are considered dev phones and where to get them? Thanks!
2
1,006,952
06/17/2009 13:17:44
118,154
06/05/2009 17:08:56
77
2
Scrum my velocity is changing
I have an issue where a different number of man hours is being worked during each sprint. This is messing up my velocity. How do you account for new team members being added and people spending time working on other projects when planning for Scrum?
scrum
velocity
null
null
null
06/17/2009 19:16:58
off topic
Scrum my velocity is changing === I have an issue where a different number of man hours is being worked during each sprint. This is messing up my velocity. How do you account for new team members being added and people spending time working on other projects when planning for Scrum?
2
11,326,482
07/04/2012 09:42:38
518,722
11/24/2010 12:06:36
1
0
All of a sudden can't open excel file with microsoft.jet.4.0 with c#. I changed nothing at all with the connection string?
So I'm working on this thing for work, that converts an excel list of instructions into a better looking, formatted word document. I've been connecting to the excel document and then storing the file into a datatable for easier access. I had just finally gotten the borders and stuff right for my word document when i started getting an error: `External table is not in the expected format.` Here is the full connection algorithm: http://pastebin.com/Bye5MZLP (sorry, i couldn't quite figure out the formatting of stackoverflow) EDIT: i pulled up my old code from dropbox previous versions that was definetly working as well as redownload a copy of the excel doc i know was working..... what gives? has something changed in my computer?
c#
excel
oledbconnection
null
null
null
open
All of a sudden can't open excel file with microsoft.jet.4.0 with c#. I changed nothing at all with the connection string? === So I'm working on this thing for work, that converts an excel list of instructions into a better looking, formatted word document. I've been connecting to the excel document and then storing the file into a datatable for easier access. I had just finally gotten the borders and stuff right for my word document when i started getting an error: `External table is not in the expected format.` Here is the full connection algorithm: http://pastebin.com/Bye5MZLP (sorry, i couldn't quite figure out the formatting of stackoverflow) EDIT: i pulled up my old code from dropbox previous versions that was definetly working as well as redownload a copy of the excel doc i know was working..... what gives? has something changed in my computer?
0
11,080,614
06/18/2012 10:01:40
128,682
06/25/2009 07:35:54
16
1
easy_install gets wrong pip version
I have been following the instructions on http://docs.python-guide.org/en/latest/starting/install/osx/ but for some reason this is not going as I believe it would be expected. I have python 2.7 running by default but had to get easy_install up-to-date by following the instructions on: http://superuser.com/questions/256717/easy-install-the-wrong-version-of-python-modules-mac-os and link it from /usr/local/bin/share to /usr/local/bin. It seems to be working fine. The problem is that now when I install pip it seems to install to 2.6 and not 2.7. darky:~ user$ easy_install --upgrade pip Searching for pip Reading http://pypi.python.org/simple/pip/ Reading http://pip.openplans.org Reading http://www.pip-installer.org Best match: pip 1.1 Processing pip-1.1-py2.6.egg pip 1.1 is already the active version in easy-install.pth Installing pip script to /usr/local/bin Installing pip-2.6 script to /usr/local/bin Using /Library/Python/2.6/site-packages/pip-1.1-py2.6.egg Processing dependencies for pip Finished processing dependencies for pip
python
python-2.7
virtualenv
pip
setuptools
null
open
easy_install gets wrong pip version === I have been following the instructions on http://docs.python-guide.org/en/latest/starting/install/osx/ but for some reason this is not going as I believe it would be expected. I have python 2.7 running by default but had to get easy_install up-to-date by following the instructions on: http://superuser.com/questions/256717/easy-install-the-wrong-version-of-python-modules-mac-os and link it from /usr/local/bin/share to /usr/local/bin. It seems to be working fine. The problem is that now when I install pip it seems to install to 2.6 and not 2.7. darky:~ user$ easy_install --upgrade pip Searching for pip Reading http://pypi.python.org/simple/pip/ Reading http://pip.openplans.org Reading http://www.pip-installer.org Best match: pip 1.1 Processing pip-1.1-py2.6.egg pip 1.1 is already the active version in easy-install.pth Installing pip script to /usr/local/bin Installing pip-2.6 script to /usr/local/bin Using /Library/Python/2.6/site-packages/pip-1.1-py2.6.egg Processing dependencies for pip Finished processing dependencies for pip
0
11,694,034
07/27/2012 18:57:26
1,421,929
05/28/2012 14:34:33
26
2
Input datatable in JSF
I have the following table on php. It's for making purchase orders in a website, and we have different products (columns) with different sizes (rows), and a lot a different types so there are a lot of tables like this one. ![input table][1] [1]: http://i.stack.imgur.com/z4gFo.jpg I have to migrate this to JSF and I currently have no idea if it is possible. I use datatables, but neverwith independent cells and this stuff. Can anybody hive me a hint? The only possibility I know is to do them manually... Thanks!
jsf
primefaces
null
null
null
07/30/2012 03:31:17
not a real question
Input datatable in JSF === I have the following table on php. It's for making purchase orders in a website, and we have different products (columns) with different sizes (rows), and a lot a different types so there are a lot of tables like this one. ![input table][1] [1]: http://i.stack.imgur.com/z4gFo.jpg I have to migrate this to JSF and I currently have no idea if it is possible. I use datatables, but neverwith independent cells and this stuff. Can anybody hive me a hint? The only possibility I know is to do them manually... Thanks!
1
4,732,294
01/19/2011 06:16:17
580,999
01/19/2011 06:14:54
1
0
Android in Australia
What is the market expectation and reaction to Android both as a phone and tablet/slate OS in Australia?
android
null
null
null
null
01/19/2011 13:32:19
off topic
Android in Australia === What is the market expectation and reaction to Android both as a phone and tablet/slate OS in Australia?
2
5,948,264
05/10/2011 09:53:07
453,089
07/22/2010 14:14:28
17
0
Simple Question: how can i know like index.php?xxxxxxx ?
how can i know to make like this "http://www.xxxxx.com/?xxxxxx" (like example of mediafire) or "index.php?xxxxxx" **NOT** like "index.php?action=xxxxxx" example: index.php?photo will direct to gallery or index.php?about will direct to about
php
url
get
submit
goto
null
open
Simple Question: how can i know like index.php?xxxxxxx ? === how can i know to make like this "http://www.xxxxx.com/?xxxxxx" (like example of mediafire) or "index.php?xxxxxx" **NOT** like "index.php?action=xxxxxx" example: index.php?photo will direct to gallery or index.php?about will direct to about
0
4,130,094
11/09/2010 02:54:30
465,292
10/03/2010 17:47:02
62
1
Struggling to make sense of assembly code in GDB
I am taking Assembly Language class, and instructions spit out by GDB makes very little sense to me(and book explains very little). Out instructor reads assembly like it his native tongue. How do I learn to make sense of assembly code ? Thanks !
assembly
null
null
null
null
null
open
Struggling to make sense of assembly code in GDB === I am taking Assembly Language class, and instructions spit out by GDB makes very little sense to me(and book explains very little). Out instructor reads assembly like it his native tongue. How do I learn to make sense of assembly code ? Thanks !
0
10,201,027
04/18/2012 00:16:49
1,332,629
04/13/2012 23:12:03
8
0
Calculate percentage of a number
I would like to calculate, in PHP, the percentage of a number. For example : $percentage = 50; $totalWidth = 350; For this example, 50% of 350 = 175 How can I do that ? Thanks !!
php
percentage
calculate
null
null
04/18/2012 00:24:42
not a real question
Calculate percentage of a number === I would like to calculate, in PHP, the percentage of a number. For example : $percentage = 50; $totalWidth = 350; For this example, 50% of 350 = 175 How can I do that ? Thanks !!
1
3,999,678
10/22/2010 18:09:44
484,503
10/22/2010 17:33:38
3
0
Having issues with #includes and incomplete types
I have gotten rid of a circular dependence but am still having issues with another problem. I am still learning and hope that someone can explain to me more about what is wrong with my implementation. Sorry for the trouble, but I really appreciate everyone who is helping me. So, the issue I am having now is that in my Vec3 class, it is trying to use Quaternions, but it does not have the "complete type" of the quaternion. The following is what I have: **vec3.h** #ifndef VEC3_H #define VEC3_H #include "point.h" #include <math.h> class Quaternion; class Vec3 { friend ofstream& operator <<(ofstream& output, const Vec3& p); friend ifstream& operator >>(ifstream& input, Vec3& p); public: Vec3(); Vec3(double _x, double _y); Vec3(double _x, double _y, double _z); double x,y,z; //Operators Vec3 operator -(Vec3 a) const; Vec3 operator /(double s) const; Vec3 operator *(double s) const; Vec3 operator *(Quaternion q) const; // Used to do vector Vec3 addition Vec3 operator +(Vec3 a) const; Point operator +(Point a) const; Vec3& operator =(Point a); Vec3 crossProduct(Vec3 v1); // Itself cross v1 double dotProduct(Vec3 v); double length(); void normalize(); }; #endif **Quaternion.h** #ifndef QUATERNION_H #define QUATERNION_H #include "vec3.h" class Quaternion { public: Quaternion(Vec3 v); Quaternion(double w, Vec3 v); Vec3 v; double scalar; Quaternion operator *(Quaternion s); Quaternion conjugate(); }; #endif **vec3.cpp** The error is on each line of this function. ... Vec3 Vec3::operator *(Quaternion q) const { // Change this vector into a quaternion Quaternion currentQuat(0, Vec3(x,y,z)); Quaternion newQuat = currentQuat*q; Quaternion result = q.conjugate()*newQuat; return result.vec(); } ...
c++
incomplete-type
null
null
null
null
open
Having issues with #includes and incomplete types === I have gotten rid of a circular dependence but am still having issues with another problem. I am still learning and hope that someone can explain to me more about what is wrong with my implementation. Sorry for the trouble, but I really appreciate everyone who is helping me. So, the issue I am having now is that in my Vec3 class, it is trying to use Quaternions, but it does not have the "complete type" of the quaternion. The following is what I have: **vec3.h** #ifndef VEC3_H #define VEC3_H #include "point.h" #include <math.h> class Quaternion; class Vec3 { friend ofstream& operator <<(ofstream& output, const Vec3& p); friend ifstream& operator >>(ifstream& input, Vec3& p); public: Vec3(); Vec3(double _x, double _y); Vec3(double _x, double _y, double _z); double x,y,z; //Operators Vec3 operator -(Vec3 a) const; Vec3 operator /(double s) const; Vec3 operator *(double s) const; Vec3 operator *(Quaternion q) const; // Used to do vector Vec3 addition Vec3 operator +(Vec3 a) const; Point operator +(Point a) const; Vec3& operator =(Point a); Vec3 crossProduct(Vec3 v1); // Itself cross v1 double dotProduct(Vec3 v); double length(); void normalize(); }; #endif **Quaternion.h** #ifndef QUATERNION_H #define QUATERNION_H #include "vec3.h" class Quaternion { public: Quaternion(Vec3 v); Quaternion(double w, Vec3 v); Vec3 v; double scalar; Quaternion operator *(Quaternion s); Quaternion conjugate(); }; #endif **vec3.cpp** The error is on each line of this function. ... Vec3 Vec3::operator *(Quaternion q) const { // Change this vector into a quaternion Quaternion currentQuat(0, Vec3(x,y,z)); Quaternion newQuat = currentQuat*q; Quaternion result = q.conjugate()*newQuat; return result.vec(); } ...
0
1,799,908
11/25/2009 21:00:06
38,729
11/18/2008 22:50:59
72
15
WPF: Default TabControl's active tab overlaps from it's container, how to replicate this?
I am subclassing a control from TabControl (to be able to add stuff alongside tabs, like modern browsers do), and I encountered this problem: The active tab of native TabControl (1st and 2nd control from the top in the picture) overlaps the border of ContentPresenter, hiding the thin line underneath. *I copied the xaml from Aero dictionary* (aero.normalcolor.xaml) and added my extra content slots, however, I cannot get active tab to overlap (the ones with arrows). This is also consistent with my knowledge that control cannot 'leave' it's designated space (in other words, we don't have position: relative; in wpf - the first tabcontrol looks like it had this css: `tab:active { position: relative; top: 1px; }`). ![tab problems][1] So, my question is: how did Microsoft devs do this, and how can I replicate the overlapped look? Thanks! [1]: http://sklad.tomaskafka.com/code/wpf-tabcontrol-problem.png
wpf
tabcontrol
position
relative
null
null
open
WPF: Default TabControl's active tab overlaps from it's container, how to replicate this? === I am subclassing a control from TabControl (to be able to add stuff alongside tabs, like modern browsers do), and I encountered this problem: The active tab of native TabControl (1st and 2nd control from the top in the picture) overlaps the border of ContentPresenter, hiding the thin line underneath. *I copied the xaml from Aero dictionary* (aero.normalcolor.xaml) and added my extra content slots, however, I cannot get active tab to overlap (the ones with arrows). This is also consistent with my knowledge that control cannot 'leave' it's designated space (in other words, we don't have position: relative; in wpf - the first tabcontrol looks like it had this css: `tab:active { position: relative; top: 1px; }`). ![tab problems][1] So, my question is: how did Microsoft devs do this, and how can I replicate the overlapped look? Thanks! [1]: http://sklad.tomaskafka.com/code/wpf-tabcontrol-problem.png
0
7,579,370
09/28/2011 06:55:48
811,678
06/23/2011 06:34:41
40
0
I get implicit declaration of function strncmp
I get "implicit declaration of function 'strncmp' isinvalid in C99" when use strncmp (xcode 4/ gcc version 4.2.1) How to avoid this ?
c
null
null
null
null
null
open
I get implicit declaration of function strncmp === I get "implicit declaration of function 'strncmp' isinvalid in C99" when use strncmp (xcode 4/ gcc version 4.2.1) How to avoid this ?
0
9,247,115
02/12/2012 07:10:16
1,204,777
02/12/2012 06:31:20
1
0
Reading formatted strings from file into Array in C
I am new to the C programming language and trying to improve by solving problems from the Project Euler website using only C and its standard libraires. I have covered basic C fundamentals(I think), functions, pointers, and some basic file IO but now am running into some issues. The question is about reading a text file of first names and calculating a "name score" blah blah, I know the algorithm I am going to use and have most of the program setup but just cannot figure out how to read the file correctly. The file is in the format "Nameone","Nametwo","billy","bobby","frank"... I have searched and searched and tried countless things but cannot seem to read these as individual names into an array of strings(I think thats the right way to store them individually?) I have tried using sscanf/fscanf with %[^\",]. I have tried different combos of those functions and fgets, but my understanding of fgets is everytime I call it it will get a new line, and this is a text file with over 45,000 characters all on the same line. I am unsure if I am running into problems with my misunderstanding of the scanf functions, or my misunderstanding with storing an array of strings. As far as the array of strings goes, I (think) I have realized that when I declare an array of strings it does not allocate memory for the strings themselves, something that I need to do. But I still cannot get anything to work. Here is the code I have now to try to just read in some names I enter from the command line to test my methods. This code works to input any string up to buffer size(100): int main(void) { int i; char input[100]; char* names[10]; printf("\nEnter up to 10 names\nEnter an empty string to terminate input: \n"); for(int i = 0; i < 10; i++) { int length = 0; printf("%d: ", i); fgets(input, 100, stdin); length = (int)strlen(input); input[length-1] = 0; // Delete newline character length--; if(length < 1) { break; } names[i] = malloc(length+1); assert(names[i] != NULL); strcpy(names[i], input); } } However, I simply cannot make this work for reading in the formatted strings. PLEASE advise me as to how to read it in with format. I have previously used sscanf on the input buffer and that has worked fine, but I dont feel like I can do that on a 45000+ char line? Am I correct in assuming this? Is this even an acceptable way to read strings into an array? I apologize if this is long and/or not clear, it is very late and I am very frustrated. Thank anyone and everyone for helping, and I am looking forward to finally becoming an active member on this site!
c
string
file-io
sscanf
fscanf
null
open
Reading formatted strings from file into Array in C === I am new to the C programming language and trying to improve by solving problems from the Project Euler website using only C and its standard libraires. I have covered basic C fundamentals(I think), functions, pointers, and some basic file IO but now am running into some issues. The question is about reading a text file of first names and calculating a "name score" blah blah, I know the algorithm I am going to use and have most of the program setup but just cannot figure out how to read the file correctly. The file is in the format "Nameone","Nametwo","billy","bobby","frank"... I have searched and searched and tried countless things but cannot seem to read these as individual names into an array of strings(I think thats the right way to store them individually?) I have tried using sscanf/fscanf with %[^\",]. I have tried different combos of those functions and fgets, but my understanding of fgets is everytime I call it it will get a new line, and this is a text file with over 45,000 characters all on the same line. I am unsure if I am running into problems with my misunderstanding of the scanf functions, or my misunderstanding with storing an array of strings. As far as the array of strings goes, I (think) I have realized that when I declare an array of strings it does not allocate memory for the strings themselves, something that I need to do. But I still cannot get anything to work. Here is the code I have now to try to just read in some names I enter from the command line to test my methods. This code works to input any string up to buffer size(100): int main(void) { int i; char input[100]; char* names[10]; printf("\nEnter up to 10 names\nEnter an empty string to terminate input: \n"); for(int i = 0; i < 10; i++) { int length = 0; printf("%d: ", i); fgets(input, 100, stdin); length = (int)strlen(input); input[length-1] = 0; // Delete newline character length--; if(length < 1) { break; } names[i] = malloc(length+1); assert(names[i] != NULL); strcpy(names[i], input); } } However, I simply cannot make this work for reading in the formatted strings. PLEASE advise me as to how to read it in with format. I have previously used sscanf on the input buffer and that has worked fine, but I dont feel like I can do that on a 45000+ char line? Am I correct in assuming this? Is this even an acceptable way to read strings into an array? I apologize if this is long and/or not clear, it is very late and I am very frustrated. Thank anyone and everyone for helping, and I am looking forward to finally becoming an active member on this site!
0
3,010,548
06/09/2010 22:46:40
282,727
02/27/2010 15:19:16
333
5
Which Project Management Software is adequate for Software & Non-Software Projects?
**PMS = (Project Management Software)** I used trac for software development some time ago. Right now I'm searching for a new more powerful (scheduling, gantt charts, ...) free solution (as in free beer ;-) and free to install on my server) for my current software project. Besides the current software project, abstract project management features like issue-tracking & scheduling would be great for coordinating a group of volunteers for real-life projects as well. I would want one solution for both purposes, so that I have the hassle of installation, getting used to the system and administration only once. So I tried redmine but the problem is it seems to be designed for software projects only. I can't suggest such a solution for the volunteer-group if tickets/issues would have to be of type bug, feature, ... I shortlisted the following six PMS from the wikipedia comparison http://en.wikipedia.org/wiki/List_of_project_management_software Project.net Project-Open Redmine Trac Endeavour Software Project Management eGroupWare I guess they are all more or less fine for software development but would you consider any of these to be good for the non-software project as well? **Cliff Notes:** I would want a start page situation like in trac. The start-page is a wiki presenting the project and not the PMS. But you can log into the PMS from there. *Feature-wish list*: wiki, Issue tracking, revision control, scheduling & gantt charts, forums (least important) (Btw: I'm very aware that I can't expect everything to be perfect ;-) 1.)Do you know a suitable solution for software and real-life projects or a highly customizable PMS where I can easily remove sth. like "browse source"(trac) and rename things like ticket/issue-types "bug", "feature"? 2.)Any experience good/bad with the above mentioned six PMS? I would personally guess that "Redmine" and "Endeavour Software Project Management" are too focused on software projects.
project-management
collaboration
time-management
tracker
null
null
open
Which Project Management Software is adequate for Software & Non-Software Projects? === **PMS = (Project Management Software)** I used trac for software development some time ago. Right now I'm searching for a new more powerful (scheduling, gantt charts, ...) free solution (as in free beer ;-) and free to install on my server) for my current software project. Besides the current software project, abstract project management features like issue-tracking & scheduling would be great for coordinating a group of volunteers for real-life projects as well. I would want one solution for both purposes, so that I have the hassle of installation, getting used to the system and administration only once. So I tried redmine but the problem is it seems to be designed for software projects only. I can't suggest such a solution for the volunteer-group if tickets/issues would have to be of type bug, feature, ... I shortlisted the following six PMS from the wikipedia comparison http://en.wikipedia.org/wiki/List_of_project_management_software Project.net Project-Open Redmine Trac Endeavour Software Project Management eGroupWare I guess they are all more or less fine for software development but would you consider any of these to be good for the non-software project as well? **Cliff Notes:** I would want a start page situation like in trac. The start-page is a wiki presenting the project and not the PMS. But you can log into the PMS from there. *Feature-wish list*: wiki, Issue tracking, revision control, scheduling & gantt charts, forums (least important) (Btw: I'm very aware that I can't expect everything to be perfect ;-) 1.)Do you know a suitable solution for software and real-life projects or a highly customizable PMS where I can easily remove sth. like "browse source"(trac) and rename things like ticket/issue-types "bug", "feature"? 2.)Any experience good/bad with the above mentioned six PMS? I would personally guess that "Redmine" and "Endeavour Software Project Management" are too focused on software projects.
0
7,225,866
08/29/2011 03:45:13
428,741
01/15/2010 18:51:33
254
1
Making tab and showing/hiding tab-esque content in jQuery
So tab may not be the right word to use in my scenario, but here is the situation (and I don't want to use jQuery-UI library too). I think it can be done more simply. Nav markup in the header: <ul> <li><a class="active" href="#" title="">Uno</a></li> <li><a href="#" title="">Dos</a></li> <li><a href="#" title="">Tres</a></li> <li><a href="#" title="">Cuatro</a></li> </ul> Body markup for the content (they are not contained in the same div, nor can they be): <div class="block"> <p>Lorem ipsum</p> </div> <div class="block"> <p>Lorem ipsum</p> </div> <div class="block"> <p>Lorem ipsum</p> </div> <div class="block"> <p>Lorem ipsum</p> </div> I'm trying to do two things. 1.) Hide everything except the first block of content (which corresponds with the first list item, hence .active, on load. 2.) On click of any of the list items it hides all the other blocks of content and shows the appropriate one, while adding an .active class to it in the nav. Would really appreciate the help.
jquery
tabs
show-hide
null
null
null
open
Making tab and showing/hiding tab-esque content in jQuery === So tab may not be the right word to use in my scenario, but here is the situation (and I don't want to use jQuery-UI library too). I think it can be done more simply. Nav markup in the header: <ul> <li><a class="active" href="#" title="">Uno</a></li> <li><a href="#" title="">Dos</a></li> <li><a href="#" title="">Tres</a></li> <li><a href="#" title="">Cuatro</a></li> </ul> Body markup for the content (they are not contained in the same div, nor can they be): <div class="block"> <p>Lorem ipsum</p> </div> <div class="block"> <p>Lorem ipsum</p> </div> <div class="block"> <p>Lorem ipsum</p> </div> <div class="block"> <p>Lorem ipsum</p> </div> I'm trying to do two things. 1.) Hide everything except the first block of content (which corresponds with the first list item, hence .active, on load. 2.) On click of any of the list items it hides all the other blocks of content and shows the appropriate one, while adding an .active class to it in the nav. Would really appreciate the help.
0
9,877,503
03/26/2012 18:18:47
1,050,081
11/16/2011 16:23:03
20
3
Optimizing CSS for IE: Shadows via absolutely positioned divs
My Thumbnails should have some shadows, I'd like to do this with some absolutely positioned divs, because tables would create empty space in the bottom in the crappy annoying IE. And surprise surprise, the divs also don't work in Bill Gates rocky browser show. But enough of some hatred to this so called "webbrowser", that's more a bad joke to give us something to do. Here's what my code looks like: <div class="shadow text_box"> <div class="slt"><font size="-1">&nbsp;</font></div> <div class="st"> <font size="-1">&nbsp;</font></div> <div class="srt"><font size="-1">&nbsp;</font></div> <div class="sl"><font size="-1">&nbsp;</font></div> <div class="sr"><font size="-1">&nbsp;</font></div> <div class="slb"><font size="-1">&nbsp;</font></div> <div class="sb"><font size="-1">&nbsp;</font></div> <div class="srb"><font size="-1">&nbsp;</font></div> //Imagine, here's an image! </div> the css: .text_box { background:#F7D76C; } .shadow { position:relative;padding:0px;margin:8px; } .slt { width:8px;height:8px;background:url(../img/shadow_left_top_xs.png) no-repeat bottom right; position:absolute;top:-8px;left:-8px;height:8px;width:8px; } .st { height:8px;background:url(../img/shadow_top_xs.png) repeat-x bottom left; position:absolute;top:-8px;left:0px;height:8px;width:100%; } .srt { width:8px;height:8px;background:url(../img/shadow_right_top_xs.png) no-repeat bottom left; position:absolute;top:-8px;right:-8px;height:8px;width:8px; } .sl { width:8px;background:url(../img/shadow_left_xs.png) repeat-y bottom right; position:absolute;top:0px;left:-8px;height:100%;width:8px; } .sr { width:8px;background:url(../img/shadow_right_xs.png) repeat-y bottom right; position:absolute;top:0px;right:-8px;height:100%;width:8px; } .slb { width:8px;height:8px;background:url(../img/shadow_left_bottom_xs.png) no-repeat bottom right; position:absolute;bottom:-8px;left:-8px;height:8px;width:8px; } .sb { height:8px;background:url(../img/shadow_bottom_xs.png) repeat-x bottom left; position:absolute;bottom:-8px;left:0px;height:8px;width:100%; } .srb { width:8px;height:8px;background:url(../img/shadow_right_bottom_xs.png) no-repeat bottom left; position:absolute;bottom:-8px;right:-8px;height:8px;width:8px; }
css
internet-explorer
null
null
null
03/27/2012 12:05:29
not a real question
Optimizing CSS for IE: Shadows via absolutely positioned divs === My Thumbnails should have some shadows, I'd like to do this with some absolutely positioned divs, because tables would create empty space in the bottom in the crappy annoying IE. And surprise surprise, the divs also don't work in Bill Gates rocky browser show. But enough of some hatred to this so called "webbrowser", that's more a bad joke to give us something to do. Here's what my code looks like: <div class="shadow text_box"> <div class="slt"><font size="-1">&nbsp;</font></div> <div class="st"> <font size="-1">&nbsp;</font></div> <div class="srt"><font size="-1">&nbsp;</font></div> <div class="sl"><font size="-1">&nbsp;</font></div> <div class="sr"><font size="-1">&nbsp;</font></div> <div class="slb"><font size="-1">&nbsp;</font></div> <div class="sb"><font size="-1">&nbsp;</font></div> <div class="srb"><font size="-1">&nbsp;</font></div> //Imagine, here's an image! </div> the css: .text_box { background:#F7D76C; } .shadow { position:relative;padding:0px;margin:8px; } .slt { width:8px;height:8px;background:url(../img/shadow_left_top_xs.png) no-repeat bottom right; position:absolute;top:-8px;left:-8px;height:8px;width:8px; } .st { height:8px;background:url(../img/shadow_top_xs.png) repeat-x bottom left; position:absolute;top:-8px;left:0px;height:8px;width:100%; } .srt { width:8px;height:8px;background:url(../img/shadow_right_top_xs.png) no-repeat bottom left; position:absolute;top:-8px;right:-8px;height:8px;width:8px; } .sl { width:8px;background:url(../img/shadow_left_xs.png) repeat-y bottom right; position:absolute;top:0px;left:-8px;height:100%;width:8px; } .sr { width:8px;background:url(../img/shadow_right_xs.png) repeat-y bottom right; position:absolute;top:0px;right:-8px;height:100%;width:8px; } .slb { width:8px;height:8px;background:url(../img/shadow_left_bottom_xs.png) no-repeat bottom right; position:absolute;bottom:-8px;left:-8px;height:8px;width:8px; } .sb { height:8px;background:url(../img/shadow_bottom_xs.png) repeat-x bottom left; position:absolute;bottom:-8px;left:0px;height:8px;width:100%; } .srb { width:8px;height:8px;background:url(../img/shadow_right_bottom_xs.png) no-repeat bottom left; position:absolute;bottom:-8px;right:-8px;height:8px;width:8px; }
1
4,916,217
02/06/2011 21:21:04
274,473
02/16/2010 15:23:39
610
12
Testing code which calls native methods
I have a class like this: public final class Foo { public native int getBar(); public String toString() { return "Bar: " + getBar(); } } Please note that *getBar()* is implemented with JNI and that the class is *final*. I want to write junit test to test the *toString()* method. For this I need to mock the *getBar()* method and then run the original *toString()* method to check the output. My first thought was that this must be impossible but then I found <a href="http://code.google.com/p/powermock/">PowerMock</a> which supports testing final classes and native methods according to the feature list. But so far I had no success with it. The best thing I managed was mocking the complete class but then the test tested the mocked *toString()* method instead of the real one which doesn't make much sense. So how can I use PowerMock to test this *toString()* method from above? I prefer using PowerMock with <a href="http://code.google.com/p/mockito/">Mockito</a> but if this is not possible I have no problem with using <a href="http://easymock.org/">EasyMock</a> instead.
java
junit
easymock
mockito
powermock
null
open
Testing code which calls native methods === I have a class like this: public final class Foo { public native int getBar(); public String toString() { return "Bar: " + getBar(); } } Please note that *getBar()* is implemented with JNI and that the class is *final*. I want to write junit test to test the *toString()* method. For this I need to mock the *getBar()* method and then run the original *toString()* method to check the output. My first thought was that this must be impossible but then I found <a href="http://code.google.com/p/powermock/">PowerMock</a> which supports testing final classes and native methods according to the feature list. But so far I had no success with it. The best thing I managed was mocking the complete class but then the test tested the mocked *toString()* method instead of the real one which doesn't make much sense. So how can I use PowerMock to test this *toString()* method from above? I prefer using PowerMock with <a href="http://code.google.com/p/mockito/">Mockito</a> but if this is not possible I have no problem with using <a href="http://easymock.org/">EasyMock</a> instead.
0
3,760,187
09/21/2010 12:18:32
206,766
11/09/2009 09:59:39
828
54
Learning Windows Workflow Foundation 4, where to start?
I have been playing around with wf4 for a while. I found various articles, videos(channel 9), blog posts and sites about wf4, but couldn't able to organize it in a proper way. I look forward to create a Learning Catalog for - Windows Workflow 4 with VS 2010 and IIS 7 (without AppFabric or Dublin) - Windows Workflow 4 with VS 2010 and IIS 7 (with Dublin) - Windows Workflow 4 with VS 2010 and IIS 7 (with AppFabric) Please help me to create it... post your answers - where to start? - what to learn first? - must learn topics - in the order of importance - publishing as WCF Service - hosting in ii7, appfabric and dublin
iis7
recommendation
workflow-foundation-4
appfabric
null
null
open
Learning Windows Workflow Foundation 4, where to start? === I have been playing around with wf4 for a while. I found various articles, videos(channel 9), blog posts and sites about wf4, but couldn't able to organize it in a proper way. I look forward to create a Learning Catalog for - Windows Workflow 4 with VS 2010 and IIS 7 (without AppFabric or Dublin) - Windows Workflow 4 with VS 2010 and IIS 7 (with Dublin) - Windows Workflow 4 with VS 2010 and IIS 7 (with AppFabric) Please help me to create it... post your answers - where to start? - what to learn first? - must learn topics - in the order of importance - publishing as WCF Service - hosting in ii7, appfabric and dublin
0
7,735,264
10/12/2011 04:28:31
990,721
10/12/2011 04:22:14
1
0
Recursion Analysis of master theorem without proper form
I am studying for an algorithms midterm, and I am completely stumped on one of the questions in the text. "Use the Master Theorem to find the runtime for T(n) = 3T(sqroot(n)) + 1" I know I need to apply some sort of transformation to turn the sqroot(n) into something linear, getting the expected form of T(n) = aT(n/b) + f(n) but I am completely failing to do so. My intuition points to something involving logs. Any help is greatly appreciated.
algorithm
homework
recursion
null
null
10/12/2011 06:13:15
off topic
Recursion Analysis of master theorem without proper form === I am studying for an algorithms midterm, and I am completely stumped on one of the questions in the text. "Use the Master Theorem to find the runtime for T(n) = 3T(sqroot(n)) + 1" I know I need to apply some sort of transformation to turn the sqroot(n) into something linear, getting the expected form of T(n) = aT(n/b) + f(n) but I am completely failing to do so. My intuition points to something involving logs. Any help is greatly appreciated.
2
2,495,117
03/22/2010 19:31:41
287,323
03/05/2010 17:24:18
24
0
loading XML string into Xslt sheet
I am trying to load a xml document I created using PHP and DOM into a xslt sheet, but having no luck any help would be much appreciated. $xml_string = $doc->saveXML(); //echo $xml_string; $xml = new DOMDocument; $xml->load($xml_string); $xsl = new DOMDocument; $xsl->load('musicInformation.xslt'); // Configure the transformer $proc = new XSLTProcessor; $proc->importStyleSheet($xsl); // attach the xsl rules echo $proc->transformToXML($xml);
php
dom
xslt
null
null
null
open
loading XML string into Xslt sheet === I am trying to load a xml document I created using PHP and DOM into a xslt sheet, but having no luck any help would be much appreciated. $xml_string = $doc->saveXML(); //echo $xml_string; $xml = new DOMDocument; $xml->load($xml_string); $xsl = new DOMDocument; $xsl->load('musicInformation.xslt'); // Configure the transformer $proc = new XSLTProcessor; $proc->importStyleSheet($xsl); // attach the xsl rules echo $proc->transformToXML($xml);
0
8,976,490
01/23/2012 18:14:13
921,300
08/31/2011 09:37:45
189
1
php with multiple list item box
Its first time I am using select box for multiple values. my html code is <select name="depend_on" size="3" multiple="multiple" class="text_field_detail" id="depend_on" style="width:250px;"><? get_service_dependent_list($x); ?></select> I am requesting all set of selected values. I used php script as $depend_on = array(); $depend_on[] = $_REQUEST["depend_on"]; $depent_on echo single last selected value.
php
null
null
null
null
01/24/2012 18:38:24
too localized
php with multiple list item box === Its first time I am using select box for multiple values. my html code is <select name="depend_on" size="3" multiple="multiple" class="text_field_detail" id="depend_on" style="width:250px;"><? get_service_dependent_list($x); ?></select> I am requesting all set of selected values. I used php script as $depend_on = array(); $depend_on[] = $_REQUEST["depend_on"]; $depent_on echo single last selected value.
3
4,450,287
12/15/2010 13:19:06
543,392
12/15/2010 13:19:06
1
0
What is the Pin required when Pairing a Zebra MZ220 with Android OS, Samsung Mezmerize?
I am able to find the device and attempt to pair, but it asks for a pin. I have tried most default pins, i.e. "0000", "abcd", "1111", "1234", with no luck. Any other suggestions?
bluetooth
null
null
null
null
12/15/2010 13:23:58
off topic
What is the Pin required when Pairing a Zebra MZ220 with Android OS, Samsung Mezmerize? === I am able to find the device and attempt to pair, but it asks for a pin. I have tried most default pins, i.e. "0000", "abcd", "1111", "1234", with no luck. Any other suggestions?
2
10,871,089
06/03/2012 14:20:55
1,087,995
12/08/2011 15:06:14
123
0
C++ - CreateThread -compilation error
This is my first time dealing with windows. I tried to create thread, but I can't compile my code. This is a part of my code: WORD _tid; HANDLE readerThread= CreateThread(0,0,readFromPort,0,0,&_tid); DWORD WINAPI readFromPort(LPVOID lpParam ){} I also tried : LPDWORD_tid; HANDLE readerThread= CreateThread(0,0,readFromPort,0,0,_tid); DWORD WINAPI readFromPort(LPVOID lpParam ){} Neither compiled. onyone knows what is the problem? (I'm using windows xp) thanks.
c++
windows
createthread
null
null
null
open
C++ - CreateThread -compilation error === This is my first time dealing with windows. I tried to create thread, but I can't compile my code. This is a part of my code: WORD _tid; HANDLE readerThread= CreateThread(0,0,readFromPort,0,0,&_tid); DWORD WINAPI readFromPort(LPVOID lpParam ){} I also tried : LPDWORD_tid; HANDLE readerThread= CreateThread(0,0,readFromPort,0,0,_tid); DWORD WINAPI readFromPort(LPVOID lpParam ){} Neither compiled. onyone knows what is the problem? (I'm using windows xp) thanks.
0
10,902,656
06/05/2012 18:19:56
1,285,928
03/22/2012 12:39:23
130
6
Primefaces.jar as GlassFish module
I want to deploy Primefaces.jar as Glassfish module. I downloaded [Primefaces.jar][1] and I copied the jar into `glassfish3/glassfish/modules` folder. Then I added the name `primefaces-3.3.jar` into `glassfish3/glassfish/domains/domain1/config/default-web.xml` but nothing happens. What am I missing? [1]: http://repository.primefaces.org/org/primefaces/primefaces/3.3/primefaces-3.3.jar
java
glassfish
primefaces
null
null
null
open
Primefaces.jar as GlassFish module === I want to deploy Primefaces.jar as Glassfish module. I downloaded [Primefaces.jar][1] and I copied the jar into `glassfish3/glassfish/modules` folder. Then I added the name `primefaces-3.3.jar` into `glassfish3/glassfish/domains/domain1/config/default-web.xml` but nothing happens. What am I missing? [1]: http://repository.primefaces.org/org/primefaces/primefaces/3.3/primefaces-3.3.jar
0
7,707,149
10/09/2011 23:01:17
765,357
05/23/2011 02:39:48
180
10
No migration fixtures found but table not updating with Django and South
Trying to update my app so it has the admin page so I run syncdb: tyre77$ python manage.py syncdb Syncing... Creating tables ... Installing custom SQL ... Installing indexes ... No fixtures found. Synced: > django.contrib.auth > django.contrib.contenttypes > django.contrib.sessions > django.contrib.sites > django.contrib.messages > django.contrib.staticfiles > south > django.contrib.admin Not synced (use migrations): - OmniCloud_App (use ./manage.py migrate to migrate these) So that's alright! South is installed so we just do a little migrationing: tyre77$ python manage.py migrate Running migrations for OmniCloud_App: - Nothing to migrate. - Loading initial data for OmniCloud_App. No fixtures found Wait what? You just told me to migrate so I did, but there are no fixtures found so it isn't fixing the app not being synced!
python
django
migration
django-south
null
null
open
No migration fixtures found but table not updating with Django and South === Trying to update my app so it has the admin page so I run syncdb: tyre77$ python manage.py syncdb Syncing... Creating tables ... Installing custom SQL ... Installing indexes ... No fixtures found. Synced: > django.contrib.auth > django.contrib.contenttypes > django.contrib.sessions > django.contrib.sites > django.contrib.messages > django.contrib.staticfiles > south > django.contrib.admin Not synced (use migrations): - OmniCloud_App (use ./manage.py migrate to migrate these) So that's alright! South is installed so we just do a little migrationing: tyre77$ python manage.py migrate Running migrations for OmniCloud_App: - Nothing to migrate. - Loading initial data for OmniCloud_App. No fixtures found Wait what? You just told me to migrate so I did, but there are no fixtures found so it isn't fixing the app not being synced!
0
319,725
11/26/2008 04:09:58
14,337
09/16/2008 23:15:22
46
5
Which is your favorite GDB tricks?
Which is your favorite macro/trick in gdb? Have you written any good macros for improving language integration? What's your best way of making the debugging experience inside gdb less painful?
gdb
debugging
tricks
null
null
11/27/2011 17:34:51
not constructive
Which is your favorite GDB tricks? === Which is your favorite macro/trick in gdb? Have you written any good macros for improving language integration? What's your best way of making the debugging experience inside gdb less painful?
4
9,865,868
03/26/2012 02:18:42
545,657
12/17/2010 04:49:26
155
13
iphone/ipad programming with flash CS5
I was curious if anyone had any experience doing iphone/ipad programming with flash cs5/flash builder and also using xcode on the mac. Is it easier to use flash? I have done flash work in the past and it seems that that route might be easier to make games specifically for animations. The one thing that draws me away from flash is that by default I don't think that there is any frameworks for mvvm/mvc I would have to search for some, but on apple's side mvc is the default pattern. Correct me if I am wrong.
iphone
xcode
ipad
flash-builder
flash-cs5
03/27/2012 16:26:18
not constructive
iphone/ipad programming with flash CS5 === I was curious if anyone had any experience doing iphone/ipad programming with flash cs5/flash builder and also using xcode on the mac. Is it easier to use flash? I have done flash work in the past and it seems that that route might be easier to make games specifically for animations. The one thing that draws me away from flash is that by default I don't think that there is any frameworks for mvvm/mvc I would have to search for some, but on apple's side mvc is the default pattern. Correct me if I am wrong.
4
6,472,069
06/24/2011 18:16:49
804,788
06/18/2011 19:14:33
6
0
crul problem after auto login show nothing in php
I used curl to auto log in and print the content after log in page.I successfully logged but do not show any output. because after login it redirect another page . how can i solved it.
php
null
null
null
null
03/11/2012 14:44:46
not a real question
crul problem after auto login show nothing in php === I used curl to auto log in and print the content after log in page.I successfully logged but do not show any output. because after login it redirect another page . how can i solved it.
1
11,023,005
06/13/2012 20:44:50
1,040,498
11/10/2011 20:07:28
75
4
How to read a lot of DICOM files with Matlab?
I am using a script which generate a collection of strings in a loop: 'folder1/im1' 'folder1/im2' ... 'folder1/im3' I assign the string to a variable, when I try to execute the <code>img = dicomread(file);</code> function I get the following error: Error using dicomread>newDicomread (line 164) The first input argument must be a filename or DICOM info struct. Error in dicomread (line 80) [X, map, alpha, overlays] = newDicomread(msgname, frames); Error in time (line 14) img = dicomread(file); However, using the command line I don't get errors: <code>img = dicomread('folder1/im1')</code>. What could be the error?
matlab
image-processing
dicom
null
null
null
open
How to read a lot of DICOM files with Matlab? === I am using a script which generate a collection of strings in a loop: 'folder1/im1' 'folder1/im2' ... 'folder1/im3' I assign the string to a variable, when I try to execute the <code>img = dicomread(file);</code> function I get the following error: Error using dicomread>newDicomread (line 164) The first input argument must be a filename or DICOM info struct. Error in dicomread (line 80) [X, map, alpha, overlays] = newDicomread(msgname, frames); Error in time (line 14) img = dicomread(file); However, using the command line I don't get errors: <code>img = dicomread('folder1/im1')</code>. What could be the error?
0
1,502,375
10/01/2009 07:20:57
174,390
09/16/2009 14:46:53
3
2
JavaScript callback urls in .js codebehind files in ASP.NET MVC
When we have a .js file which we reference from a View page and then have URLs in callback in JS file we run into problems with urls not being resolved when running site either on VS 2008 integrated webserver or on IIS7. For example, we have this piece of code in JS file ` pending.createCallback(pending.webRoot + "../../WidgetZoneV2/MoveWidget/" + sData, pending.widgetAdmin.moveComplete); ` This piece of code works fine when run with integrated webserver (on the URL `http://localhost:54354/WidgetZoneV2/)` but fails on IIS7 where we have an URL like this `http://localhost/virtualdir/WidgetZoneV2`, because it the later case the URL in the callback gets translated into `http://localhost/WidgetZoneV2` which of course does not exist. How do you handle this sort of cases? As far as I can see the only option is to dinamically create JS at runtime.
asp.net-mvc
asp.net-ajax
javascript
null
null
null
open
JavaScript callback urls in .js codebehind files in ASP.NET MVC === When we have a .js file which we reference from a View page and then have URLs in callback in JS file we run into problems with urls not being resolved when running site either on VS 2008 integrated webserver or on IIS7. For example, we have this piece of code in JS file ` pending.createCallback(pending.webRoot + "../../WidgetZoneV2/MoveWidget/" + sData, pending.widgetAdmin.moveComplete); ` This piece of code works fine when run with integrated webserver (on the URL `http://localhost:54354/WidgetZoneV2/)` but fails on IIS7 where we have an URL like this `http://localhost/virtualdir/WidgetZoneV2`, because it the later case the URL in the callback gets translated into `http://localhost/WidgetZoneV2` which of course does not exist. How do you handle this sort of cases? As far as I can see the only option is to dinamically create JS at runtime.
0
8,423,828
12/07/2011 22:57:11
1,086,659
12/07/2011 22:48:10
1
0
Can any One please Help me how can i Use Siri Feature to convert Speech to Text with iOS 5 ?
i want to use native iPhone 4S Feature for Speech to Text Conversion. Can any one please Provide me sample Material For this Purpose. any sample Material can Be Really Helpful.
iphone-sdk-4.0
ios5
null
null
null
12/08/2011 03:26:40
not a real question
Can any One please Help me how can i Use Siri Feature to convert Speech to Text with iOS 5 ? === i want to use native iPhone 4S Feature for Speech to Text Conversion. Can any one please Provide me sample Material For this Purpose. any sample Material can Be Really Helpful.
1
6,699,946
07/14/2011 21:08:31
426,625
08/20/2010 18:08:27
562
19
Unresolved overloaded function type when using a template friend function
I have a problem where I'm trying to stuff a friend function of a templated class into a boost function: #include <boost/function.hpp> template <int N> struct Vec{ friend double dot(Vec, Vec){} }; template class Vec<2>; //Force multiple instantiations template class Vec<3>; int main() { boost::function<double (Vec<2>, Vec<2>)> func = dot; double (*func1)(Vec<2>, Vec<2>) = dot; } Neither of the two lines in main will compile. For the first one, gcc complains: error: conversion from '<unresolved overloaded function type>' to non-scalar type 'boost::function<double(Vec<2>, Vec<2>)>' requested The error for the second line seems even more confusing to me: error: no matches converting function 'dot' to type 'double (*)(struct Vec<2>, struct Vec<2>)' testtmpl.C:6:15: error: candidates are: double dot(Vec<2>, Vec<2>) testtmpl.C:6:15: error: double dot(Vec<3>, Vec<3>) I'm kind of stymied since I don't see why double dot(Vec<2>, Vec<2>) doesn't match. Any ideas as to what is happening here? -Matt
c++
boost
boost-function
null
null
null
open
Unresolved overloaded function type when using a template friend function === I have a problem where I'm trying to stuff a friend function of a templated class into a boost function: #include <boost/function.hpp> template <int N> struct Vec{ friend double dot(Vec, Vec){} }; template class Vec<2>; //Force multiple instantiations template class Vec<3>; int main() { boost::function<double (Vec<2>, Vec<2>)> func = dot; double (*func1)(Vec<2>, Vec<2>) = dot; } Neither of the two lines in main will compile. For the first one, gcc complains: error: conversion from '<unresolved overloaded function type>' to non-scalar type 'boost::function<double(Vec<2>, Vec<2>)>' requested The error for the second line seems even more confusing to me: error: no matches converting function 'dot' to type 'double (*)(struct Vec<2>, struct Vec<2>)' testtmpl.C:6:15: error: candidates are: double dot(Vec<2>, Vec<2>) testtmpl.C:6:15: error: double dot(Vec<3>, Vec<3>) I'm kind of stymied since I don't see why double dot(Vec<2>, Vec<2>) doesn't match. Any ideas as to what is happening here? -Matt
0
10,042,429
04/06/2012 10:46:51
413,734
08/07/2010 09:24:25
72
1
Segmentation fault Python
I have the Enthought Python Distribution installed. Before that I installed Python2.7 and installed other modules (e.g. opencv). Enthought establishes itself as the default python. Called 7.2, but it is 2.7. Now if i want to import cv in the Enthought Python it always gives me the Segmentation fault Error. Is there anyway to import cv in the Enthought Python ? That would be awesome. Also installing any new module into Enthought, seems to have the same error. Any solution for that would be great. Thanks!
python
segmentation-fault
null
null
null
04/06/2012 22:06:31
not a real question
Segmentation fault Python === I have the Enthought Python Distribution installed. Before that I installed Python2.7 and installed other modules (e.g. opencv). Enthought establishes itself as the default python. Called 7.2, but it is 2.7. Now if i want to import cv in the Enthought Python it always gives me the Segmentation fault Error. Is there anyway to import cv in the Enthought Python ? That would be awesome. Also installing any new module into Enthought, seems to have the same error. Any solution for that would be great. Thanks!
1
4,227,226
11/19/2010 16:41:16
263,714
02/01/2010 17:09:59
36
0
What is the state of GIT IDE plugins in 2010 (old question was in 2008)?
My firm is switching to GIT and I'm curious as to the state of IDE plug ins for GIT. The old question was answered in 2008, and I'm hoping the answer no longer applies.
eclipse
git
emacs
ide
null
null
open
What is the state of GIT IDE plugins in 2010 (old question was in 2008)? === My firm is switching to GIT and I'm curious as to the state of IDE plug ins for GIT. The old question was answered in 2008, and I'm hoping the answer no longer applies.
0
5,924,336
05/07/2011 22:12:54
491,214
10/29/2010 11:14:04
358
19
Put Text In Center, Bottom Part Of An Image
So-I've got this code that puts a text dynamically on an image. currently it puts it on the left middle part of the picture. I'd like it to put the text on the bottom center section of the image. Could you please help me with the coordinates? <?php $image2 = imagecreatefromjpeg("image -path"); $textsize = 30; $size = imagettfbbox($textsize, 0, $font, $text); $xsize = abs($size[0]) + abs($size[2]); $ysize = abs($size[5]) + abs($size[1]); $image2size = getimagesize("image -path"); $indentfromedge = 5; $textleftpos = $indentfromedge; $texttoppos = $image2size[1] - $ysize - $indentfromedge; $white = imagecolorallocate($image2, 255, 255, 255); $grey = imagecolorallocate($image2, 128, 128, 128); $black = imagecolorallocate($image2, 0, 0, 0); switch($_REQUEST['textcolor']) { case "white": $textcolor = $white; break; case "black": $textcolor = $black; break; } imagettftext($image2, $textsize, 0, $textleftpos, $texttoppos, $textcolor, $font, $text); imagejpeg($image2, "new-image-path"); ?>
php
gd
center
null
null
05/09/2011 21:10:35
too localized
Put Text In Center, Bottom Part Of An Image === So-I've got this code that puts a text dynamically on an image. currently it puts it on the left middle part of the picture. I'd like it to put the text on the bottom center section of the image. Could you please help me with the coordinates? <?php $image2 = imagecreatefromjpeg("image -path"); $textsize = 30; $size = imagettfbbox($textsize, 0, $font, $text); $xsize = abs($size[0]) + abs($size[2]); $ysize = abs($size[5]) + abs($size[1]); $image2size = getimagesize("image -path"); $indentfromedge = 5; $textleftpos = $indentfromedge; $texttoppos = $image2size[1] - $ysize - $indentfromedge; $white = imagecolorallocate($image2, 255, 255, 255); $grey = imagecolorallocate($image2, 128, 128, 128); $black = imagecolorallocate($image2, 0, 0, 0); switch($_REQUEST['textcolor']) { case "white": $textcolor = $white; break; case "black": $textcolor = $black; break; } imagettftext($image2, $textsize, 0, $textleftpos, $texttoppos, $textcolor, $font, $text); imagejpeg($image2, "new-image-path"); ?>
3
8,353,084
12/02/2011 07:32:20
544,843
12/16/2010 13:52:43
1
0
Json Date Format
My json string response date is in this format: "due_date":"2011-11-23" I wanna know how can i convert this into a mm/dd/yyyy format. Please seeking for help Thanks, droido
android
date
dateformat
simpledateformat
null
null
open
Json Date Format === My json string response date is in this format: "due_date":"2011-11-23" I wanna know how can i convert this into a mm/dd/yyyy format. Please seeking for help Thanks, droido
0
1,866,844
12/08/2009 13:03:49
53,183
01/09/2009 01:31:06
214
16
Any good resource (non-people) management libraries?
As our automated test infrastructure grows, we have a need to automatically manage the test resources (servers, etc). Not manage updates to the systems but have an automatic (programmatic) way to reserve resources for use in the automated test runs and release resources when finished. I need to be able to to add items to the system, store meta data about them, reserve them, and release the resources when finished. Are there any such existing systems that manage resources this way that could be integrated with other programs? Target languages to interface with such as system are Java, or C# but if something else good exists in another language (or had some way to interface with it from other languages) I'd take a look at it too.
testing
automated-tests
resources
null
null
null
open
Any good resource (non-people) management libraries? === As our automated test infrastructure grows, we have a need to automatically manage the test resources (servers, etc). Not manage updates to the systems but have an automatic (programmatic) way to reserve resources for use in the automated test runs and release resources when finished. I need to be able to to add items to the system, store meta data about them, reserve them, and release the resources when finished. Are there any such existing systems that manage resources this way that could be integrated with other programs? Target languages to interface with such as system are Java, or C# but if something else good exists in another language (or had some way to interface with it from other languages) I'd take a look at it too.
0
5,503,627
03/31/2011 17:12:12
458,927
09/26/2010 20:38:53
21
1
Which is best advertising SDK for mobile?
I'm developing application and games for Mobile platforms (Android, WindowsPhone 7). I would like to integrate Ads for my applications, can you tell me which is the best Advertising SDK? I have been doing a research on the best SDK's but i'm unable to find it. Thanks, Sam
android
windows-phone-7
sdk
ads
advertisement
03/31/2011 19:38:35
not constructive
Which is best advertising SDK for mobile? === I'm developing application and games for Mobile platforms (Android, WindowsPhone 7). I would like to integrate Ads for my applications, can you tell me which is the best Advertising SDK? I have been doing a research on the best SDK's but i'm unable to find it. Thanks, Sam
4
9,820,671
03/22/2012 10:42:36
1,285,603
03/22/2012 10:11:22
1
1
RuntimeError (symbol table overflow (symbol _one_time_conditions.))
My web app now crash that by this error: RuntimeError (symbol table overflow (symbol _one_time_conditions...)): app/controllers/application_controller.rb:3 The error will appare after about 1 day from start . And resume normal after restart the web application. Can anyone help to provide solution ? The version as below: ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2011.03 Rails 3.0.7 Many thanks. Dabidi
ruby-on-rails
table
symbol
runtimeerror
null
null
open
RuntimeError (symbol table overflow (symbol _one_time_conditions.)) === My web app now crash that by this error: RuntimeError (symbol table overflow (symbol _one_time_conditions...)): app/controllers/application_controller.rb:3 The error will appare after about 1 day from start . And resume normal after restart the web application. Can anyone help to provide solution ? The version as below: ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2011.03 Rails 3.0.7 Many thanks. Dabidi
0
10,341,292
04/26/2012 20:54:33
708,257
04/14/2011 15:37:14
6
0
How to remove an item from a linked list within 30 seconds after the addition of?
How to remove an item from a linked list within 30 seconds after the addition of? Hava you any idea ? This question I was asked at the interview.
c++
algorithm
list
data-structures
linked-list
04/30/2012 04:31:50
not a real question
How to remove an item from a linked list within 30 seconds after the addition of? === How to remove an item from a linked list within 30 seconds after the addition of? Hava you any idea ? This question I was asked at the interview.
1
9,839,526
03/23/2012 12:50:08
1,288,267
03/23/2012 12:45:56
1
0
Windows 7 crashes because of DNS client events?
every time I point my internet browser (IE or firefox) to localhost or 127.0.0.1, Windows 7 ultimate 32-bit displays the message "Windows has encountered a critical problem & will restart in few minutes", the system event log says "there was an error reading from the local host file" (source:"DNS client events"). the local hosts file has only one entry : 127.0.0.1 localhost the windows service DNS Client is started as Network Service account. any pointers are appreciated.
python
null
null
null
null
03/28/2012 03:58:36
off topic
Windows 7 crashes because of DNS client events? === every time I point my internet browser (IE or firefox) to localhost or 127.0.0.1, Windows 7 ultimate 32-bit displays the message "Windows has encountered a critical problem & will restart in few minutes", the system event log says "there was an error reading from the local host file" (source:"DNS client events"). the local hosts file has only one entry : 127.0.0.1 localhost the windows service DNS Client is started as Network Service account. any pointers are appreciated.
2
6,051,590
05/18/2011 22:05:40
760,042
05/18/2011 22:05:40
1
0
MYSQL- match against boolean mode does not return anything for exact words like "first", "last"
Here is an example - SELECT `title`, `desc` FROM `stories` WHERE MATCH (`title`,`desc`) AGAINST ('"last"' IN BOOLEAN MODE); There are records in the stories table that contain exact word 'last' but this query does not retun those records. It matches any other words but not these -'first', 'second', 'last' etc Any help on this issue will be appreciated. Thank you.
mysql
null
null
null
null
null
open
MYSQL- match against boolean mode does not return anything for exact words like "first", "last" === Here is an example - SELECT `title`, `desc` FROM `stories` WHERE MATCH (`title`,`desc`) AGAINST ('"last"' IN BOOLEAN MODE); There are records in the stories table that contain exact word 'last' but this query does not retun those records. It matches any other words but not these -'first', 'second', 'last' etc Any help on this issue will be appreciated. Thank you.
0
9,866,106
03/26/2012 03:02:27
1,042,861
11/12/2011 06:09:58
55
4
nginx on VirtualBox Ubuntu guest serves stale content
I don't know if this is a problem with Ubuntu, VirtualBox or nginx. I am running nginx on Ubuntu, which is a VirtualBox guest on Windows 7. A Windows 7 folder is mounted as a auto-mount, read-only Shared Folder in VirtualBox. Ubuntu sees the folder as /media/sf_jsource Now, if I edit a file in that folder on Windows 7, a shell command (cat) on Ubuntu sees the new content. That would seem to imply that VirtualBox and Ubuntu are picking up the new changes just fine. However, the nginx server running on Ubuntu keeps serving the stale content. That suggested that the problem was with nginx caching files. I googled around and saw a couple of entries (from 2010, 2011) to disable the nginx cache. However, I have not enabled any cache in the nginx config, and I don't see any /var/cache/nginx or /opt/cache/nginx directory to purge. Now, the funny thing is that restarting nginx doesn't fix the problem. I have to restart the Ubuntu guest for nginx to see the new content, which doesn't make sense since cat in Ubuntu was seeing the changes anyway before reboot. Pretty much everything (nginx, Ubuntu, VirualBox) is the latest version as of early 2012.
ubuntu
nginx
virtualbox
null
null
03/27/2012 14:45:21
off topic
nginx on VirtualBox Ubuntu guest serves stale content === I don't know if this is a problem with Ubuntu, VirtualBox or nginx. I am running nginx on Ubuntu, which is a VirtualBox guest on Windows 7. A Windows 7 folder is mounted as a auto-mount, read-only Shared Folder in VirtualBox. Ubuntu sees the folder as /media/sf_jsource Now, if I edit a file in that folder on Windows 7, a shell command (cat) on Ubuntu sees the new content. That would seem to imply that VirtualBox and Ubuntu are picking up the new changes just fine. However, the nginx server running on Ubuntu keeps serving the stale content. That suggested that the problem was with nginx caching files. I googled around and saw a couple of entries (from 2010, 2011) to disable the nginx cache. However, I have not enabled any cache in the nginx config, and I don't see any /var/cache/nginx or /opt/cache/nginx directory to purge. Now, the funny thing is that restarting nginx doesn't fix the problem. I have to restart the Ubuntu guest for nginx to see the new content, which doesn't make sense since cat in Ubuntu was seeing the changes anyway before reboot. Pretty much everything (nginx, Ubuntu, VirualBox) is the latest version as of early 2012.
2
789,987
04/26/2009 00:19:04
96,087
04/26/2009 00:19:04
1
0
Don't want to learn PHP. What's the best strategy?
I've been programming in Ruby on Rails for a year now. Looked at PHP code of WordPress and it's e-Commerce plugin. Not going to sound professional, but it looked **disgusting**. Having only done development in an MVC framework, I can't imagine how is it possible to work without those patterns. There also seems to be no alternative in PHP to ruby gems, which are of outstanding quality. I'm graduating in 3 years. Is it reasonable for me to skip PHP completely? I know a lot of big projects are built with it, but unless they get an equivalent of gems and an MVC framework, the whole thing is very unappealing. What should I do? Avoid PHP employment or plow through it?
ruby
ruby-on-rails
php
mvc
null
07/04/2012 15:49:13
not constructive
Don't want to learn PHP. What's the best strategy? === I've been programming in Ruby on Rails for a year now. Looked at PHP code of WordPress and it's e-Commerce plugin. Not going to sound professional, but it looked **disgusting**. Having only done development in an MVC framework, I can't imagine how is it possible to work without those patterns. There also seems to be no alternative in PHP to ruby gems, which are of outstanding quality. I'm graduating in 3 years. Is it reasonable for me to skip PHP completely? I know a lot of big projects are built with it, but unless they get an equivalent of gems and an MVC framework, the whole thing is very unappealing. What should I do? Avoid PHP employment or plow through it?
4
8,020,359
11/05/2011 13:07:34
482,909
10/21/2010 11:07:29
107
12
Secure iPad against Abuse
We are going to create apps with the enterprise programm and install them on iPads which are available in a public place. Is it possible to scire the iPads like they are in the Apple Stores, like preventing to set a passcode and deaktivate the possibilty to move apps arround? These are functionallities which are not covered by the iPhone configuration utility.
ios
ipad
security
null
null
11/05/2011 14:15:20
off topic
Secure iPad against Abuse === We are going to create apps with the enterprise programm and install them on iPads which are available in a public place. Is it possible to scire the iPads like they are in the Apple Stores, like preventing to set a passcode and deaktivate the possibilty to move apps arround? These are functionallities which are not covered by the iPhone configuration utility.
2
3,665,947
09/08/2010 08:41:38
647,674
09/08/2010 08:39:09
1
0
Antivirus alogorithm in DataStructure
Hello i want to make a Antivirus Software in DataStructure using C#.So help neended for the Algorithm.
c#
data
antivirus
structures
null
09/08/2010 09:03:34
not a real question
Antivirus alogorithm in DataStructure === Hello i want to make a Antivirus Software in DataStructure using C#.So help neended for the Algorithm.
1
7,480,837
09/20/2011 06:07:30
418,957
08/12/2010 21:49:55
180
13
Help Writing an Asynchronous Unit Test In Silverlight
I am trying to write an Asynchronous Silverlight Unit Test, as mentioned in http://developer.yahoo.com/dotnet/silverlight/2.0/unittest.html. Perhaps I am struggling with lambda expressions, I am not sure, but I am unclear how to write my named callbacks so that the asynch test completes without exception. Currently it throws an System.UnauthorizedAccessException (Invalid cross-thread access) in the call the TestComplete(), which I am guessing is because it doesn't know it's still in the testNullInsert() test? Question - how do I write the test correctly, and if I need lambda expressions, please explain what does what please. Below is my code so far: [TestClass] public class IdentityEditDatabaseTest : WorkItemTest { [TestMethod, Asynchronous] public void testNullInsert() { wipeTestData(testNullInsertContinue1); } private void testNullInsertContinue1(String errorString) { IdentityProperties properties = new IdentityProperties(getContext()); properties.setUserName(DATABASE_TEST); postUserEdit(properties, testNullInsertContinue2); } private void testNullInsertContinue2(String errorString) { Assert.assertTrue(errorString == null); wipeTestData(testNullInsertContinue3); } private void testNullInsertContinue3(String errorString) { TestComplete(); } } Thanks!
c#
silverlight
unit-testing
windows-phone-7
null
null
open
Help Writing an Asynchronous Unit Test In Silverlight === I am trying to write an Asynchronous Silverlight Unit Test, as mentioned in http://developer.yahoo.com/dotnet/silverlight/2.0/unittest.html. Perhaps I am struggling with lambda expressions, I am not sure, but I am unclear how to write my named callbacks so that the asynch test completes without exception. Currently it throws an System.UnauthorizedAccessException (Invalid cross-thread access) in the call the TestComplete(), which I am guessing is because it doesn't know it's still in the testNullInsert() test? Question - how do I write the test correctly, and if I need lambda expressions, please explain what does what please. Below is my code so far: [TestClass] public class IdentityEditDatabaseTest : WorkItemTest { [TestMethod, Asynchronous] public void testNullInsert() { wipeTestData(testNullInsertContinue1); } private void testNullInsertContinue1(String errorString) { IdentityProperties properties = new IdentityProperties(getContext()); properties.setUserName(DATABASE_TEST); postUserEdit(properties, testNullInsertContinue2); } private void testNullInsertContinue2(String errorString) { Assert.assertTrue(errorString == null); wipeTestData(testNullInsertContinue3); } private void testNullInsertContinue3(String errorString) { TestComplete(); } } Thanks!
0
9,132,545
02/03/2012 17:08:53
634,772
02/25/2011 19:34:25
169
0
Is there a way to optimize this custom made function?
I made this function and because I use it on the entire site I want to know if it is a way to optimize it, to make it run faster? I would also want to know if I thinked well the function? Thanks. `// function to get the seo friendly url of a video based on it's id function video_seo_urls($video_id){ global $site_url; $sql = dbquery('SELECT `post_name`, `new_post_name`, `category` FROM `videos` WHERE `id` ="'.$video_id.'" LIMIT 0,1;'); while($row = mysql_fetch_array($sql)){$post_name = $row["post_name"]; $new_post_name = $row["new_post_name"]; $category_id = $row["category"];} $csql = dbquery('SELECT `category_slug` FROM `categories` WHERE `category_id` = "'.$category_id.'" LIMIT 0,1;'); while($row = mysql_fetch_array($csql)){$category = $row["category_slug"];} if ($new_post_name !== ""){$video_slug = $new_post_name;} else if ($new_post_name == "" && $post_name !== ""){$video_slug = $post_name;} $video_url = $site_url.'video/'.$category.'/'.$video_slug.'/'; return $video_url;} echo video_seo_urls(14775); `
php
function
optimization
null
null
02/03/2012 17:40:32
off topic
Is there a way to optimize this custom made function? === I made this function and because I use it on the entire site I want to know if it is a way to optimize it, to make it run faster? I would also want to know if I thinked well the function? Thanks. `// function to get the seo friendly url of a video based on it's id function video_seo_urls($video_id){ global $site_url; $sql = dbquery('SELECT `post_name`, `new_post_name`, `category` FROM `videos` WHERE `id` ="'.$video_id.'" LIMIT 0,1;'); while($row = mysql_fetch_array($sql)){$post_name = $row["post_name"]; $new_post_name = $row["new_post_name"]; $category_id = $row["category"];} $csql = dbquery('SELECT `category_slug` FROM `categories` WHERE `category_id` = "'.$category_id.'" LIMIT 0,1;'); while($row = mysql_fetch_array($csql)){$category = $row["category_slug"];} if ($new_post_name !== ""){$video_slug = $new_post_name;} else if ($new_post_name == "" && $post_name !== ""){$video_slug = $post_name;} $video_url = $site_url.'video/'.$category.'/'.$video_slug.'/'; return $video_url;} echo video_seo_urls(14775); `
2
7,363,487
09/09/2011 14:49:21
713,213
04/18/2011 10:20:09
82
0
Custom Edit Field Creation problem
I have created one screen in which there is background.and on that i am creating a Custom Edit Fields with one button.now my problem is that my edit field is displaying on upper side.i want to make to the center of the screen.what modifications i have to do so.i am giving my code snippet. public class CancelBooking extends MainScreen implements FieldChangeListener { public LabelField heading; ButtonField next; String emp_id,emp_name,salary; public CancelBooking(String id,String name,String sal) { // TODO Auto-generated constructor stub emp_id=id; emp_name=name; salary=sal; } // protected void sublayout(int width, int height){ // super.sublayout(Display.getWidth(), height); // setExtent(Display.getWidth(), this.getPreferredHeight()); // int leftPadding = Display.getWidth()/2 -this.getPreferredWidth()/2; // int rightPadding = Display.getWidth() - leftPadding -this.getPreferredWidth(); // // setPadding(5,rightPadding,5,leftPadding); // invalidate(); // } CancelBooking() { heading = new LabelField(){ public void paint(Graphics g){ g.setColor(Color.WHITE); super.paint(g); } }; heading.setFont(Font.getDefault().derive(Font.BOLD, Font.getDefault().getHeight()+2)); heading.setText("Check-In"); getMainManager().setBackground( BackgroundFactory.createBitmapBackground( Bitmap.getBitmapResource("PlainScreen.png"))); //setTitle("First Screen"); BasicEditField id=new BasicEditField("Last Name: ",""); BasicEditField name=new BasicEditField("Confirmation Number: ",""); //BasicEditField sal=new BasicEditField("Salary: ",""); add(id); add(name); //add(sal); next=new ButtonField("Next"); next.setChangeListener(this); // add(next); } public void fieldChanged(Field field, int context) { if(field==next) UiApplication.getUiApplication().pushScreen(new MenuScreen()); } }
uitextfield
blackberry-simulator
blackberry-eclipse-plugin
null
null
null
open
Custom Edit Field Creation problem === I have created one screen in which there is background.and on that i am creating a Custom Edit Fields with one button.now my problem is that my edit field is displaying on upper side.i want to make to the center of the screen.what modifications i have to do so.i am giving my code snippet. public class CancelBooking extends MainScreen implements FieldChangeListener { public LabelField heading; ButtonField next; String emp_id,emp_name,salary; public CancelBooking(String id,String name,String sal) { // TODO Auto-generated constructor stub emp_id=id; emp_name=name; salary=sal; } // protected void sublayout(int width, int height){ // super.sublayout(Display.getWidth(), height); // setExtent(Display.getWidth(), this.getPreferredHeight()); // int leftPadding = Display.getWidth()/2 -this.getPreferredWidth()/2; // int rightPadding = Display.getWidth() - leftPadding -this.getPreferredWidth(); // // setPadding(5,rightPadding,5,leftPadding); // invalidate(); // } CancelBooking() { heading = new LabelField(){ public void paint(Graphics g){ g.setColor(Color.WHITE); super.paint(g); } }; heading.setFont(Font.getDefault().derive(Font.BOLD, Font.getDefault().getHeight()+2)); heading.setText("Check-In"); getMainManager().setBackground( BackgroundFactory.createBitmapBackground( Bitmap.getBitmapResource("PlainScreen.png"))); //setTitle("First Screen"); BasicEditField id=new BasicEditField("Last Name: ",""); BasicEditField name=new BasicEditField("Confirmation Number: ",""); //BasicEditField sal=new BasicEditField("Salary: ",""); add(id); add(name); //add(sal); next=new ButtonField("Next"); next.setChangeListener(this); // add(next); } public void fieldChanged(Field field, int context) { if(field==next) UiApplication.getUiApplication().pushScreen(new MenuScreen()); } }
0
9,715,323
03/15/2012 07:10:42
807,799
06/21/2011 05:03:52
5
0
Building Business Process Managment(BPM) System
I were aksed to develop a softawre that does Business Process Managment(BPM). All the forms have to be workflow enabled and the our business users has the ability to define and redefine their work withouht always relying on programmers to do so (Adapt to any changes quickly). Technology proposed is to use WF foundation 4 and Silverlight. The requirments is to build the workflow diagram from silverlight and also publish the final workflow into a silverlight system. Are these technologies sufficient for building such a system. And If were to start, could you please guide me to the path I start from and any resources that help me understand how to build such a system. I know it's a big project and I started learning WF4, reading some stuff about BPM and searching for resources. Any recommendations, standards I should focus on are more than welcome. Thanks in advance
silverlight
workflow
workflow-foundation-4
bpm
business-process
03/15/2012 10:28:51
not a real question
Building Business Process Managment(BPM) System === I were aksed to develop a softawre that does Business Process Managment(BPM). All the forms have to be workflow enabled and the our business users has the ability to define and redefine their work withouht always relying on programmers to do so (Adapt to any changes quickly). Technology proposed is to use WF foundation 4 and Silverlight. The requirments is to build the workflow diagram from silverlight and also publish the final workflow into a silverlight system. Are these technologies sufficient for building such a system. And If were to start, could you please guide me to the path I start from and any resources that help me understand how to build such a system. I know it's a big project and I started learning WF4, reading some stuff about BPM and searching for resources. Any recommendations, standards I should focus on are more than welcome. Thanks in advance
1
85,690
09/17/2008 17:36:50
16,488
09/17/2008 17:36:50
1
0
How do you compare Websphere Commerce with the rest of the ecommerce tools available in the market?
All those familiar with websphere commerce will know that it is feature rich. It supports B2B, B2C and extended sites(which ATG doesn't) and what not. But it is complicated and on the performance and reliability front it still seems to leave a lot to be desired. Any opinions on which would be better for a high traffic site?
e-commerce
websphere
atg
commerce
null
null
open
How do you compare Websphere Commerce with the rest of the ecommerce tools available in the market? === All those familiar with websphere commerce will know that it is feature rich. It supports B2B, B2C and extended sites(which ATG doesn't) and what not. But it is complicated and on the performance and reliability front it still seems to leave a lot to be desired. Any opinions on which would be better for a high traffic site?
0
7,800,481
10/17/2011 22:42:43
544,079
12/15/2010 23:39:20
401
2
position div at the bottom of another div
I have a div nested inside another <div id="wrapper"> <div id="left"></div> <div id="right"></div> <div id="footer"></div> </div> THE CSS is as #wrapper{ width:800px; } #left{ float:left; width: 200px; } #right{ float: left; width: 600px; } #footer{ width:800px; height: 20px; } How can i ensure that the footer stays at the bottom of the wrapper div?
html
css
null
null
null
null
open
position div at the bottom of another div === I have a div nested inside another <div id="wrapper"> <div id="left"></div> <div id="right"></div> <div id="footer"></div> </div> THE CSS is as #wrapper{ width:800px; } #left{ float:left; width: 200px; } #right{ float: left; width: 600px; } #footer{ width:800px; height: 20px; } How can i ensure that the footer stays at the bottom of the wrapper div?
0
3,768,195
09/22/2010 10:07:56
437,655
09/02/2010 06:58:01
23
9
what makes a simple program to be a good program?
The programming language or The programming logic..... Because both are equally important for good coding practice. And, please justify your answer.
logic
null
null
null
null
09/22/2010 11:06:20
not constructive
what makes a simple program to be a good program? === The programming language or The programming logic..... Because both are equally important for good coding practice. And, please justify your answer.
4
4,290,459
11/27/2010 06:34:28
480,716
10/19/2010 16:17:30
68
3
MySQL : query question
![alt text][1] [1]: http://i.stack.imgur.com/vXmTc.jpg There are one-one relationship between room and application means an application must occupy a room. If I want to get the room that doesn't occupied by application, how to write sql to query
mysql
query
null
null
null
null
open
MySQL : query question === ![alt text][1] [1]: http://i.stack.imgur.com/vXmTc.jpg There are one-one relationship between room and application means an application must occupy a room. If I want to get the room that doesn't occupied by application, how to write sql to query
0
5,119,919
02/25/2011 16:39:58
9,266
09/15/2008 18:14:08
4,399
93
Sharepoint links - how to open in new tab/Window
I've noticed with Sharepoint 2010, many of the links do not the support open in new tab/window feature. For example, items on the quick menu do not. Is it possible to enable?
sharepoint
null
null
null
null
null
open
Sharepoint links - how to open in new tab/Window === I've noticed with Sharepoint 2010, many of the links do not the support open in new tab/window feature. For example, items on the quick menu do not. Is it possible to enable?
0
546,229
02/13/2009 14:53:47
58,251
01/23/2009 10:55:32
47
0
How to change in runtime application settings
I'm trying to change in runtime one key of my applications settings file, but it does not work. I do on that way: ConfigurationSettings.AppSettings["XPTO"] = "HELLO"; It seems that it only changes in memory, not on the file. Does anyone knows how to do this? Thanks.
c#
.net
null
null
null
null
open
How to change in runtime application settings === I'm trying to change in runtime one key of my applications settings file, but it does not work. I do on that way: ConfigurationSettings.AppSettings["XPTO"] = "HELLO"; It seems that it only changes in memory, not on the file. Does anyone knows how to do this? Thanks.
0
7,226,415
08/29/2011 05:28:22
855,292
07/21/2011 06:14:33
10
0
store procedure sql database(asp,c#.net)
`i used a store procedure ` `declare @column1 varchar(1000) ` `SELECT @column1 = COALESCE(@column1 + ',', '') + isnull(email,'')` `FROM userinfok` `where mtype='BSC' and stateincharge like '%kerala%' and email != '' ` `select @column1 as emails ` `end` `go` `can i retrive value from emails to my web page..... ` `means can i display this emails values to a label in my web page(asp.net(c#)`
c#
asp.net
sql
null
null
08/29/2011 06:41:19
not a real question
store procedure sql database(asp,c#.net) === `i used a store procedure ` `declare @column1 varchar(1000) ` `SELECT @column1 = COALESCE(@column1 + ',', '') + isnull(email,'')` `FROM userinfok` `where mtype='BSC' and stateincharge like '%kerala%' and email != '' ` `select @column1 as emails ` `end` `go` `can i retrive value from emails to my web page..... ` `means can i display this emails values to a label in my web page(asp.net(c#)`
1
87,513
09/17/2008 20:47:55
16,794
09/17/2008 20:47:55
1
0
What is the best resource for learning Scrum?
What is the best resource for learning Scrum?
scrum
process
architecture
null
null
03/30/2012 12:28:08
not constructive
What is the best resource for learning Scrum? === What is the best resource for learning Scrum?
4
6,579,305
07/05/2011 07:38:41
532,240
12/06/2010 12:03:59
15
0
I want to share a file(2.0 MB) between two IOS device. Anyone suggest me a good approach.
I want to share a file(2.0 MB) between two IOS device. I tried using the Game kit application. and i was able to send small files (tested upto 69 KB) across the network by split the data into packets of less than 1000 bytes. However on sending large file(2 MB) i am able to receive it on the other side (The file size) but error occurs while trying to read the file. I also came across the Bonjour framework but i found it difficult to understand it. Can anybody share any simple tutorial and sample code transferring the file between 2 IOS devices using Bonjour framework. Thanks in Advance.
iphone
c
ipad
objective
null
07/05/2011 09:23:49
not a real question
I want to share a file(2.0 MB) between two IOS device. Anyone suggest me a good approach. === I want to share a file(2.0 MB) between two IOS device. I tried using the Game kit application. and i was able to send small files (tested upto 69 KB) across the network by split the data into packets of less than 1000 bytes. However on sending large file(2 MB) i am able to receive it on the other side (The file size) but error occurs while trying to read the file. I also came across the Bonjour framework but i found it difficult to understand it. Can anybody share any simple tutorial and sample code transferring the file between 2 IOS devices using Bonjour framework. Thanks in Advance.
1
9,211,038
02/09/2012 12:42:41
395,069
07/18/2010 09:21:17
26
1
Wix: Installing a Component while Repair Or Reinstall
**Problem:**<br> I have a User Requirement in which a file would not be installed if a Prerequisite application is absent on users machine. But after installing my product, when user would install that Prerequisite application, he would run my installer and choose repair to install that missing file and its related registry entries. **My expectations:**<br> I know Repair would only repair those files that would already been installed by first installation. But isn't there any workaround about this???<br><br> Any here and ther with AddLocal??? Thanks a bunch in advance.
wix
repair
reinstall
null
null
null
open
Wix: Installing a Component while Repair Or Reinstall === **Problem:**<br> I have a User Requirement in which a file would not be installed if a Prerequisite application is absent on users machine. But after installing my product, when user would install that Prerequisite application, he would run my installer and choose repair to install that missing file and its related registry entries. **My expectations:**<br> I know Repair would only repair those files that would already been installed by first installation. But isn't there any workaround about this???<br><br> Any here and ther with AddLocal??? Thanks a bunch in advance.
0
3,311,544
07/22/2010 17:20:25
385,559
07/07/2010 13:18:18
31
0
NSTimer: Getting firing to NOT act retroactively.
I'm currently using the snippet of code presented below to fire some methods every second. My app is running in the background. The problem is that if the computer wakes up after a sleep period the timer wants to retroactively fire all the methods it has missed. Similar issues come up if the user were to change the System Clock time. Basically I want to implement the proper timer method that will have my methods called **only every current secon**d. If a second (or minute or hour or day) has passed and for whatever reason the methods weren't called I want my app to just continue from the current moment in time. Also, can we keep this while using NSTimer? Thanks! -(void)start { NSTimer * timer = [NSTimer timerWithTimeInterval:1.0 target:self selector:@selector(tasks:) userInfo:nil repeats:YES]; [[NSRunLoop currentRunLoop] addTimer:timer forMode: NSDefaultRunLoopMode]; }
objective-c
cocoa
time
null
null
null
open
NSTimer: Getting firing to NOT act retroactively. === I'm currently using the snippet of code presented below to fire some methods every second. My app is running in the background. The problem is that if the computer wakes up after a sleep period the timer wants to retroactively fire all the methods it has missed. Similar issues come up if the user were to change the System Clock time. Basically I want to implement the proper timer method that will have my methods called **only every current secon**d. If a second (or minute or hour or day) has passed and for whatever reason the methods weren't called I want my app to just continue from the current moment in time. Also, can we keep this while using NSTimer? Thanks! -(void)start { NSTimer * timer = [NSTimer timerWithTimeInterval:1.0 target:self selector:@selector(tasks:) userInfo:nil repeats:YES]; [[NSRunLoop currentRunLoop] addTimer:timer forMode: NSDefaultRunLoopMode]; }
0
11,509,666
07/16/2012 17:45:11
595,234
01/29/2011 19:50:30
431
0
EXTJS 3 datetime API to convert
In the EXTJS 3, if I have a string like 'Fri Jul 13 00:00:00 EDT 2012' , how can I get date string '07/13/2012' ? Does EXTJS have some API to handle this ? Thanks
javascript
extjs
null
null
null
null
open
EXTJS 3 datetime API to convert === In the EXTJS 3, if I have a string like 'Fri Jul 13 00:00:00 EDT 2012' , how can I get date string '07/13/2012' ? Does EXTJS have some API to handle this ? Thanks
0
2,871,196
05/20/2010 05:24:05
889
08/10/2008 08:04:03
1,191
22
C++ book for a c# developer
I am a c# developer which finds himself having to relearn c++. The last time I programmed in c++ was in school and am looking for good books as a refresher. I want something that assumes previous programming exposure and gets straight to the point. Is there a book similar to K&R for c++? I know the language is bloated so a book that covers a subset of c++ would be ideal.
c++
books
c#
null
null
09/18/2011 14:38:27
not constructive
C++ book for a c# developer === I am a c# developer which finds himself having to relearn c++. The last time I programmed in c++ was in school and am looking for good books as a refresher. I want something that assumes previous programming exposure and gets straight to the point. Is there a book similar to K&R for c++? I know the language is bloated so a book that covers a subset of c++ would be ideal.
4
8,918,981
01/18/2012 23:19:18
381,711
07/02/2010 03:49:44
182
4
jquery address and Iframes
Basically, Im trying to setup a page so that when a link is clicked it will open in the iframe but the url of the parent page will update with the hash but the url of the iframe will be the original clicked url (without the hash). I got to the point where the initial click event functions. but the change event (if the user links directly to the page) does not work. Here is a snippet of my code: $j('.products-grid .item a, .post a').click(function(){ $details.fadeIn().addClass('active'); $j.address.value($j(this).attr('href').substr(2)); $details.animate({left:detailGap}, { duration: 500, easing: 'easeInOutExpo'}); }); }).change(function(event) { $iframe.attr('src', event.value); $details.fadeIn().addClass('active'); $details.animate({left:detailGap}, { duration: 500, easing: 'easeInOutExpo'}); var loadurl = location.origin + location.pathname +location.hash.substr(1); alert(loadurl); $iframe.attr('src', loadurl); }); ie: for the url, http://www.url.com/product-1 (iframe url) I want it to show up as http://www.url.com/#/product-1 (page url) this is in magento. thanks, Robert
jquery
magento
iframe
jquery-address
null
null
open
jquery address and Iframes === Basically, Im trying to setup a page so that when a link is clicked it will open in the iframe but the url of the parent page will update with the hash but the url of the iframe will be the original clicked url (without the hash). I got to the point where the initial click event functions. but the change event (if the user links directly to the page) does not work. Here is a snippet of my code: $j('.products-grid .item a, .post a').click(function(){ $details.fadeIn().addClass('active'); $j.address.value($j(this).attr('href').substr(2)); $details.animate({left:detailGap}, { duration: 500, easing: 'easeInOutExpo'}); }); }).change(function(event) { $iframe.attr('src', event.value); $details.fadeIn().addClass('active'); $details.animate({left:detailGap}, { duration: 500, easing: 'easeInOutExpo'}); var loadurl = location.origin + location.pathname +location.hash.substr(1); alert(loadurl); $iframe.attr('src', loadurl); }); ie: for the url, http://www.url.com/product-1 (iframe url) I want it to show up as http://www.url.com/#/product-1 (page url) this is in magento. thanks, Robert
0
30,342
08/27/2008 14:49:44
2,993
08/26/2008 10:45:59
171
7
Why do I receive a q[num] error when aborting a jQuery queue pipeline?
When creating and executing a ajax request queue with $.manageAjax, I call ajaxManager.abort();, to abort the entire queue due to error, at which time I get an error stating q[num] has no properties (jquery.ajaxmanager.js line 75) here is the calling code: var ajaxManager = $.manageAjax({manageType:'sync', maxReq:0}); // setup code calling ajaxManager.add(...) // in success callback of first request ajaxManager.abort(); <-- causes error in jquery.ajaxManager.js there are 4 requests in the queue, this is being called in the success of the first request, if certain criteria is met, the queue needs to be aborted. Any ideas?
jquery
ajax
null
null
null
null
open
Why do I receive a q[num] error when aborting a jQuery queue pipeline? === When creating and executing a ajax request queue with $.manageAjax, I call ajaxManager.abort();, to abort the entire queue due to error, at which time I get an error stating q[num] has no properties (jquery.ajaxmanager.js line 75) here is the calling code: var ajaxManager = $.manageAjax({manageType:'sync', maxReq:0}); // setup code calling ajaxManager.add(...) // in success callback of first request ajaxManager.abort(); <-- causes error in jquery.ajaxManager.js there are 4 requests in the queue, this is being called in the success of the first request, if certain criteria is met, the queue needs to be aborted. Any ideas?
0
7,178,850
08/24/2011 16:19:17
221,396
11/30/2009 14:59:27
82
0
ActionScript2 Base64 encode/decode binary data
I have an actionscript 2 code that uses base64 to encode/decode incoming data. problem is that data is binary and includes null (0 characters), actionscript 2 fails when handing null to charCodeAt. I figured what I need is an actionscript 2 lib that can do base64 encoding/decoding on an array rather than a String. can anyone point me to one ? this is very important, thanks
javascript
actionscript
encoding
base64
null
null
open
ActionScript2 Base64 encode/decode binary data === I have an actionscript 2 code that uses base64 to encode/decode incoming data. problem is that data is binary and includes null (0 characters), actionscript 2 fails when handing null to charCodeAt. I figured what I need is an actionscript 2 lib that can do base64 encoding/decoding on an array rather than a String. can anyone point me to one ? this is very important, thanks
0
10,173,664
04/16/2012 11:59:58
412,982
08/06/2010 11:41:00
568
19
GPL Empty Schema of a MySQL Database For A Digital Library
I wonder if is available a GPL schema for a MySQL database to be used for a digital library. Generally speaking I wonder if there is a sort of schema repository for MySQL databases. Thank you.
mysql
null
null
null
null
04/16/2012 19:20:49
not constructive
GPL Empty Schema of a MySQL Database For A Digital Library === I wonder if is available a GPL schema for a MySQL database to be used for a digital library. Generally speaking I wonder if there is a sort of schema repository for MySQL databases. Thank you.
4
7,239,680
08/30/2011 06:57:57
919,143
08/30/2011 06:57:57
1
0
Using android maps api for showing destination point on map
I am using android maps app to find a route between user and destination object. Call looks like this: `Uri uri = Uri.parse( "http://maps.google.com/maps?saddr=" + m_GPS.getLatitude() + "," + m_GPS.getLongitude() + "&daddr=" + ((double) m_Item.coordinates.getLatitudeE6()) / 1000000.0f + "," + ((double) m_Item.coordinates.getLongitudeE6()) / 1000000.0f); Intent intentMaps = new Intent(android.content.Intent.ACTION_VIEW, uri); startActivity(intentMaps);` Now I want to use android maps app only for destination point. Is it possible to make a call that would only align map around destination point, preferably with some icon showing destination point? if I try to remove source coordinates, it still aligns map around user position.
java
android
google
maps
null
null
open
Using android maps api for showing destination point on map === I am using android maps app to find a route between user and destination object. Call looks like this: `Uri uri = Uri.parse( "http://maps.google.com/maps?saddr=" + m_GPS.getLatitude() + "," + m_GPS.getLongitude() + "&daddr=" + ((double) m_Item.coordinates.getLatitudeE6()) / 1000000.0f + "," + ((double) m_Item.coordinates.getLongitudeE6()) / 1000000.0f); Intent intentMaps = new Intent(android.content.Intent.ACTION_VIEW, uri); startActivity(intentMaps);` Now I want to use android maps app only for destination point. Is it possible to make a call that would only align map around destination point, preferably with some icon showing destination point? if I try to remove source coordinates, it still aligns map around user position.
0
1,536,157
10/08/2009 07:28:04
59,301
01/27/2009 11:18:00
4,042
195
Can RIA flash apps on the IPhone store persist data until an internet connection is available?
I'm interested in building a thick client application for my existing web services that will run on the IPhone. Flash finally seems to be an option, so I thought about using Flex for client side development. However, since flash apps are not natively supported by the IPhone, but only through a wrapper, I was wondering if these apps can persist any data. Data entered by the user should eventually be transmitted to the web service, but until then I want it to persist even if the Iphone should run out of power. Is this possible? Or does the Iphone flash wrapper make it impossible to access the hard disk?
iphone
flex
flash
app-store
null
null
open
Can RIA flash apps on the IPhone store persist data until an internet connection is available? === I'm interested in building a thick client application for my existing web services that will run on the IPhone. Flash finally seems to be an option, so I thought about using Flex for client side development. However, since flash apps are not natively supported by the IPhone, but only through a wrapper, I was wondering if these apps can persist any data. Data entered by the user should eventually be transmitted to the web service, but until then I want it to persist even if the Iphone should run out of power. Is this possible? Or does the Iphone flash wrapper make it impossible to access the hard disk?
0
7,177,227
08/24/2011 14:32:03
554,978
12/27/2010 13:08:13
149
0
Run exe after installation with user rights
I am using Visual Studio 2010 on wp7 and developing a windows forms application in c# with a setup project ( msi ) that comes with visual studio. I have added a custom action : protected override void OnCommitted(IDictionary savedState) { base.OnCommitted(savedState); Process.Start(@"Path"); } But when my application starts, it starts with the user "NTSYSTEM". I want it to start with the logged in windows user account instead. How can i manage that? Thank you.
c#
.net
setup-project
credentials
null
08/25/2011 12:52:23
off topic
Run exe after installation with user rights === I am using Visual Studio 2010 on wp7 and developing a windows forms application in c# with a setup project ( msi ) that comes with visual studio. I have added a custom action : protected override void OnCommitted(IDictionary savedState) { base.OnCommitted(savedState); Process.Start(@"Path"); } But when my application starts, it starts with the user "NTSYSTEM". I want it to start with the logged in windows user account instead. How can i manage that? Thank you.
2
4,478,933
12/18/2010 16:33:39
296,231
03/18/2010 05:20:08
643
55
View files as binary in windows
is there a tool to view files as **binary** in windows? actually i need the interpretation like 0010101010 not Hex Values !
windows
null
null
null
null
null
open
View files as binary in windows === is there a tool to view files as **binary** in windows? actually i need the interpretation like 0010101010 not Hex Values !
0
8,343,281
12/01/2011 14:53:33
1,023,177
11/01/2011 06:19:16
67
0
How to calculate time of travel between 2 cities?
I have following task: to calculate time of travel between 2 cities using any api or services. But I haven't made it before, and I have 2 ideas: calculate time using speed limit on roads or trafic flow. Are there means to help me with my task? May be Google Maps are able to help me? Thank you, anyway.
java
android
null
null
null
12/01/2011 19:32:17
not a real question
How to calculate time of travel between 2 cities? === I have following task: to calculate time of travel between 2 cities using any api or services. But I haven't made it before, and I have 2 ideas: calculate time using speed limit on roads or trafic flow. Are there means to help me with my task? May be Google Maps are able to help me? Thank you, anyway.
1
2,395,753
03/07/2010 09:25:51
122,062
06/12/2009 14:57:58
13
2
What is C# 'internal' in VB.net?
What is C# 'internal' in VB.net? Simple question, hard to find!
keyword
equivalence
null
null
null
null
open
What is C# 'internal' in VB.net? === What is C# 'internal' in VB.net? Simple question, hard to find!
0
4,487,741
12/20/2010 07:46:32
543,309
12/15/2010 11:52:13
1
0
how to use COM class in php with upuntu OS?
I can't use COM class in php. Its display errors. Please any one guide me how enable and use COM class in Ubuntu 9.04 - the Jaunty Jackalope - released in April 2009. Thanks in advance. Warm Regards, Pandikumar
php
null
null
null
null
07/31/2012 04:06:40
not a real question
how to use COM class in php with upuntu OS? === I can't use COM class in php. Its display errors. Please any one guide me how enable and use COM class in Ubuntu 9.04 - the Jaunty Jackalope - released in April 2009. Thanks in advance. Warm Regards, Pandikumar
1
2,611,325
04/09/2010 22:19:27
101,823
05/05/2009 20:23:19
1,034
12
Pylons custom authorizer with Authkit?
how do i setup authkit for more authorizer? i want to give certain users admin rights, but only for their own page. thanks
python
pylons
authkit
authentication
null
null
open
Pylons custom authorizer with Authkit? === how do i setup authkit for more authorizer? i want to give certain users admin rights, but only for their own page. thanks
0
9,671,663
03/12/2012 17:16:33
1,264,694
03/12/2012 17:10:55
1
0
Frost Bite 2 example wanted
I want to make my own Battlefield game, but I can not find any full sourcecodes on Battlefield 3. Can anyone tell me where to find it. I have been looking all over the web to find it.
java
null
null
null
null
03/12/2012 17:21:39
not a real question
Frost Bite 2 example wanted === I want to make my own Battlefield game, but I can not find any full sourcecodes on Battlefield 3. Can anyone tell me where to find it. I have been looking all over the web to find it.
1
8,219,810
11/21/2011 23:05:07
888,790
08/10/2011 21:26:05
1
0
Sites to research processes and Threads in the Linux 2.6 Kernel
Hey I have been given an essay to write about Processes and threads in the 2.6 Linux Kernel but we are unable to talk about the general concepts of processes and thread management. I am kind of stuck for material as I have only wrote about the history of Linux, what the kernel is and what it does, can anyone direct me to good sites or topics I should look into I am having a hard time finding something worthwhile
linux
multithreading
kernel
processes
null
11/22/2011 11:39:33
not constructive
Sites to research processes and Threads in the Linux 2.6 Kernel === Hey I have been given an essay to write about Processes and threads in the 2.6 Linux Kernel but we are unable to talk about the general concepts of processes and thread management. I am kind of stuck for material as I have only wrote about the history of Linux, what the kernel is and what it does, can anyone direct me to good sites or topics I should look into I am having a hard time finding something worthwhile
4
6,459,513
06/23/2011 19:21:27
771,995
05/26/2011 20:19:01
9
1
Why implicitly check for emptiness in Python?
The Zen of Pythong says that explicit is better than implicit. Yet the Pythonic way of checking a collection c for emptiness is: if not c: # ... and checking if a collection is not empty is done like: if c: # ... ditto for anything that can have "zeroness" or "emptiness" (tuples, integers, strings, None, etc) What is the purpose of this? Will my code be buggier if I don't do this? Or does it enable more use cases (i.e: some kind of polymorphism) since people can override these boolean coercions?
python
idioms
null
null
null
06/23/2011 23:32:48
not constructive
Why implicitly check for emptiness in Python? === The Zen of Pythong says that explicit is better than implicit. Yet the Pythonic way of checking a collection c for emptiness is: if not c: # ... and checking if a collection is not empty is done like: if c: # ... ditto for anything that can have "zeroness" or "emptiness" (tuples, integers, strings, None, etc) What is the purpose of this? Will my code be buggier if I don't do this? Or does it enable more use cases (i.e: some kind of polymorphism) since people can override these boolean coercions?
4
3,040,841
06/14/2010 20:53:34
88,427
04/08/2009 05:04:54
1,549
11
Is it wrong for a context (right click) menu be the only way a user can perform a certain task?
I'd like to know if it ever makes sense to provide some functionality in a piece of software that is only available to the user through a context (right click) menu. It seems that in most software I've worked with the right click menu is always used as a quick way to get to features that are otherwise available from other buttons or menus. Below is a screen shot of the UI I'm developing. The tree view on the right shows the user's library of catalogs. Users can create new catalogs, or add and remove existing catalogs to and from their library. Catalogs in their library can then be opened or closed, or set to read-only. ![Screen Shot][1] The screen shot shows the context menu I've created for the browser. Some commands can be executed independently from any specific catalog (New, Add). Yet the other commands must be applied to a specifically selected catalog (Close, Open, Remove, ReadOnly, Refresh, Clean UP, Rename). Currently the "Catalog" menu at the top of the window looks identical to this context menu. Yet I think this may be confusing to the users as the tree view which shows the currently selected catalog may not always be visible. The user may have switched to the Search or Filters tab, or the left pane may be hidden entirely. However, I'm hesitant to change the UI so that the commands that depends on a specifically selected catalog are only available through the context menu. [1]: http://imgur.com/GUb7O.jpg
user-interface
null
null
null
null
null
open
Is it wrong for a context (right click) menu be the only way a user can perform a certain task? === I'd like to know if it ever makes sense to provide some functionality in a piece of software that is only available to the user through a context (right click) menu. It seems that in most software I've worked with the right click menu is always used as a quick way to get to features that are otherwise available from other buttons or menus. Below is a screen shot of the UI I'm developing. The tree view on the right shows the user's library of catalogs. Users can create new catalogs, or add and remove existing catalogs to and from their library. Catalogs in their library can then be opened or closed, or set to read-only. ![Screen Shot][1] The screen shot shows the context menu I've created for the browser. Some commands can be executed independently from any specific catalog (New, Add). Yet the other commands must be applied to a specifically selected catalog (Close, Open, Remove, ReadOnly, Refresh, Clean UP, Rename). Currently the "Catalog" menu at the top of the window looks identical to this context menu. Yet I think this may be confusing to the users as the tree view which shows the currently selected catalog may not always be visible. The user may have switched to the Search or Filters tab, or the left pane may be hidden entirely. However, I'm hesitant to change the UI so that the commands that depends on a specifically selected catalog are only available through the context menu. [1]: http://imgur.com/GUb7O.jpg
0
6,152,173
05/27/2011 12:21:40
773,056
05/27/2011 12:21:40
1
0
passing array having multple record and multiple fields from codeinator controller to view page as an array
Retreiving multiple records with multiple feilds from mysql and passing it from codeinator controller page to view page as an array.
codeigniter
null
null
null
null
06/01/2011 23:21:54
not a real question
passing array having multple record and multiple fields from codeinator controller to view page as an array === Retreiving multiple records with multiple feilds from mysql and passing it from codeinator controller page to view page as an array.
1
6,650,633
07/11/2011 13:15:25
838,949
07/11/2011 13:15:25
1
0
trouble in contact name in listview
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); lv=(ListView)findViewById(android.R.id.list); ContentResolver cr=getContentResolver(); Cursor cur=cr.query(ContactsContract.Contacts.CONTENT_URI, null,null,null,null); if(cur.getCount()>0) { int x=0; String name[] = null; while (cur.moveToNext()) { String id = cur.getString( cur.getColumnIndex(ContactsContract.Contacts._ID)); name[x]= cur.getString( cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME)); x++; //Toast.makeText(this,id+"--"+name,Toast.LENGTH_LONG).show(); } ArrayAdapter arr = new ArrayAdapter(this, android.R.layout.simple_list_item_1,name); lv.setAdapter(arr); } } i use this logic for display contact name in list view but it will not show any contact name and show unexpectly error.please help me.if i use toast it will show perfectly. Regards Arindom Ghosh
android
null
null
null
null
null
open
trouble in contact name in listview === public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); lv=(ListView)findViewById(android.R.id.list); ContentResolver cr=getContentResolver(); Cursor cur=cr.query(ContactsContract.Contacts.CONTENT_URI, null,null,null,null); if(cur.getCount()>0) { int x=0; String name[] = null; while (cur.moveToNext()) { String id = cur.getString( cur.getColumnIndex(ContactsContract.Contacts._ID)); name[x]= cur.getString( cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME)); x++; //Toast.makeText(this,id+"--"+name,Toast.LENGTH_LONG).show(); } ArrayAdapter arr = new ArrayAdapter(this, android.R.layout.simple_list_item_1,name); lv.setAdapter(arr); } } i use this logic for display contact name in list view but it will not show any contact name and show unexpectly error.please help me.if i use toast it will show perfectly. Regards Arindom Ghosh
0
8,789,822
01/09/2012 14:17:59
582,211
01/19/2011 22:36:24
578
7
Visible listview items in winforms lisview?
How can I get the visible from a winforms listview? There should be a straightforward way, I am afraid of this kind of querying items by control.clientrectangle and other hacks like that (like here: http://stackoverflow.com/questions/372011/how-do-i-get-the-start-index-and-number-of-visible-items-in-a-listview). Thanks!
c#
.net
winforms
listview
null
null
open
Visible listview items in winforms lisview? === How can I get the visible from a winforms listview? There should be a straightforward way, I am afraid of this kind of querying items by control.clientrectangle and other hacks like that (like here: http://stackoverflow.com/questions/372011/how-do-i-get-the-start-index-and-number-of-visible-items-in-a-listview). Thanks!
0
5,174,204
03/02/2011 22:14:07
69,634
02/22/2009 18:32:27
8,592
356
Customize the Airplay button's appearance somehow, anyhow
I use a standard gradient overlay (done in photoshop) to make buttons look nicer in my app. I added an Airplay button, but the aesthetics are not matching. ![enter image description here][1] I really want to put a gradient layer over it so it matches, but anything I can find only shows how to do this with a png, not an existing UIView. If not the gradient layer, I just need someway, *any* way, to change the appearance of the Apple airplay button while keeping its functionality intact. The setup code is simple: MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame:frame]; [volumeView setShowsVolumeSlider:NO]; [bottomPanel addSubview:volumeView]; How can I get the appearance of this to match my controls? [1]: http://i.stack.imgur.com/kR0jv.png
iphone
ios
overlay
calayer
airplay
null
open
Customize the Airplay button's appearance somehow, anyhow === I use a standard gradient overlay (done in photoshop) to make buttons look nicer in my app. I added an Airplay button, but the aesthetics are not matching. ![enter image description here][1] I really want to put a gradient layer over it so it matches, but anything I can find only shows how to do this with a png, not an existing UIView. If not the gradient layer, I just need someway, *any* way, to change the appearance of the Apple airplay button while keeping its functionality intact. The setup code is simple: MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame:frame]; [volumeView setShowsVolumeSlider:NO]; [bottomPanel addSubview:volumeView]; How can I get the appearance of this to match my controls? [1]: http://i.stack.imgur.com/kR0jv.png
0
7,559,454
09/26/2011 18:22:20
48,151
12/21/2008 17:31:12
12
0
Finding Unhandled Exceptions - .NET
I have a fairly large .NET solution that has poor exception handling. The original authors meant well, catching specific types of exceptions rather than the base exception class, however, this has resulted in more than I can count places where exceptions of a type are thrown but not caught anywhere and makes the software unreliable. How can I perform a code analysis to identify where in the solution an exception type can be thrown but is not being caught?
c#
visual-studio-2010
exception
.net-4.0
analysis
null
open
Finding Unhandled Exceptions - .NET === I have a fairly large .NET solution that has poor exception handling. The original authors meant well, catching specific types of exceptions rather than the base exception class, however, this has resulted in more than I can count places where exceptions of a type are thrown but not caught anywhere and makes the software unreliable. How can I perform a code analysis to identify where in the solution an exception type can be thrown but is not being caught?
0
6,969,858
08/07/2011 00:14:32
695,797
04/06/2011 23:31:00
48
2
How to open a document located on a WebDAV server from a Java applet on MAC OS X?
I need to open a document for editing with associated application on MAC OS X from Java applet. The document is located on a WebDAV server. What command should I use to open a document? Is it necessary to mount a volume first?
osx
applet
webdav
mount
opendocument
null
open
How to open a document located on a WebDAV server from a Java applet on MAC OS X? === I need to open a document for editing with associated application on MAC OS X from Java applet. The document is located on a WebDAV server. What command should I use to open a document? Is it necessary to mount a volume first?
0
9,380,669
02/21/2012 15:56:40
139,698
07/16/2009 18:19:56
1,814
5
best way to check if 3 textboxes are empty
I have 3 textboxes and I want to check if put together they all add up to greater than blank. What's the best way to accomplish that? <asp:TextBox ID="tbDate" runat="server"></asp:TextBox> <asp:TextBox ID="tbHour" runat="server"></asp:TextBox> <asp:TextBox ID="tbMinutes" runat="server"></asp:TextBox> <asp:CustomValidator ID="cvDateControlValidator" runat="server" ErrorMessage="Invalid Date" ValidateEmptyText="True" ClientValidationFunction="validateDateOnClient" ControlToValidate="tbDate" Display="Dynamic"></asp:CustomValidator> <script type="text/javascript"> function validateDateOnClient(sender, args) { if (args.Value.length > 0) args.IsValid = false; return args.IsValid; } </script> I want to make sure tbDate, tbHour, tbMinutes together is greater than blank before I perform the client-side validation.
c#
javascript
null
null
null
null
open
best way to check if 3 textboxes are empty === I have 3 textboxes and I want to check if put together they all add up to greater than blank. What's the best way to accomplish that? <asp:TextBox ID="tbDate" runat="server"></asp:TextBox> <asp:TextBox ID="tbHour" runat="server"></asp:TextBox> <asp:TextBox ID="tbMinutes" runat="server"></asp:TextBox> <asp:CustomValidator ID="cvDateControlValidator" runat="server" ErrorMessage="Invalid Date" ValidateEmptyText="True" ClientValidationFunction="validateDateOnClient" ControlToValidate="tbDate" Display="Dynamic"></asp:CustomValidator> <script type="text/javascript"> function validateDateOnClient(sender, args) { if (args.Value.length > 0) args.IsValid = false; return args.IsValid; } </script> I want to make sure tbDate, tbHour, tbMinutes together is greater than blank before I perform the client-side validation.
0
5,703,812
04/18/2011 13:44:43
581,243
01/19/2011 10:17:05
18
0
arithmetic with double vs bit operations
There is some obvious stuff I feel I should understand here, but I don:t: void main() { long first = 0xffffffc1; long second = 0x92009019; //correct __int64 correct = (((__int64)first << 32) | 0x00000000ffffffff) & (0xffffffff00000000 | second); //output is 0xffffffc192009019; //incorrect __int64 wrong = (double)(((__int64)first << 32) + second); //output is 0xffffffc092009019; } why does the add operation affect the upper 4 bytes, and how? (compiler is VC++ 2003)
c++
math
bit-manipulation
bitwise
null
null
open
arithmetic with double vs bit operations === There is some obvious stuff I feel I should understand here, but I don:t: void main() { long first = 0xffffffc1; long second = 0x92009019; //correct __int64 correct = (((__int64)first << 32) | 0x00000000ffffffff) & (0xffffffff00000000 | second); //output is 0xffffffc192009019; //incorrect __int64 wrong = (double)(((__int64)first << 32) + second); //output is 0xffffffc092009019; } why does the add operation affect the upper 4 bytes, and how? (compiler is VC++ 2003)
0
10,540,336
05/10/2012 18:43:33
425,481
12/28/2009 16:31:50
612
15
dojo.connect not working in IE but sometimes in chrome&firefox
I finally got some parts working here: [http://jsfiddle.net/trXBr/5/][1] but when I put the code back into my project and tried to browse using internet explorer; the button onclick events do not work. Interestingly the one button onclick function to show the dialog works in firefox and chrome. I was excited to have this working in the editor but now if this does not work with all browsers, then this is just really frustrating. I am using version 1.5.1 dojo.connect(loadBtn,'onClick',function(){ userDialog.show(); }); dojo.connect(butt,'onClick',function(evt){ showTab(); }); Any help/ideas appreciated. [1]: http://jsfiddle.net/trXBr/5/
internet-explorer-8
dojo
onclick
dijit
null
null
open
dojo.connect not working in IE but sometimes in chrome&firefox === I finally got some parts working here: [http://jsfiddle.net/trXBr/5/][1] but when I put the code back into my project and tried to browse using internet explorer; the button onclick events do not work. Interestingly the one button onclick function to show the dialog works in firefox and chrome. I was excited to have this working in the editor but now if this does not work with all browsers, then this is just really frustrating. I am using version 1.5.1 dojo.connect(loadBtn,'onClick',function(){ userDialog.show(); }); dojo.connect(butt,'onClick',function(evt){ showTab(); }); Any help/ideas appreciated. [1]: http://jsfiddle.net/trXBr/5/
0
5,913,516
05/06/2011 15:22:52
406,762
07/30/2010 13:35:07
27
0
css+html5 The best way to lay out this info
I want to lay out the following info horizontally in a container 460px wide: 32 Likes (Restricted to 50px wide) (whitespace) From Great Britain (whitespace) Featured (Floated to the right) What would you recommend being the best tags to use to lay these out?
html
css
html5
null
null
null
open
css+html5 The best way to lay out this info === I want to lay out the following info horizontally in a container 460px wide: 32 Likes (Restricted to 50px wide) (whitespace) From Great Britain (whitespace) Featured (Floated to the right) What would you recommend being the best tags to use to lay these out?
0
1,371,042
09/03/2009 01:41:30
78,351
03/15/2009 19:37:58
407
16
What is the start up/initialization procedure when an iPhone app is started ?
I would elaborate it as follows : **In what order are the different objects and nib files instantiated/initialized ?** My understanding is as follows: 1) UIMainApplication function loads the main .nib file specified in info.plist. 2) This .nib file instantiates the Delegate object. 3) When the appDidFinishLoading method runs, it generally initializes the UIViewController object. In general, a .nib file instantiates the objects connected to it and the objects instantiate/load the .nib file they have a IBOutlet in. If this is too complex to explain here, please point me to an appropriate article. Thanks.
iphone
initialization
objective-c
null
null
null
open
What is the start up/initialization procedure when an iPhone app is started ? === I would elaborate it as follows : **In what order are the different objects and nib files instantiated/initialized ?** My understanding is as follows: 1) UIMainApplication function loads the main .nib file specified in info.plist. 2) This .nib file instantiates the Delegate object. 3) When the appDidFinishLoading method runs, it generally initializes the UIViewController object. In general, a .nib file instantiates the objects connected to it and the objects instantiate/load the .nib file they have a IBOutlet in. If this is too complex to explain here, please point me to an appropriate article. Thanks.
0
10,353,815
04/27/2012 15:51:12
431,791
08/26/2010 11:38:29
3
0
Cover the Backside of the UIButton view
when i flip UIButton using key path @"transform.rotation.y", I can still see the front side of the UIbutton. Is there anyway i can hide buttons front view contents and show a plain backside? Thank you
iphone
ios
ipad
null
null
null
open
Cover the Backside of the UIButton view === when i flip UIButton using key path @"transform.rotation.y", I can still see the front side of the UIbutton. Is there anyway i can hide buttons front view contents and show a plain backside? Thank you
0
879,675
05/18/2009 20:35:01
33,690
11/03/2008 16:17:19
943
14
Show/Hide an accordion panel in Jquery when clicking edit in a gridview?
I have a Jquery Accordion and I have a asp.net GridView below that. When I click on the edit button in a gridview row, it goes and grabs some data. Depending on which row is clicked, I want to show/hide an accordion panel. Can I accomplish this in the GridView_RowEditing event, if so, how?
jquery
jquery-ui
asp.net
c#
null
null
open
Show/Hide an accordion panel in Jquery when clicking edit in a gridview? === I have a Jquery Accordion and I have a asp.net GridView below that. When I click on the edit button in a gridview row, it goes and grabs some data. Depending on which row is clicked, I want to show/hide an accordion panel. Can I accomplish this in the GridView_RowEditing event, if so, how?
0
8,392,524
12/05/2011 22:03:49
255,076
01/20/2010 16:52:30
157
3
DOCUMENT_ROOT is not complete, missing domain folder
I have searched many threads so far but cant seem to find a solution. Inside one of my php scripts I am trying to get a server document root but the value I get is not complete, its simply missing the domain folder. I believe it is due to sharing hosting or smth else. Here is the current way I am using: $root = realpath($_SERVER["DOCUMENT_ROOT"]); and the path I get is like: /home/content/01/0151247/html although I know it should be like: /home/content/01/0151247/html/mydomain I know as I compared it with SCRIPT_NAME and I see the mydomain there in the path. Hope someone could direct me. Thank you and sorry for probably asking another thousand time same question over community, I really tried things around from here, nothing helps me so far.
php
document-root
null
null
null
null
open
DOCUMENT_ROOT is not complete, missing domain folder === I have searched many threads so far but cant seem to find a solution. Inside one of my php scripts I am trying to get a server document root but the value I get is not complete, its simply missing the domain folder. I believe it is due to sharing hosting or smth else. Here is the current way I am using: $root = realpath($_SERVER["DOCUMENT_ROOT"]); and the path I get is like: /home/content/01/0151247/html although I know it should be like: /home/content/01/0151247/html/mydomain I know as I compared it with SCRIPT_NAME and I see the mydomain there in the path. Hope someone could direct me. Thank you and sorry for probably asking another thousand time same question over community, I really tried things around from here, nothing helps me so far.
0