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
2,968,652
06/03/2010 18:18:46
313,276
04/10/2010 01:42:24
1
0
roll() and add()
what is the diference between roll() and add() in java ?
java
null
null
null
null
06/03/2010 18:27:14
not a real question
roll() and add() === what is the diference between roll() and add() in java ?
1
8,472,604
12/12/2011 10:03:02
656,606
03/12/2011 13:24:45
193
28
I changed "hdd1\Content" folder with JTAG console, how to restore and update this folder
I changed "hdd1\Content" folder with JTAG console, how to restore and update this folder, because xbox hangs up. Thank you!
xbox360
null
null
null
null
null
open
I changed "hdd1\Content" folder with JTAG console, how to restore and update this folder === I changed "hdd1\Content" folder with JTAG console, how to restore and update this folder, because xbox hangs up. Thank you!
0
10,887,345
06/04/2012 19:46:40
1,279,844
03/05/2011 05:09:52
146
11
Getting Facebook Like button (generated by JS) to appear
I'm using PrettyPhoto lightbox for an image gallery. When the image pops up, Twitter and Facebook buttons appear under it. That's built into the PrettyPhoto plugin, and it works fine. The problem is, the Facebook button is the iframe kind (which doesn't allow the user to enter a comment). I want to replace it with the HTML5 button (which opens a comment box when you click it, instead of just liking). I want to replace this (standard FB code for iframe button): `<div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href='+pp_real_links[set_position]+'&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:23px;" allowTransparency="true"></iframe></div>` ...with this (standard fb code for HTML5 like button): `<div class="fb-like" data-href="instagram.com/the-pic" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false">test text</div>` When I do the replacement, it doesn't show up in the lightbox. It works anywhere else on the site though. And yes, I replaced the prettyPhoto css code for `.facebook` with `.fb-like`. I also put text in the div to verify it's showing up in the right place. I think the root of the problem is that the social link code is defined in the JS; in the PrettyPhoto settings, there's an attribute called 'markup' which stores the html for the lightbox and share buttons. So it's probably not connecting with the FB JS code. What's the solution?
javascript
facebook
prettyphoto
null
null
null
open
Getting Facebook Like button (generated by JS) to appear === I'm using PrettyPhoto lightbox for an image gallery. When the image pops up, Twitter and Facebook buttons appear under it. That's built into the PrettyPhoto plugin, and it works fine. The problem is, the Facebook button is the iframe kind (which doesn't allow the user to enter a comment). I want to replace it with the HTML5 button (which opens a comment box when you click it, instead of just liking). I want to replace this (standard FB code for iframe button): `<div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href='+pp_real_links[set_position]+'&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:23px;" allowTransparency="true"></iframe></div>` ...with this (standard fb code for HTML5 like button): `<div class="fb-like" data-href="instagram.com/the-pic" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false">test text</div>` When I do the replacement, it doesn't show up in the lightbox. It works anywhere else on the site though. And yes, I replaced the prettyPhoto css code for `.facebook` with `.fb-like`. I also put text in the div to verify it's showing up in the right place. I think the root of the problem is that the social link code is defined in the JS; in the PrettyPhoto settings, there's an attribute called 'markup' which stores the html for the lightbox and share buttons. So it's probably not connecting with the FB JS code. What's the solution?
0
3,301,835
07/21/2010 16:59:40
1,063
08/12/2008 05:40:42
1,271
48
Why use an IDE?
This may be too opinionated, but what I'm trying to understand why some companies mandate the use of an IDE. In college all I used was vim, although on occasion I used netbeans for use with Java. Netbeans was nice because it did code completion and had some nice templates for configuration of some the stranger services I tried. Now that my friends are working at big companies, they are telling me that they are required to use eclipse or visual studio, but no one can seem to give a good reason why. Can someone explain to me why companies force their developers into restricted development environments?
ide
null
null
null
null
07/21/2010 17:24:24
not constructive
Why use an IDE? === This may be too opinionated, but what I'm trying to understand why some companies mandate the use of an IDE. In college all I used was vim, although on occasion I used netbeans for use with Java. Netbeans was nice because it did code completion and had some nice templates for configuration of some the stranger services I tried. Now that my friends are working at big companies, they are telling me that they are required to use eclipse or visual studio, but no one can seem to give a good reason why. Can someone explain to me why companies force their developers into restricted development environments?
4
8,302,290
11/28/2011 21:05:21
761,330
05/19/2011 15:12:42
541
7
Why char* causes undefined behaviour while char[] not in the example
Attempting to modify a string literal causes undefined behavior: char * p = "wikipedia"; p[0] = 'W'; // undefined behaviour One way to prevent this is defining it as an array instead of a pointer: char p[] = "wikipedia"; p[0] = 'W'; // ok
c
string
char
undefined-behavior
null
11/29/2011 21:29:27
not a real question
Why char* causes undefined behaviour while char[] not in the example === Attempting to modify a string literal causes undefined behavior: char * p = "wikipedia"; p[0] = 'W'; // undefined behaviour One way to prevent this is defining it as an array instead of a pointer: char p[] = "wikipedia"; p[0] = 'W'; // ok
1
9,828,091
03/22/2012 18:13:09
1,286,641
03/22/2012 18:02:38
1
0
How to cancel BeforeEdit event in gxt EditorGrid based on data stored in model for the selected row
I have an EditorGrid. I would like to cancel the edit (using the BeforeEdit event) if the user does not have edit rights to that specific column. This data (a "canEdit" value), is in the data store for the row, but has not been added a column to the grid. I think the best way to go about this is by cancelling the edit in the BeforeEdit event. I am having trouble, however, getting the data from the selected row in the BeforeEdit event. If someone could point me in the right direction with a small code snippet for how to grab data values from the selected row in a BeforeEdit event, I would be most appreciative! Or, if there is a better way to proceed, would love to hear from you. Thank you! Jennifer
gxt
ext-gwt
null
null
null
null
open
How to cancel BeforeEdit event in gxt EditorGrid based on data stored in model for the selected row === I have an EditorGrid. I would like to cancel the edit (using the BeforeEdit event) if the user does not have edit rights to that specific column. This data (a "canEdit" value), is in the data store for the row, but has not been added a column to the grid. I think the best way to go about this is by cancelling the edit in the BeforeEdit event. I am having trouble, however, getting the data from the selected row in the BeforeEdit event. If someone could point me in the right direction with a small code snippet for how to grab data values from the selected row in a BeforeEdit event, I would be most appreciative! Or, if there is a better way to proceed, would love to hear from you. Thank you! Jennifer
0
11,536,605
07/18/2012 07:47:46
1,506,029
07/06/2012 07:17:39
1
0
i can't add yahoo contact friends in nimbuzz
I try so many time to add yahoo contact in Nimbuzz But when i try to login is say The service is not available so if you have a any idea plsss help me out
yahoo-messenger
nimbuzz
null
null
null
07/18/2012 14:08:26
not a real question
i can't add yahoo contact friends in nimbuzz === I try so many time to add yahoo contact in Nimbuzz But when i try to login is say The service is not available so if you have a any idea plsss help me out
1
9,849,833
03/24/2012 07:05:57
428,073
08/23/2010 05:58:43
547
8
How to display alert message after inserting data into database?
I have create web app in MVS 3 but failed to display alert message after data insert into database Controller code: [HttpPost] public ActionResult QuestionBank(QuestionBank questionbank) { if (ModelState.IsValid) { dbEntities.QuestionBanks.AddObject(questionbank); dbEntities.SaveChanges(); //questionbank.SendEnquiryEmail(questionbank); ViewData["Message"] = "Data inserted"; return RedirectToAction("QuestionBank"); } return View(questionbank); } Used ViewData["Message"] = "Data inserted"; which is not displayed message :( whats going wrong or i placed it somewhere else?
asp.net-mvc
asp.net-mvc-3
mvc
null
null
null
open
How to display alert message after inserting data into database? === I have create web app in MVS 3 but failed to display alert message after data insert into database Controller code: [HttpPost] public ActionResult QuestionBank(QuestionBank questionbank) { if (ModelState.IsValid) { dbEntities.QuestionBanks.AddObject(questionbank); dbEntities.SaveChanges(); //questionbank.SendEnquiryEmail(questionbank); ViewData["Message"] = "Data inserted"; return RedirectToAction("QuestionBank"); } return View(questionbank); } Used ViewData["Message"] = "Data inserted"; which is not displayed message :( whats going wrong or i placed it somewhere else?
0
8,860,119
01/14/2012 04:18:11
1,148,879
01/14/2012 03:38:36
1
0
keep running on 2 conditionally incremented list in JAVA
I'm really new to JAVA (1 week into the college semester) so forgive me if this is a silly mistake or the code is sloppy, but I'm having a really hard time with this. What this is supposed to do is add a student to the enrolled list if there's room, and if there isn't room, add them to the waitlist. This is what I've come up with so far. public class Course { private String courseName; private int maxStudents; private int studentsOnWaitlist; private int studentsEnrolled; public Course(String inCourseName) { courseName = inCourseName; maxStudents = 30; studentsOnWaitlist = 0; studentsEnrolled = 0; } public String getCourseName(){ return courseName; } public int getMaxStudents(){ return maxStudents; } public int getStudentsOnWaitlist() { return studentsOnWaitlist; } public int getStudentsEnrolled() { return studentsEnrolled; } public void addStudent(int newStudent){ if (studentsEnrolled == maxStudents){ studentsOnWaitlist += newStudent; } else { studentsEnrolled += newStudent; } } }
java
null
null
null
null
01/14/2012 05:04:11
not a real question
keep running on 2 conditionally incremented list in JAVA === I'm really new to JAVA (1 week into the college semester) so forgive me if this is a silly mistake or the code is sloppy, but I'm having a really hard time with this. What this is supposed to do is add a student to the enrolled list if there's room, and if there isn't room, add them to the waitlist. This is what I've come up with so far. public class Course { private String courseName; private int maxStudents; private int studentsOnWaitlist; private int studentsEnrolled; public Course(String inCourseName) { courseName = inCourseName; maxStudents = 30; studentsOnWaitlist = 0; studentsEnrolled = 0; } public String getCourseName(){ return courseName; } public int getMaxStudents(){ return maxStudents; } public int getStudentsOnWaitlist() { return studentsOnWaitlist; } public int getStudentsEnrolled() { return studentsEnrolled; } public void addStudent(int newStudent){ if (studentsEnrolled == maxStudents){ studentsOnWaitlist += newStudent; } else { studentsEnrolled += newStudent; } } }
1
6,425,810
06/21/2011 13:15:50
769,977
05/25/2011 16:43:32
26
0
Help me with PHP regex
I want to remove the _8 from the $thumbnail $thumbnail = "http://d2dsfsd.humbnails/20415/33-d148-45b1-9098-11e5c/thumbnail_8.jpg";
php
regex
preg-replace
preg-match
null
06/22/2011 03:05:06
too localized
Help me with PHP regex === I want to remove the _8 from the $thumbnail $thumbnail = "http://d2dsfsd.humbnails/20415/33-d148-45b1-9098-11e5c/thumbnail_8.jpg";
3
3,216,902
07/09/2010 22:17:52
355,325
06/01/2010 11:11:15
47
1
Portable JDK, Tomcat, and Eclipse (Windows)
Does anybody know how to make a usb thumb drive with a JDK, Tomcat, and Eclipse (J2EE) (all for a Windows platform, preferably)? I saw [this question][1], but the only answer was speculative. I know that the eclipse part would be easy -- just put it on the thumb drive. Tomcat requires a JDK as far as I know. Would there be a way to setup tomcat so it always references a jdk on the thumb drive (rather than using the system JAVA_HOME variable)? How about Eclipse? I'm thinking something like cygwin would clearly be overkill... [1]: http://stackoverflow.com/questions/2843069/how-to-make-tomcat-portable
java
windows
eclipse
tomcat
jdk
null
open
Portable JDK, Tomcat, and Eclipse (Windows) === Does anybody know how to make a usb thumb drive with a JDK, Tomcat, and Eclipse (J2EE) (all for a Windows platform, preferably)? I saw [this question][1], but the only answer was speculative. I know that the eclipse part would be easy -- just put it on the thumb drive. Tomcat requires a JDK as far as I know. Would there be a way to setup tomcat so it always references a jdk on the thumb drive (rather than using the system JAVA_HOME variable)? How about Eclipse? I'm thinking something like cygwin would clearly be overkill... [1]: http://stackoverflow.com/questions/2843069/how-to-make-tomcat-portable
0
8,838,289
01/12/2012 16:11:42
1,145,895
01/12/2012 16:01:11
1
0
which server for my file? Android
I don´t know which is the best server like mediafire or megaupload I can use to locate a database which I need to download to use in my app. I know how to download images with the URL but I try this with any other files and I can´t download it. Thanks for all and sorry about my english ;) César.
android
server
null
null
null
01/12/2012 16:42:15
off topic
which server for my file? Android === I don´t know which is the best server like mediafire or megaupload I can use to locate a database which I need to download to use in my app. I know how to download images with the URL but I try this with any other files and I can´t download it. Thanks for all and sorry about my english ;) César.
2
5,275,835
03/11/2011 16:52:36
596,256
01/31/2011 02:17:51
24
0
any idea for clean the data crawled from various forums ?
I need to do some search engine optimization. one of the ideas is to do some data cleaning about the crawled data from forums. Lots of useless information are in the crawled pages. How could I get rid of them and just get the useful posts ? I'm thinking to use some regex to get the content between <body> </ body> and get rid of all the HTML tags, but it seems not sufficient. What else I could do? It that any free tools help me to do data cleaning?
perl
data-mining
data-cleansing
cleaned-data
null
03/12/2011 00:48:14
not a real question
any idea for clean the data crawled from various forums ? === I need to do some search engine optimization. one of the ideas is to do some data cleaning about the crawled data from forums. Lots of useless information are in the crawled pages. How could I get rid of them and just get the useful posts ? I'm thinking to use some regex to get the content between <body> </ body> and get rid of all the HTML tags, but it seems not sufficient. What else I could do? It that any free tools help me to do data cleaning?
1
3,442,879
08/09/2010 18:16:20
343,845
05/18/2010 09:21:37
942
28
Changing code of an LGPL project and licenses on installers
I have a project I am working on, which links to: - Qt - Qt Solutions' QtSingleApplication - Botan I have a license dialog in my application, which shows the licenses for the application itself and everything it links to. I have a couple questions regarding the distribution process. - Do I have to present the licenses in the installation program before the program can be installed and/or as standalone files? Or is it OK to simply include them in a dialog in the main executable? - I am not using the version of Botan from the official website, but rather the version from the Qt Creator 2.0 sources, which includes a couple of .pro files making it much easier to incorporate it with Qt projects. Botan itself is licensed under a BSD-style license, but Qt Creator 2.0 is licensed under GPL. *I'd also like to add around two lines of code to the .pro file to better integrate Botan with my build process.* Do I have to release those changes (all it is is changing the output directory in the .pro file, no changes to the C++ code of Botan)? Because Qt Creator is GPL, does this override the Botan license and force me to license my application under GPL? Or will I have to "borrow ideas" from the .pro files found with Qt Creator's Botan and make my own, thus falling under the BSD license?
licensing
gpl
bsd-license
null
null
null
open
Changing code of an LGPL project and licenses on installers === I have a project I am working on, which links to: - Qt - Qt Solutions' QtSingleApplication - Botan I have a license dialog in my application, which shows the licenses for the application itself and everything it links to. I have a couple questions regarding the distribution process. - Do I have to present the licenses in the installation program before the program can be installed and/or as standalone files? Or is it OK to simply include them in a dialog in the main executable? - I am not using the version of Botan from the official website, but rather the version from the Qt Creator 2.0 sources, which includes a couple of .pro files making it much easier to incorporate it with Qt projects. Botan itself is licensed under a BSD-style license, but Qt Creator 2.0 is licensed under GPL. *I'd also like to add around two lines of code to the .pro file to better integrate Botan with my build process.* Do I have to release those changes (all it is is changing the output directory in the .pro file, no changes to the C++ code of Botan)? Because Qt Creator is GPL, does this override the Botan license and force me to license my application under GPL? Or will I have to "borrow ideas" from the .pro files found with Qt Creator's Botan and make my own, thus falling under the BSD license?
0
11,658,426
07/25/2012 20:52:58
1,324,415
04/10/2012 15:19:38
1
0
Tool that transforms various input files to single output format
I'm looking for a solution for a problem that seems quite common to me. But I can't find any directions. The problem I'm having is that I receive multiple input files (xsl, xslx, csv, plain ascii) that I need to transform into one format. So I'm actually looking for a tool that can be configured to parse inputfiles and generate an outputfile in one format (preferably csv). If such a tool doen't exist, then I will probably create one myself using Visual Studio/C#. Can anyone give me any directions to existing tools and/or C# coding examples that do similar things? Thanks in advance! Kind regards, Paul
c#
visual-studio-2010
xslt
null
null
07/27/2012 19:36:52
off topic
Tool that transforms various input files to single output format === I'm looking for a solution for a problem that seems quite common to me. But I can't find any directions. The problem I'm having is that I receive multiple input files (xsl, xslx, csv, plain ascii) that I need to transform into one format. So I'm actually looking for a tool that can be configured to parse inputfiles and generate an outputfile in one format (preferably csv). If such a tool doen't exist, then I will probably create one myself using Visual Studio/C#. Can anyone give me any directions to existing tools and/or C# coding examples that do similar things? Thanks in advance! Kind regards, Paul
2
10,157,159
04/14/2012 20:36:13
1,309,441
04/03/2012 03:14:15
6
0
useing 2 tables mysql
I am working on a web site that has a movie list. What I am looking to do is make it so the user can check of and rate the movies that they have seen. I have 2 different tables one for the users and one for the movies. This is my first attempt to have 2 tables link and as such I am not sure what the starting point on something like this. I want to use the movie ID as the identifier in the user profile. But I cant think of a good way to put that into the user database neatly. Thanks
php
mysql
null
null
null
04/16/2012 02:01:19
not a real question
useing 2 tables mysql === I am working on a web site that has a movie list. What I am looking to do is make it so the user can check of and rate the movies that they have seen. I have 2 different tables one for the users and one for the movies. This is my first attempt to have 2 tables link and as such I am not sure what the starting point on something like this. I want to use the movie ID as the identifier in the user profile. But I cant think of a good way to put that into the user database neatly. Thanks
1
7,598,918
09/29/2011 14:34:10
971,350
09/29/2011 14:25:15
1
0
How can I link the buttons android with external functions?
Good afertoon. I'm like development in Visual Studio with the Mono C # android is an application for Android. I want to know How can I link the buttons android with external functions? I want msgrecieved equals Text1.Text! How can I do this? Thank you for your attention;) The Source Code: //Criado por EcoDuty, Frederico Vaz using System; using Android.App; using Android.Content; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace ChatClient_Android { [Activity(Label = "ChatClient_Android", MainLauncher = true, Icon = "@drawable/icon")] public class MainChat : Activity { public delegate void OnRecievedMessage(string message); public MainChat form; const int WM_VSCROLL = 0x115; const int SB_BOTTOM = 7; string msgrecieved; protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); // Get our button from the layout resource, // and attach an event to it Button enviar = FindViewById<Button>(Resource.Id.btenviar); Button ligar = FindViewById<Button>(Resource.Id.btligar); TextView text1 = FindViewById<TextView>(Resource.Id.text1); EditText text2 = FindViewById<EditText>(Resource.Id.text2); text1.Text = msgrecieved; //Conexão com o servidor ligar.Click += delegate { Connect(); ligar.Enabled = false; conectado(); }; //Botão enviar, envia a mensagem ao servidor enviar.Click += delegate { if (text2.Text != "") { if (text2.Text.ToLower().StartsWith("/")) { text2.Text = ""; } else { SendMessage("MSG :" + text2.Text); text2.Text = ""; } } }; // } //Função Actualizar a Caixa de Entrada de Mensagens private void UpdateTextbox(string text) { msgrecieved += "\r\n"; msgrecieved += text; } //Ao receber mensagem private void Invoke(OnRecievedMessage onRecievedMessage, string message) { throw new NotImplementedException(); } public bool InvokeRequired { get; set; } public void RecievedMessage(string message) { if (InvokeRequired) { this.Invoke(new OnRecievedMessage(RecievedMessage), message); } else { UpdateTextbox(message); } } //Interligações Classes MainChat & Connection public void Disconnected(string reason) { form.Disconnected(reason); } } }
c#
android
visual-studio
button
null
09/29/2011 22:21:08
not a real question
How can I link the buttons android with external functions? === Good afertoon. I'm like development in Visual Studio with the Mono C # android is an application for Android. I want to know How can I link the buttons android with external functions? I want msgrecieved equals Text1.Text! How can I do this? Thank you for your attention;) The Source Code: //Criado por EcoDuty, Frederico Vaz using System; using Android.App; using Android.Content; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace ChatClient_Android { [Activity(Label = "ChatClient_Android", MainLauncher = true, Icon = "@drawable/icon")] public class MainChat : Activity { public delegate void OnRecievedMessage(string message); public MainChat form; const int WM_VSCROLL = 0x115; const int SB_BOTTOM = 7; string msgrecieved; protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); // Get our button from the layout resource, // and attach an event to it Button enviar = FindViewById<Button>(Resource.Id.btenviar); Button ligar = FindViewById<Button>(Resource.Id.btligar); TextView text1 = FindViewById<TextView>(Resource.Id.text1); EditText text2 = FindViewById<EditText>(Resource.Id.text2); text1.Text = msgrecieved; //Conexão com o servidor ligar.Click += delegate { Connect(); ligar.Enabled = false; conectado(); }; //Botão enviar, envia a mensagem ao servidor enviar.Click += delegate { if (text2.Text != "") { if (text2.Text.ToLower().StartsWith("/")) { text2.Text = ""; } else { SendMessage("MSG :" + text2.Text); text2.Text = ""; } } }; // } //Função Actualizar a Caixa de Entrada de Mensagens private void UpdateTextbox(string text) { msgrecieved += "\r\n"; msgrecieved += text; } //Ao receber mensagem private void Invoke(OnRecievedMessage onRecievedMessage, string message) { throw new NotImplementedException(); } public bool InvokeRequired { get; set; } public void RecievedMessage(string message) { if (InvokeRequired) { this.Invoke(new OnRecievedMessage(RecievedMessage), message); } else { UpdateTextbox(message); } } //Interligações Classes MainChat & Connection public void Disconnected(string reason) { form.Disconnected(reason); } } }
1
9,462,343
02/27/2012 08:59:49
479,995
10/19/2010 02:52:42
23
1
Most Complete Database of Earthquakes
I would appreciate any pointers to where can I get the most complete database on earthquakes in Japan (or Worldwide) during last 50-100 years. I know about USGS database - but it lacks earthquakes of magnitude below 4, and has unacceptably many gaps. By "most complete" I mean long historical period, and records for even small earthquakes starting from M1.
database
geo
null
null
null
02/27/2012 09:20:36
off topic
Most Complete Database of Earthquakes === I would appreciate any pointers to where can I get the most complete database on earthquakes in Japan (or Worldwide) during last 50-100 years. I know about USGS database - but it lacks earthquakes of magnitude below 4, and has unacceptably many gaps. By "most complete" I mean long historical period, and records for even small earthquakes starting from M1.
2
10,351,686
04/27/2012 13:39:43
1,306,585
04/01/2012 17:06:10
75
3
unchecked unsafer operations
Not quite sure why I am getting this error, but does anyone know what exception I should be trying to catch and where? I am assuming that I getting this error because I am not checking for possible exceptions. import java.awt.*; import java.util.*; import java.awt.event.*; import javax.swing.*; public class Tokenizer{ public static String split( String string ) { TreeSet tree = new TreeSet(); StringTokenizer tokenizer = new StringTokenizer( string ); while ( tokenizer.hasMoreTokens() ) tree.add( tokenizer.nextToken() ); String result = tree.toString(); return result; } public static void main( String args[] ) { String str; Scanner input = new Scanner(System.in); System.out.println("Please input a string:"); str = input.nextLine(); split(str); } }
java
homework
null
null
null
null
open
unchecked unsafer operations === Not quite sure why I am getting this error, but does anyone know what exception I should be trying to catch and where? I am assuming that I getting this error because I am not checking for possible exceptions. import java.awt.*; import java.util.*; import java.awt.event.*; import javax.swing.*; public class Tokenizer{ public static String split( String string ) { TreeSet tree = new TreeSet(); StringTokenizer tokenizer = new StringTokenizer( string ); while ( tokenizer.hasMoreTokens() ) tree.add( tokenizer.nextToken() ); String result = tree.toString(); return result; } public static void main( String args[] ) { String str; Scanner input = new Scanner(System.in); System.out.println("Please input a string:"); str = input.nextLine(); split(str); } }
0
1,082,511
07/04/2009 16:20:39
18,091
09/18/2008 18:40:50
675
24
iPhone board game: OpenGL ES or CoreGraphics?
I want to program a board game (similar to checkers) for the iPhone. Would OpenGL ES or CoreGraphics be a better option? What do most games of this type on the App Store use?
iphone
opengl-es
coregraphics
null
null
04/03/2012 07:45:39
not constructive
iPhone board game: OpenGL ES or CoreGraphics? === I want to program a board game (similar to checkers) for the iPhone. Would OpenGL ES or CoreGraphics be a better option? What do most games of this type on the App Store use?
4
8,324,975
11/30/2011 11:11:27
1,073,129
11/30/2011 10:32:08
1
0
Problems in running Hive queries
I have configured Hadoop and Hive on Windows through Cygwin. But I am facing some problems like: in hive terminal (CLI): hive> when i enter query, the query do not execute and terminal remains busy. If i enter the query like: bin/hive -e 'LOAD DATA INPATH 'kv1.txt' OVERWRITE INTO TABLE pokes;' The Output is like this: ------------------------- Hive history file=/tmp/Bhavesh.Shah/hive_job_log_Bhavesh.Shah_201111301549_1377455380.txt FAILED: Parse Error: line 1:17 mismatched input 'kv1' expecting StringLiteral near 'INPATH' in load statement What could be the problem? Pls suggest me.
hadoop
hive
null
null
null
null
open
Problems in running Hive queries === I have configured Hadoop and Hive on Windows through Cygwin. But I am facing some problems like: in hive terminal (CLI): hive> when i enter query, the query do not execute and terminal remains busy. If i enter the query like: bin/hive -e 'LOAD DATA INPATH 'kv1.txt' OVERWRITE INTO TABLE pokes;' The Output is like this: ------------------------- Hive history file=/tmp/Bhavesh.Shah/hive_job_log_Bhavesh.Shah_201111301549_1377455380.txt FAILED: Parse Error: line 1:17 mismatched input 'kv1' expecting StringLiteral near 'INPATH' in load statement What could be the problem? Pls suggest me.
0
3,650,457
09/06/2010 09:44:46
73,299
03/03/2009 17:01:29
1,590
62
SOAP-proxy in Scala - what do I need?
I'm trying to write a program in Scala, that will accept SOAP-requests, get the response from the real server (or read it from the local disc) and return the data to the original client. I'm new to the java/scala ecosystem, so I have no clue, what libraries to choose. I heard Scala's XML-handling is quite nice, so I don't know, whether I should use some enterprisey soap-library/framework like jax-ws, jboss-ws, axis, cxf, xmlbeans, etc. Basically, I just need - a library, that accepts the requests (currently, I'm looking at <a href="http://www.eclipse.org/jetty/">jetty</a>, but I'd prefer something that natively supports actors. <a href="http://code.google.com/p/scala-http/">scala-http</a> seems to cover that, but isn't production-ready or maintained, for that matter) - some library to request the data from the other server (something like curl, libwww-perl for java/scala) - a build system (ant? sbt?) - an IDE (I'm used to eclipse, but IntelliJ's scala support is supposed to be better) - a tool to test it (currently, I'm using <a href="http://soapui.org/">SoapUI</a>)
java
xml
http
scala
soap
null
open
SOAP-proxy in Scala - what do I need? === I'm trying to write a program in Scala, that will accept SOAP-requests, get the response from the real server (or read it from the local disc) and return the data to the original client. I'm new to the java/scala ecosystem, so I have no clue, what libraries to choose. I heard Scala's XML-handling is quite nice, so I don't know, whether I should use some enterprisey soap-library/framework like jax-ws, jboss-ws, axis, cxf, xmlbeans, etc. Basically, I just need - a library, that accepts the requests (currently, I'm looking at <a href="http://www.eclipse.org/jetty/">jetty</a>, but I'd prefer something that natively supports actors. <a href="http://code.google.com/p/scala-http/">scala-http</a> seems to cover that, but isn't production-ready or maintained, for that matter) - some library to request the data from the other server (something like curl, libwww-perl for java/scala) - a build system (ant? sbt?) - an IDE (I'm used to eclipse, but IntelliJ's scala support is supposed to be better) - a tool to test it (currently, I'm using <a href="http://soapui.org/">SoapUI</a>)
0
6,006,546
05/15/2011 04:47:02
749,955
05/12/2011 05:42:28
11
0
How would you define infinity?
Expand your thoughts upon this: #define INFINITY ((1 << (8*sizeof (int) - 6)) - 4) Is expanded?
c++
define
infinity
null
null
05/15/2011 05:17:28
not a real question
How would you define infinity? === Expand your thoughts upon this: #define INFINITY ((1 << (8*sizeof (int) - 6)) - 4) Is expanded?
1
5,705,916
04/18/2011 16:26:41
713,772
04/18/2011 16:26:41
1
0
Getting the full url on a ASPX page, including parametres?
Is there a way to find the full url of an ASPX page, wich has hidden parametres? thanks
asp.net
url
asp
attributes
full
04/18/2011 19:22:46
not a real question
Getting the full url on a ASPX page, including parametres? === Is there a way to find the full url of an ASPX page, wich has hidden parametres? thanks
1
9,043,683
01/28/2012 07:26:49
1,126,236
01/02/2012 12:40:42
13
0
how to show progress bar status by percentage
I am using progress dialog for android 2.3.3. Progress dialog's status is showing with the format as "60% 60/100" but I want to display only percentage not "60/100". How can I do it? please help.
android
android-progressbar
null
null
null
null
open
how to show progress bar status by percentage === I am using progress dialog for android 2.3.3. Progress dialog's status is showing with the format as "60% 60/100" but I want to display only percentage not "60/100". How can I do it? please help.
0
5,355,596
03/18/2011 17:19:43
632,998
02/24/2011 19:38:38
238
26
Text cutting off in sliding banner
I have a sliding banner and a span in each banner element. I have some text in the span tags but the text is **being cut off on the right** when you **expand** the banner element. <br /> There is an example here: http://jsfiddle.net/vCbcz/13/ <br /> Please ignore the space on the left, it is intentional. <br />Does anyone know why this is happening and how to fix it?
textwrapping
null
null
null
null
null
open
Text cutting off in sliding banner === I have a sliding banner and a span in each banner element. I have some text in the span tags but the text is **being cut off on the right** when you **expand** the banner element. <br /> There is an example here: http://jsfiddle.net/vCbcz/13/ <br /> Please ignore the space on the left, it is intentional. <br />Does anyone know why this is happening and how to fix it?
0
6,418,882
06/20/2011 23:56:31
235,692
12/20/2009 23:46:20
16
0
Event keycode in javascript for galaxy tablet
Any one aware of the event keycode of the key (to use in javascript) for the following. Android devices --> key which minimizes the keyboard when the focus is on. Generally, we can minimize the keyboard which is up (when the focus is on textbox) by pressing a key in android devices (which is generally at the left bottom of the keyboard) I would like to know the event keycode of that key to disable the keyboard through javascript. Thanks
javascript
android
null
null
null
null
open
Event keycode in javascript for galaxy tablet === Any one aware of the event keycode of the key (to use in javascript) for the following. Android devices --> key which minimizes the keyboard when the focus is on. Generally, we can minimize the keyboard which is up (when the focus is on textbox) by pressing a key in android devices (which is generally at the left bottom of the keyboard) I would like to know the event keycode of that key to disable the keyboard through javascript. Thanks
0
9,025,398
01/26/2012 21:11:29
306,084
03/31/2010 14:17:31
1,138
62
Spree administration AJAX request works in development, 404s in production
I'm building a site on Spree 0.70.3 and Rails 3.1.3. In development I just run thin on port 3000; in production, we have Passenger 3.0.9 and Nginx 1.0.8. When associating a Product with a Taxon in Spree, you come to a page with an empty list of taxons. Starting to type in a Search box triggers an AJAX post request to find taxons matching that string and display them as potential taxons for the product. In development, this works fine; I can see the requests coming in the development log, and taxons appear on the page. In production, the Chrome console shows that the AJAX request is getting a 404 response. The Nginx logs simply record the 404 response; the Rails logs show no record of the request. My guess is that Nginx is seeing that the request has a `.js` file extension and is looking for a file, perhaps in the `public/` directory, rather than sending the request to Rails. Has anyone encountered this problem with Spree/Nginx before? How can I get Nginx to log more data about how it's trying to resolve the request? Is there anything about the Nginx configuration I should be checking here?
jquery-ajax
ruby-on-rails-3.1
nginx
spree
null
null
open
Spree administration AJAX request works in development, 404s in production === I'm building a site on Spree 0.70.3 and Rails 3.1.3. In development I just run thin on port 3000; in production, we have Passenger 3.0.9 and Nginx 1.0.8. When associating a Product with a Taxon in Spree, you come to a page with an empty list of taxons. Starting to type in a Search box triggers an AJAX post request to find taxons matching that string and display them as potential taxons for the product. In development, this works fine; I can see the requests coming in the development log, and taxons appear on the page. In production, the Chrome console shows that the AJAX request is getting a 404 response. The Nginx logs simply record the 404 response; the Rails logs show no record of the request. My guess is that Nginx is seeing that the request has a `.js` file extension and is looking for a file, perhaps in the `public/` directory, rather than sending the request to Rails. Has anyone encountered this problem with Spree/Nginx before? How can I get Nginx to log more data about how it's trying to resolve the request? Is there anything about the Nginx configuration I should be checking here?
0
10,371,612
04/29/2012 11:06:24
1,354,439
04/24/2012 17:57:22
16
0
Python: Exploring data of GUI program
Is there ANY way( using python) to get values of variables stored in GUI? As an example to explain my question I will take a well known built in windows calculator. Lets say I type in it a value 245. It is easy to see this value when looking at calculator GUI display, but how can I make the python to get this value? I have tried to use famous cheat engine to find in which memory adress this value is stored... without any result. Thank you for your answers.
python
gui
variables
value
null
04/30/2012 15:31:40
not a real question
Python: Exploring data of GUI program === Is there ANY way( using python) to get values of variables stored in GUI? As an example to explain my question I will take a well known built in windows calculator. Lets say I type in it a value 245. It is easy to see this value when looking at calculator GUI display, but how can I make the python to get this value? I have tried to use famous cheat engine to find in which memory adress this value is stored... without any result. Thank you for your answers.
1
9,858,754
03/25/2012 08:14:32
1,257,248
03/08/2012 14:43:54
33
11
Restricting visibility of class outside the namespace in which it is declared
I have a namespace in c++ which contains 5 classes. All of them are having 'public' access modifier. Out of these, 2 classes are static classes. I want to restrict these classes to be visible outside the namespace in which they are declared. So, like in another namespace, if i import this namespace, then these 2 classes should not be available to use. Please provide me help on this matter. Any help will be highly appreciated. Thanx in advance
c++
null
null
null
null
null
open
Restricting visibility of class outside the namespace in which it is declared === I have a namespace in c++ which contains 5 classes. All of them are having 'public' access modifier. Out of these, 2 classes are static classes. I want to restrict these classes to be visible outside the namespace in which they are declared. So, like in another namespace, if i import this namespace, then these 2 classes should not be available to use. Please provide me help on this matter. Any help will be highly appreciated. Thanx in advance
0
1,489,482
09/28/2009 21:30:46
18,927
09/19/2008 14:55:09
264
19
Has anyone ever given a developer interview online?
In these trying times I've been asking to dramatically reduce our costs associated with hiring developers. One of the ways we're hoping to do this is to stop flying candidates in until we're 98% sure we're going to hire them. To accomplish that goal, we're thinking about doing some of the interviews via webcam. Most of our interview process translates just fine to webcam, except the coding portion. To me, that's the most important part, because I feel like its my chance to get into the developers head and see how they think. And maybe its me, but I don't care so much what you know, I want to know how you think. Anyway, has anyone ever done or given a coding interview over a webcam? What technologies did you use? How did it work? How effective do you feel it was for assessing your(their) skill set?
interview-questions
null
null
null
null
12/01/2011 16:22:12
not constructive
Has anyone ever given a developer interview online? === In these trying times I've been asking to dramatically reduce our costs associated with hiring developers. One of the ways we're hoping to do this is to stop flying candidates in until we're 98% sure we're going to hire them. To accomplish that goal, we're thinking about doing some of the interviews via webcam. Most of our interview process translates just fine to webcam, except the coding portion. To me, that's the most important part, because I feel like its my chance to get into the developers head and see how they think. And maybe its me, but I don't care so much what you know, I want to know how you think. Anyway, has anyone ever done or given a coding interview over a webcam? What technologies did you use? How did it work? How effective do you feel it was for assessing your(their) skill set?
4
2,919,848
05/27/2010 09:18:05
324,112
04/23/2010 11:24:54
54
1
How to set Menu Help Text in Window Custom ShellExtension popup menu Item
I need to set the menu help text of my shell context menu popup menu item just like winzip shellContext menu. I tried IContextMenu_GetCommandString but it is only setting menu help for sub menus of my main popup menu. Please help me and let me know how to set the menu help for my main poup menu? Thanks
windows
shell
contextmenu
null
null
null
open
How to set Menu Help Text in Window Custom ShellExtension popup menu Item === I need to set the menu help text of my shell context menu popup menu item just like winzip shellContext menu. I tried IContextMenu_GetCommandString but it is only setting menu help for sub menus of my main popup menu. Please help me and let me know how to set the menu help for my main poup menu? Thanks
0
7,578,162
09/28/2011 04:04:23
92,992
04/20/2009 05:35:39
21
1
A group with more than one admin can not be added to an applications roles
All members of my group are verified developers. I get the following error after making some of them admins of the group. Unverified Developers Found A specified Group contains unverified developers. Unverified developers cannot be added to this app. Read http://www.facebook.com/help/?faq=17580 for details.
facebook
roles
null
null
null
09/28/2011 10:40:36
off topic
A group with more than one admin can not be added to an applications roles === All members of my group are verified developers. I get the following error after making some of them admins of the group. Unverified Developers Found A specified Group contains unverified developers. Unverified developers cannot be added to this app. Read http://www.facebook.com/help/?faq=17580 for details.
2
6,270,287
06/07/2011 19:04:28
745,674
05/09/2011 18:57:44
8
0
How to read from two comports?
I'm writing code that reads from a comport. I want it to read from two ports without having to close the first port and open the second one. How would I go about doing this?
c#
null
null
null
null
06/09/2011 03:52:15
not a real question
How to read from two comports? === I'm writing code that reads from a comport. I want it to read from two ports without having to close the first port and open the second one. How would I go about doing this?
1
8,706,534
01/02/2012 23:52:23
1,104,785
12/18/2011 18:22:47
34
0
Insert into form curly brackets alias with Jquery / Javascript
I am not even sure if this is even possible or how easy it is, but what I am trying to work out is how to, if it is possible, to use jquery or javascript to insert an alias for a form field / curly brackets where the cursor currently is selected on the page. Let me try and explain it a bit better....... So I go to the email template form, on the right of the form I have 3 buttons, NAME , REP , DATE Name = {leadname} Business Name = {businessname} Date = {datesent} These are all form fields being posted into the $form->data array when it loads. I start writing out my template so.......Dear {leadname} etc etc when the template is sent, it loads the clients name etc into the curly brackets and sends it in an email. What I am trying to do is make this so that someone doesnt write leadname for the persons name but presses the button to the right of the form marked 'Name' , this then inserts [Name] or maybe Name in bold into the form, but this is actually an alias of {leadname} , so im not sure if I have to change my language file too to get this to work ?, im also not sure how to actually insert these fields into my template form field.
javascript
jquery
forms
curly-braces
curly-brackets
null
open
Insert into form curly brackets alias with Jquery / Javascript === I am not even sure if this is even possible or how easy it is, but what I am trying to work out is how to, if it is possible, to use jquery or javascript to insert an alias for a form field / curly brackets where the cursor currently is selected on the page. Let me try and explain it a bit better....... So I go to the email template form, on the right of the form I have 3 buttons, NAME , REP , DATE Name = {leadname} Business Name = {businessname} Date = {datesent} These are all form fields being posted into the $form->data array when it loads. I start writing out my template so.......Dear {leadname} etc etc when the template is sent, it loads the clients name etc into the curly brackets and sends it in an email. What I am trying to do is make this so that someone doesnt write leadname for the persons name but presses the button to the right of the form marked 'Name' , this then inserts [Name] or maybe Name in bold into the form, but this is actually an alias of {leadname} , so im not sure if I have to change my language file too to get this to work ?, im also not sure how to actually insert these fields into my template form field.
0
3,090,720
06/22/2010 06:20:10
261,591
01/29/2010 06:07:22
18
4
Jquery based File Explorer/Manager
Is there a demo of jQuery based File Explorer or Manager, similar to Windows Explorer?
jquery
null
null
null
null
02/27/2012 16:11:33
not constructive
Jquery based File Explorer/Manager === Is there a demo of jQuery based File Explorer or Manager, similar to Windows Explorer?
4
11,285,953
07/01/2012 22:00:10
1,494,813
07/01/2012 21:56:00
1
0
Sending sms using Java code
Guys I have a project that requires sending sms to a mobile using java code, actually it is a web-application implemented using j2ee with glassfish server. I googled this topic but all the codes found requires a sms-host. Any help??
java
java-ee
web
sms
null
07/01/2012 23:41:49
not a real question
Sending sms using Java code === Guys I have a project that requires sending sms to a mobile using java code, actually it is a web-application implemented using j2ee with glassfish server. I googled this topic but all the codes found requires a sms-host. Any help??
1
2,724,268
04/27/2010 19:16:15
251,589
01/15/2010 14:24:59
640
21
Bourne Shell: Convert ~/Desktop to /users/me/Desktop
Incredably annoyed at the Java Keytool. So much so that I have created a new tag: "SunSuck". The keytool does not resolve impartial directories. Ie this works: keytool -keystore "/users/me/Desktop" ... This doesn't: keytool -keystore "~/Desktop" ... Is there something that I could call like this: keytool -keystore "$(<cmd> ~/Desktop)" ...
bourne
scripting
path
sunsuck
null
null
open
Bourne Shell: Convert ~/Desktop to /users/me/Desktop === Incredably annoyed at the Java Keytool. So much so that I have created a new tag: "SunSuck". The keytool does not resolve impartial directories. Ie this works: keytool -keystore "/users/me/Desktop" ... This doesn't: keytool -keystore "~/Desktop" ... Is there something that I could call like this: keytool -keystore "$(<cmd> ~/Desktop)" ...
0
11,535,139
07/18/2012 06:04:14
390,111
07/13/2010 05:06:50
128
6
WCF RIA Services - Query with param
I'm working with my data via WCF RIA Services. I expose my data via RIA queries and it's works fine. Now I need to get parameterized query method. I've added parameter to query method on server side: public IQueryable<User> GetUsers(string param1) { return _dataContext.Users; } .. and pass param value on a client: var query = _context.GetUsersQuery("a"); _context.Load(query, LoadBehavior.MergeIntoCurrent, (LoadOperation lo) => { if (lo.HasError == false) { ResultList.ItemsSource = lo.Entities; } }, null); As a result I receive NullReferenceExeption on the client when I try to get data. Is it a know bug of WCF RIA Services or I missed something?
wcf-ria-services
null
null
null
null
null
open
WCF RIA Services - Query with param === I'm working with my data via WCF RIA Services. I expose my data via RIA queries and it's works fine. Now I need to get parameterized query method. I've added parameter to query method on server side: public IQueryable<User> GetUsers(string param1) { return _dataContext.Users; } .. and pass param value on a client: var query = _context.GetUsersQuery("a"); _context.Load(query, LoadBehavior.MergeIntoCurrent, (LoadOperation lo) => { if (lo.HasError == false) { ResultList.ItemsSource = lo.Entities; } }, null); As a result I receive NullReferenceExeption on the client when I try to get data. Is it a know bug of WCF RIA Services or I missed something?
0
6,418,755
06/20/2011 23:36:24
621,645
08/26/2010 09:37:59
96
0
IOS developer program( individual)
My clients has purchased an IOS developer program (individual company), he would like to put to the apple store with the name of his company ? can he do this ? How ? or the app will have the name of his program developer ?
iphone
null
null
null
null
06/20/2011 23:50:18
off topic
IOS developer program( individual) === My clients has purchased an IOS developer program (individual company), he would like to put to the apple store with the name of his company ? can he do this ? How ? or the app will have the name of his program developer ?
2
1,835,193
12/02/2009 19:19:27
191,776
10/17/2009 19:08:19
5
1
Is it a better practice to typecast the pointer returned by malloc?
For the C code below, compare the defintions of the int pointers a & b; #include <stdio.h> #include <stdlib.h> int main() { int *a=malloc(sizeof(int)); int *b=(int *)malloc(sizeof(int)); return(0); } Is it better in any way to typecast the pointer of type void, returned by the malloc function? Or is it auto-typecasted while assigning to the int pointer on the left hand side? Under which circumstances, if any, can it prove to be necessary rather than just obligatory?
c
pointers
malloc
null
null
null
open
Is it a better practice to typecast the pointer returned by malloc? === For the C code below, compare the defintions of the int pointers a & b; #include <stdio.h> #include <stdlib.h> int main() { int *a=malloc(sizeof(int)); int *b=(int *)malloc(sizeof(int)); return(0); } Is it better in any way to typecast the pointer of type void, returned by the malloc function? Or is it auto-typecasted while assigning to the int pointer on the left hand side? Under which circumstances, if any, can it prove to be necessary rather than just obligatory?
0
11,445,949
07/12/2012 06:14:17
1,289,939
03/24/2012 12:07:42
1
0
Develop existing symfony project
I am new to symfony Framework (PHP Framework), I want to modify OrangeHRM a project based on Symfony Framework. please help me to setup development mode for existing symfony project. I never tried Symfony before but I Know PHP programming, I want to add some forms in OrangeHRM, Tell me how do I add or modify forms and fields Advance thanks for your precious time and help
php
symfony
null
null
null
07/12/2012 12:24:23
not a real question
Develop existing symfony project === I am new to symfony Framework (PHP Framework), I want to modify OrangeHRM a project based on Symfony Framework. please help me to setup development mode for existing symfony project. I never tried Symfony before but I Know PHP programming, I want to add some forms in OrangeHRM, Tell me how do I add or modify forms and fields Advance thanks for your precious time and help
1
11,154,681
06/22/2012 10:44:20
1,158,894
01/19/2012 16:00:08
23
0
JQuery / PHP Upload and Crop
This link: http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/ Theres a nice plugin which i can use for uploading and cropping images. I'm going to use the crop part, but it uploads a resized image as well. What i want to know, is how I can customize the plugin to only upload the cropped image, (and not the resized). Anybody know this ? Thanks in advance! Regards, Mathias
php
javascript
jquery
null
null
06/22/2012 17:05:02
not a real question
JQuery / PHP Upload and Crop === This link: http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/ Theres a nice plugin which i can use for uploading and cropping images. I'm going to use the crop part, but it uploads a resized image as well. What i want to know, is how I can customize the plugin to only upload the cropped image, (and not the resized). Anybody know this ? Thanks in advance! Regards, Mathias
1
9,849,920
03/24/2012 07:21:24
1,289,622
03/24/2012 06:49:27
1
0
Storing space on server to perticular user
i have to create application such that when user login and provide the space then that much space is allocated for that user on server..make directory of that user.. this space is utilize by user to upload files and store it on server. i have read about ftp functions on http://www.php.net/manual/en/book.ftp.php.
php
php5
null
null
null
06/25/2012 03:31:27
not a real question
Storing space on server to perticular user === i have to create application such that when user login and provide the space then that much space is allocated for that user on server..make directory of that user.. this space is utilize by user to upload files and store it on server. i have read about ftp functions on http://www.php.net/manual/en/book.ftp.php.
1
6,880,212
07/30/2011 00:10:38
447,979
09/15/2010 03:38:46
1,099
137
check output for success/error messages in PDO class
$pdo = new PDO(...); $stmt = $pdo -> prepare($query); $stmt -> bindValue(1,$url); $stmt -> execute(); How I check if my query is executed with success? Thanks in advance!
php
pdo
null
null
null
null
open
check output for success/error messages in PDO class === $pdo = new PDO(...); $stmt = $pdo -> prepare($query); $stmt -> bindValue(1,$url); $stmt -> execute(); How I check if my query is executed with success? Thanks in advance!
0
4,420,234
12/12/2010 03:07:11
129,735
06/27/2009 02:24:52
321
13
Inline SVG in Firefox
I'm a bit stumped with this one. I'm rendering SVG visualizations using Protovis, a JS library, and it works perfectly well in Chrome. I save the rendered SVG on my server and try to re-render it in a "gallery" view using a PHP function, and this fails in Firefox. All I see is the text in the SVG, but not the SVG. I save the full svg content, like so: <svg height="220" width="880" stroke-width="1.5" stroke="none" fill="none" font-family="sans-serif" font-size="10px"><g transform="translate(30, 10)"><line stroke-width="1" I've tried using `<object>` but all that does is prompt Firefox to download a plugin it can't find. It works in FF4 beta, but I can't see why it won't work even in Firefox 3.6. Is this something I ought to give up on? You can see a demo here: http://www.rioleo.org/protoviewer (click on "gallery") Thanks once again!
firefox
svg
protovis
null
null
null
open
Inline SVG in Firefox === I'm a bit stumped with this one. I'm rendering SVG visualizations using Protovis, a JS library, and it works perfectly well in Chrome. I save the rendered SVG on my server and try to re-render it in a "gallery" view using a PHP function, and this fails in Firefox. All I see is the text in the SVG, but not the SVG. I save the full svg content, like so: <svg height="220" width="880" stroke-width="1.5" stroke="none" fill="none" font-family="sans-serif" font-size="10px"><g transform="translate(30, 10)"><line stroke-width="1" I've tried using `<object>` but all that does is prompt Firefox to download a plugin it can't find. It works in FF4 beta, but I can't see why it won't work even in Firefox 3.6. Is this something I ought to give up on? You can see a demo here: http://www.rioleo.org/protoviewer (click on "gallery") Thanks once again!
0
5,051,689
02/19/2011 15:40:03
553,823
12/25/2010 13:07:29
43
0
Emails notifications are not sent from the God gem
I use the God gem to monitor my delayed_job processes, so far the gem is doing its job as it should but from some reason I can't get him to send email notifications (i use google apps). Here are my god file configuration: God::Contacts::Email.defaults do |d| d.from_email = 'system@example.com' d.from_name = 'Process monitoring' d.delivery_method = :smtp d.server_host = 'smtp.gmail.com' d.server_port = 587 d.server_auth = true d.server_domain = 'example.com' d.server_user = 'system@example.com' d.server_password = 'myPassword' end God.contact(:email) do |c| c.name = 'me' c.group = 'developers' c.to_email = 'me@example.com' end w.start_if do |start| start.condition(:process_running) do |c| c.interval = 20.seconds c.running = false c.notify = {:contacts => ['me'], :priority => 1, :category => 'staging'} end Any thoughts?
ruby-on-rails
ruby
rubygems
delayed-job
god
null
open
Emails notifications are not sent from the God gem === I use the God gem to monitor my delayed_job processes, so far the gem is doing its job as it should but from some reason I can't get him to send email notifications (i use google apps). Here are my god file configuration: God::Contacts::Email.defaults do |d| d.from_email = 'system@example.com' d.from_name = 'Process monitoring' d.delivery_method = :smtp d.server_host = 'smtp.gmail.com' d.server_port = 587 d.server_auth = true d.server_domain = 'example.com' d.server_user = 'system@example.com' d.server_password = 'myPassword' end God.contact(:email) do |c| c.name = 'me' c.group = 'developers' c.to_email = 'me@example.com' end w.start_if do |start| start.condition(:process_running) do |c| c.interval = 20.seconds c.running = false c.notify = {:contacts => ['me'], :priority => 1, :category => 'staging'} end Any thoughts?
0
7,615,496
09/30/2011 20:03:56
973,754
09/30/2011 19:52:55
1
0
iTextSharp HTML to PDF preserving spaces
I am using the FreeTextBox.dll to get user input, and storing that information in HTML format in the database. A samle of the user's input is the below: <pre><p>                                                                     133 Peachtree St NE<br />                                                                     Atlanta,  GA 30303<br />                                                                     404-652-7777</p> <p>                                                                     Cindy Cooley<br />                                                                     <a href="http://www.somecompany.com">www.somecompany.com</a><br />                                                                     Product Stewardship Mgr</p> <p>                                                                    9/9/2011<br />Deidre's Company<br />123 Test St<br />Atlanta, GA 30303<br /><br />Test test.</p> <p> </p> </pre> I want the HTMLWorker to perserve the white spaces the users enters, but it strips it out. Is there a way to perserve the user's white space? Below is an example of how I am creating my PDF document. Public Shared Sub CreatePreviewPDF(ByVal vsHTML As String, ByVal vsFileName As String) Dim output As New MemoryStream() Dim oDocument As New Document(PageSize.LETTER) Dim writer As PdfWriter = PdfWriter.GetInstance(oDocument, output) Dim oFont As New Font(Font.FontFamily.TIMES_ROMAN, 8, Font.NORMAL, BaseColor.BLACK) Using output Using writer Using oDocument oDocument.Open() Using sr As New StringReader(vsHTML) Using worker As New html.simpleparser.HTMLWorker(oDocument) worker.StartDocument() worker.SetInsidePRE(True) worker.Parse(sr) worker.EndDocument() worker.Close() oDocument.Close() End Using End Using HttpContext.Current.Response.ContentType = "application/pdf" HttpContext.Current.Response.AddHeader("Content-Disposition", String.Format("attachment;filename={0}.pdf", vsFileName)) HttpContext.Current.Response.BinaryWrite(output.ToArray()) HttpContext.Current.Response.End() End Using End Using output.Close() End Using End Sub
html
pdf
itextsharp
null
null
null
open
iTextSharp HTML to PDF preserving spaces === I am using the FreeTextBox.dll to get user input, and storing that information in HTML format in the database. A samle of the user's input is the below: <pre><p>                                                                     133 Peachtree St NE<br />                                                                     Atlanta,  GA 30303<br />                                                                     404-652-7777</p> <p>                                                                     Cindy Cooley<br />                                                                     <a href="http://www.somecompany.com">www.somecompany.com</a><br />                                                                     Product Stewardship Mgr</p> <p>                                                                    9/9/2011<br />Deidre's Company<br />123 Test St<br />Atlanta, GA 30303<br /><br />Test test.</p> <p> </p> </pre> I want the HTMLWorker to perserve the white spaces the users enters, but it strips it out. Is there a way to perserve the user's white space? Below is an example of how I am creating my PDF document. Public Shared Sub CreatePreviewPDF(ByVal vsHTML As String, ByVal vsFileName As String) Dim output As New MemoryStream() Dim oDocument As New Document(PageSize.LETTER) Dim writer As PdfWriter = PdfWriter.GetInstance(oDocument, output) Dim oFont As New Font(Font.FontFamily.TIMES_ROMAN, 8, Font.NORMAL, BaseColor.BLACK) Using output Using writer Using oDocument oDocument.Open() Using sr As New StringReader(vsHTML) Using worker As New html.simpleparser.HTMLWorker(oDocument) worker.StartDocument() worker.SetInsidePRE(True) worker.Parse(sr) worker.EndDocument() worker.Close() oDocument.Close() End Using End Using HttpContext.Current.Response.ContentType = "application/pdf" HttpContext.Current.Response.AddHeader("Content-Disposition", String.Format("attachment;filename={0}.pdf", vsFileName)) HttpContext.Current.Response.BinaryWrite(output.ToArray()) HttpContext.Current.Response.End() End Using End Using output.Close() End Using End Sub
0
9,426,783
02/24/2012 07:08:06
805,896
06/20/2011 01:52:07
115
0
best xml editor for eclipse
I am new to XML, could you please suggest me the best xml editor pugin for eclipse. 1-I need to create/edit xml and xsd files, 2-had a look at previouse questions asked in this area but couldn't reach a conclusion. thank you
xml
eclipse
editor
null
null
05/29/2012 23:22:03
not constructive
best xml editor for eclipse === I am new to XML, could you please suggest me the best xml editor pugin for eclipse. 1-I need to create/edit xml and xsd files, 2-had a look at previouse questions asked in this area but couldn't reach a conclusion. thank you
4
7,844,033
10/21/2011 01:15:58
697,461
04/07/2011 19:22:48
154
0
How to find if kernel virtual address is a pinned memory
Is there any way to find out if any particular kernel virtual address is pinned? Thanks Abhijeet
c
windows
linux
kernel
null
10/21/2011 20:02:50
not a real question
How to find if kernel virtual address is a pinned memory === Is there any way to find out if any particular kernel virtual address is pinned? Thanks Abhijeet
1
7,390,372
09/12/2011 15:35:14
940,900
09/12/2011 15:35:14
1
0
Dowload app from App Store from command line
Does anyone know how can I download an app from App Store to iTunes from a command line? Do you have a good reference to CL help/guide for iTunes? Thanks, Guy
iphone
itunes
null
null
null
09/12/2011 17:35:48
off topic
Dowload app from App Store from command line === Does anyone know how can I download an app from App Store to iTunes from a command line? Do you have a good reference to CL help/guide for iTunes? Thanks, Guy
2
9,411,291
02/23/2012 10:34:39
1,157,942
01/19/2012 07:46:24
26
0
Alter Datatype uniqueidentifier into int in table aspnetUsers using SqlServerMembershipProvider
I am using SqlServerMembershipProvider and i setup the database. Now, How to change the data type of the UserId column in the aspnetdb from uniqueidentifier to int? Whether it occurs any errors while altering the datatype?
asp.net
sql-server-2008
null
null
null
02/23/2012 17:18:20
not a real question
Alter Datatype uniqueidentifier into int in table aspnetUsers using SqlServerMembershipProvider === I am using SqlServerMembershipProvider and i setup the database. Now, How to change the data type of the UserId column in the aspnetdb from uniqueidentifier to int? Whether it occurs any errors while altering the datatype?
1
9,370,629
02/21/2012 00:47:58
1,103,257
12/17/2011 08:49:04
50
2
uiscrollview zoom in and zoom out doesn't work properly
I have a uiscrollview and there is a uiimageview inside it. I want the used to be able to zoom in out of the image since it's a big image. the scrollview only needs to scroll vertically not horizontally. before adding the zooming effect I had the following code and it worked as I wanted, -(void)viewDidLoad { [scrollView setScrollEnabled:YES]; [scrollView setContentSize:CGSizeMake(320, 1690)]; } So I did some research and ended up with the following code to enable pinch zoom in and out, -(void)viewDidLoad { scrollView.scrollEnabled = YES; [scrollView setContentSize:CGSizeMake(320, 1690)]; scrollView.delegate = self; // scrollView.contentSize = instImage.frame.size; scrollView.minimumZoomScale = scrollView.frame.size.width / instImage.frame.size.width; scrollView.maximumZoomScale = 2.0; [scrollView setZoomScale:scrollView.minimumZoomScale]; [[NSRunLoop currentRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate distantFuture]]; } - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { return instImage; } - (CGRect)centeredFrameForScrollView:(UIScrollView *)scroll andUIView:(UIView *)rView { CGSize boundsSize = scroll.bounds.size; CGRect frameToCenter = rView.frame; // center horizontally if (frameToCenter.size.width < boundsSize.width) { frameToCenter.origin.x = ((boundsSize.width - frameToCenter.size.width) / 2); }else { frameToCenter.origin.x = 0; } return frameToCenter; } - (void)scrollViewDidZoom:(UIScrollView *)scrollV { instImage.frame = [self centeredFrameForScrollView:scrollV andUIView:instImage];; } Now I have the following problems and I can't figure out what's wrong, 1. when the view is just loaded before any pinch the scrollview doesn't scroll all the way to the end of the image. 2. when pinched to zoom in, it scrolls left and right and up and down the image, but still it doesn't scroll down all the way to the end of the image, but still more than what it originally did at the begining. 3. when I zoom out, the whole thing stops. you can't zoom in or out, it doesn't even scroll anymore. totally locked. I did some reseach and found the following post. http://stackoverflow.com/a/6384834/1103257 but I don't know where would I find NSDefaultRunLoopMode or even how to search for it to figure out whether this can solve it or not. thanks
ios
scroll
imageview
zoom
null
null
open
uiscrollview zoom in and zoom out doesn't work properly === I have a uiscrollview and there is a uiimageview inside it. I want the used to be able to zoom in out of the image since it's a big image. the scrollview only needs to scroll vertically not horizontally. before adding the zooming effect I had the following code and it worked as I wanted, -(void)viewDidLoad { [scrollView setScrollEnabled:YES]; [scrollView setContentSize:CGSizeMake(320, 1690)]; } So I did some research and ended up with the following code to enable pinch zoom in and out, -(void)viewDidLoad { scrollView.scrollEnabled = YES; [scrollView setContentSize:CGSizeMake(320, 1690)]; scrollView.delegate = self; // scrollView.contentSize = instImage.frame.size; scrollView.minimumZoomScale = scrollView.frame.size.width / instImage.frame.size.width; scrollView.maximumZoomScale = 2.0; [scrollView setZoomScale:scrollView.minimumZoomScale]; [[NSRunLoop currentRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate distantFuture]]; } - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { return instImage; } - (CGRect)centeredFrameForScrollView:(UIScrollView *)scroll andUIView:(UIView *)rView { CGSize boundsSize = scroll.bounds.size; CGRect frameToCenter = rView.frame; // center horizontally if (frameToCenter.size.width < boundsSize.width) { frameToCenter.origin.x = ((boundsSize.width - frameToCenter.size.width) / 2); }else { frameToCenter.origin.x = 0; } return frameToCenter; } - (void)scrollViewDidZoom:(UIScrollView *)scrollV { instImage.frame = [self centeredFrameForScrollView:scrollV andUIView:instImage];; } Now I have the following problems and I can't figure out what's wrong, 1. when the view is just loaded before any pinch the scrollview doesn't scroll all the way to the end of the image. 2. when pinched to zoom in, it scrolls left and right and up and down the image, but still it doesn't scroll down all the way to the end of the image, but still more than what it originally did at the begining. 3. when I zoom out, the whole thing stops. you can't zoom in or out, it doesn't even scroll anymore. totally locked. I did some reseach and found the following post. http://stackoverflow.com/a/6384834/1103257 but I don't know where would I find NSDefaultRunLoopMode or even how to search for it to figure out whether this can solve it or not. thanks
0
364,622
12/13/2008 01:23:59
45,895
12/13/2008 01:20:23
1
0
With Ruby 1.9 approaching, should I buy "The Ruby Way - Second Edition", based on Ruby 1.8, or just wait for another book?
I've bought "Programming Ruby" from Pragmatic Programmers (still in beta), but friends say that "The Ruby Way" is much better. Should I buy it or wait for Ruby 1.9 books?
ruby
book
recommendation
null
null
09/27/2011 13:58:41
not constructive
With Ruby 1.9 approaching, should I buy "The Ruby Way - Second Edition", based on Ruby 1.8, or just wait for another book? === I've bought "Programming Ruby" from Pragmatic Programmers (still in beta), but friends say that "The Ruby Way" is much better. Should I buy it or wait for Ruby 1.9 books?
4
642,610
03/13/2009 13:08:20
2,763
08/24/2008 23:06:05
431
41
Making VB.NET debugging like C#
I've programmed in C# for the majority of my .NET career - now I'm working on a VB.net project - when debugging it drives me insane the differences of how the debugging works. two off the top of my head are 1) having to prefix my immediate window queries with ? 2) not being able to mouse over a GUID, I have to ?myGuid.ToString() to actually see the value is there a way I can make it behave like C#?
c#
c#-to-vb.net
vb.net
null
null
null
open
Making VB.NET debugging like C# === I've programmed in C# for the majority of my .NET career - now I'm working on a VB.net project - when debugging it drives me insane the differences of how the debugging works. two off the top of my head are 1) having to prefix my immediate window queries with ? 2) not being able to mouse over a GUID, I have to ?myGuid.ToString() to actually see the value is there a way I can make it behave like C#?
0
8,871,063
01/15/2012 15:57:57
978,615
10/04/2011 14:07:01
21
0
Linux Mint Operating System Dual Boot Help Needed
I was wondering if I could get some help. I'm dual booting Linux Mint and Windows 7. The dual boot screen to select which operating system you want to done through mint. The thing is I have a lot of options to select: Mint Mint-Recovery Windows 7 Windows 7-Recovery What I want to do is basically cut down the options to just: Mint Windows 7 But I have no idea of what file in Mint to edit. Can anybody who might know help me? Thanks guys J
windows-7
operating-system
mint
null
null
01/15/2012 23:28:15
off topic
Linux Mint Operating System Dual Boot Help Needed === I was wondering if I could get some help. I'm dual booting Linux Mint and Windows 7. The dual boot screen to select which operating system you want to done through mint. The thing is I have a lot of options to select: Mint Mint-Recovery Windows 7 Windows 7-Recovery What I want to do is basically cut down the options to just: Mint Windows 7 But I have no idea of what file in Mint to edit. Can anybody who might know help me? Thanks guys J
2
5,904,164
05/05/2011 21:13:03
593,712
01/28/2011 11:17:58
8
0
decoding very special characters php
how can I decode this kind of chars? Have tried many functions and they didnt worked. Any ideas? Here a printscreen of the chars: http://img714.imageshack.us/img714/2069/unled1yt.jpg TY!
php
decode
special
chars
null
05/06/2011 01:08:09
not a real question
decoding very special characters php === how can I decode this kind of chars? Have tried many functions and they didnt worked. Any ideas? Here a printscreen of the chars: http://img714.imageshack.us/img714/2069/unled1yt.jpg TY!
1
6,917,507
08/02/2011 19:30:04
722,695
04/24/2011 15:03:23
126
1
TCL TK canvas Pixelmap
i need to generade a pixelmap. I know the height and the width. But now i need to fill one pixel ( or a block for bigger resolution ) on the position x y. what ist the easyest think to do it? It should not be just one pixel, because its could be to small to view it. so it would be really good if i could say, my canvas has to height 1024 and with of 768 and the pixelmal just only have 500 x 500 "pixel" so that every point is a little bit bigger. could someone help me a little bit ? greetz
tcl
tk
null
null
null
null
open
TCL TK canvas Pixelmap === i need to generade a pixelmap. I know the height and the width. But now i need to fill one pixel ( or a block for bigger resolution ) on the position x y. what ist the easyest think to do it? It should not be just one pixel, because its could be to small to view it. so it would be really good if i could say, my canvas has to height 1024 and with of 768 and the pixelmal just only have 500 x 500 "pixel" so that every point is a little bit bigger. could someone help me a little bit ? greetz
0
6,452,581
06/23/2011 10:28:19
464,465
10/02/2010 06:58:29
199
2
How to append an array on textfield in iphone
i have an application in which i want to fetch value from database using particular ID column and display all data of row in textfield on button click event. I have done the following code for getting the values : //this is a function which i am created which will be called in button click event -(NSArray*)getStudents { NSMutableArray *studentArray=[[NSMutableArray alloc]init]; sqlite3_stmt *statement = nil; NSString *query=@"select * from UserInformation where UserId=?"; const char *sql = [query cStringUsingEncoding:NSUTF8StringEncoding]; if (sqlite3_prepare_v2(dbConnection, sql, -1, &statement, NULL) == SQLITE_OK) { while(sqlite3_step(statement) == SQLITE_ROW) { Student *newStudent=[[Student alloc]init]; newStudent.age=sqlite3_column_int(statement, 0); newStudent.name=[NSString stringWithUTF8String:(char *)sqlite3_column_text(statement, 1)]; [studentArray addObject:newStudent]; } } return studentArray; } i am having a problem on how to add this array to my textfields so that when i click on the button my textfields are loaded with the values from the database for particular userid.i have written the above function in one controller and my textfields are defined in another controller.So how to set the above array to my textfields.Please help me in solving this problem.Thanks
iphone
objective-c
sqlite
null
null
null
open
How to append an array on textfield in iphone === i have an application in which i want to fetch value from database using particular ID column and display all data of row in textfield on button click event. I have done the following code for getting the values : //this is a function which i am created which will be called in button click event -(NSArray*)getStudents { NSMutableArray *studentArray=[[NSMutableArray alloc]init]; sqlite3_stmt *statement = nil; NSString *query=@"select * from UserInformation where UserId=?"; const char *sql = [query cStringUsingEncoding:NSUTF8StringEncoding]; if (sqlite3_prepare_v2(dbConnection, sql, -1, &statement, NULL) == SQLITE_OK) { while(sqlite3_step(statement) == SQLITE_ROW) { Student *newStudent=[[Student alloc]init]; newStudent.age=sqlite3_column_int(statement, 0); newStudent.name=[NSString stringWithUTF8String:(char *)sqlite3_column_text(statement, 1)]; [studentArray addObject:newStudent]; } } return studentArray; } i am having a problem on how to add this array to my textfields so that when i click on the button my textfields are loaded with the values from the database for particular userid.i have written the above function in one controller and my textfields are defined in another controller.So how to set the above array to my textfields.Please help me in solving this problem.Thanks
0
11,450,966
07/12/2012 11:35:43
1,138,457
01/09/2012 10:30:26
356
22
How to run an application a system / root in android
I've been searching about this topic but I haven't found a clear solution yet. As far as I know, you can specify different **protectionLevel** in your **AndroidManifest.xml**, those permissions allow other applications to interact with the one you are developing. As an example, imagine that I want to kill a processes, that is not mine (from another package) or that I want to install a driver I've developed. In both cases the problem is the same, those things need to be run as a system / root. How can I develop programs that require system / root permissions, do I need an special license? **Note:** Please, note that granting the permission: <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/> Using `android:sharedUserId="android.uid.system"` does not work either. Also, consider that I cannot ask the users to have their mobiles "rooted". Thanks in advance.
android
security
permissions
system
root
null
open
How to run an application a system / root in android === I've been searching about this topic but I haven't found a clear solution yet. As far as I know, you can specify different **protectionLevel** in your **AndroidManifest.xml**, those permissions allow other applications to interact with the one you are developing. As an example, imagine that I want to kill a processes, that is not mine (from another package) or that I want to install a driver I've developed. In both cases the problem is the same, those things need to be run as a system / root. How can I develop programs that require system / root permissions, do I need an special license? **Note:** Please, note that granting the permission: <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/> Using `android:sharedUserId="android.uid.system"` does not work either. Also, consider that I cannot ask the users to have their mobiles "rooted". Thanks in advance.
0
7,848,500
10/21/2011 11:02:19
416,169
08/10/2010 13:07:54
28
0
Iterating through Simple XML nested XML elements
Below is my XML tree SimpleXMLElement Object ( [test] => SimpleXMLElement Object ( [testnew] => SimpleXMLElement Object ( [Cost1] => 0 [Cost2] => 0 [Cost3] => 296.40000 ) ) } I am having trouble iterating through all the elements in the "testnew" in one go //iterate through xml object foreach( $xml->{'test'}->{'testnew'} as $test ) { echo $test; } The above doesn't seem to work. How can I do this? Cheers
php
simplexml
null
null
null
11/14/2011 17:17:58
not a real question
Iterating through Simple XML nested XML elements === Below is my XML tree SimpleXMLElement Object ( [test] => SimpleXMLElement Object ( [testnew] => SimpleXMLElement Object ( [Cost1] => 0 [Cost2] => 0 [Cost3] => 296.40000 ) ) } I am having trouble iterating through all the elements in the "testnew" in one go //iterate through xml object foreach( $xml->{'test'}->{'testnew'} as $test ) { echo $test; } The above doesn't seem to work. How can I do this? Cheers
1
6,907,398
08/02/2011 04:51:53
844,365
07/14/2011 10:42:43
14
0
Publishing App in Android Market
I have published an app in the Android Market yesterday. It has been more than 15 overs since I have activated and published the app. But still I am not able to see my app in the market. I tried with the format : http://market.android.com/details?id=com.android.example Also I searched with the app name. Is it that, it takes time to become available in the market or is there could be any other issue ? Please guide. Regards, Shankar
android
null
null
null
null
08/02/2011 21:30:32
off topic
Publishing App in Android Market === I have published an app in the Android Market yesterday. It has been more than 15 overs since I have activated and published the app. But still I am not able to see my app in the market. I tried with the format : http://market.android.com/details?id=com.android.example Also I searched with the app name. Is it that, it takes time to become available in the market or is there could be any other issue ? Please guide. Regards, Shankar
2
981,298
06/11/2009 14:04:57
107,834
05/15/2009 17:17:13
56
3
best IDE software for Windows?
Anyone got reccomendations for the best IDE software for a windows powered computer? I want text editor, css editor, ftp, live preview if poss, and it should also be able to handle php and javascript. Any suggestions? What do you use and what is awesome!
ide
work-environment
development-environment
null
null
09/02/2011 14:14:09
not constructive
best IDE software for Windows? === Anyone got reccomendations for the best IDE software for a windows powered computer? I want text editor, css editor, ftp, live preview if poss, and it should also be able to handle php and javascript. Any suggestions? What do you use and what is awesome!
4
1,591,030
10/19/2009 20:42:39
29,290
10/18/2008 20:38:12
2,007
76
Delphi - unmangle names in BPL's
Is it possible to unmangle names like these in Delphi? If so, where do I get more information? Example of an error message where it cannot find a certain entry in the dbrtl100.bpl I want to know which exact function it cannot find (unit, class, name, parameters, etc). --------------------------- myApp.exe - Entry Point Not Found --------------------------- The procedure entry point @Dbcommon@GetTableNameFromSQLEx$qqrx17System@WideString25Dbcommon@IDENTIFIEROption could not be located in the dynamic link library dbrtl100.bpl. --------------------------- OK --------------------------- I guess it is the method GetTableNameFromSQLEx in the Dbcommon unit. But what parameters does it have (i.e. which potential overload)? What return type does it have? Is this mangling the same for any Delphi version? --jeroen
delphi
bpl
name-mangling
null
null
null
open
Delphi - unmangle names in BPL's === Is it possible to unmangle names like these in Delphi? If so, where do I get more information? Example of an error message where it cannot find a certain entry in the dbrtl100.bpl I want to know which exact function it cannot find (unit, class, name, parameters, etc). --------------------------- myApp.exe - Entry Point Not Found --------------------------- The procedure entry point @Dbcommon@GetTableNameFromSQLEx$qqrx17System@WideString25Dbcommon@IDENTIFIEROption could not be located in the dynamic link library dbrtl100.bpl. --------------------------- OK --------------------------- I guess it is the method GetTableNameFromSQLEx in the Dbcommon unit. But what parameters does it have (i.e. which potential overload)? What return type does it have? Is this mangling the same for any Delphi version? --jeroen
0
8,181,353
11/18/2011 11:02:41
1,053,621
11/18/2011 10:50:28
1
0
How to upgrade/update a C application with newer version
My application is in c language. I have to add a functionality in my application so that it should be able to upgrade itself according to the latest version.More specifically it should recognize if any newer version is found and get updated with that newer version (according to the new executable). There may be situations like schema of database may get changed in the newer version. So what provision can i give in my code so that it can recognize the new executable and upgrade itself according to that ? Platform : linux , gcc compiler Thanks in advance .
c++
c
gcc
null
null
11/18/2011 21:21:03
not constructive
How to upgrade/update a C application with newer version === My application is in c language. I have to add a functionality in my application so that it should be able to upgrade itself according to the latest version.More specifically it should recognize if any newer version is found and get updated with that newer version (according to the new executable). There may be situations like schema of database may get changed in the newer version. So what provision can i give in my code so that it can recognize the new executable and upgrade itself according to that ? Platform : linux , gcc compiler Thanks in advance .
4
1,197,917
07/29/2009 03:30:01
133,392
07/05/2009 16:42:32
47
0
cakephp VS codeigniter VS zend framework
Which one is better? In my case, I would like the following: Lesser code to write, have really strong library and plugin base. Always have new library etc added in from contributor, eg: google map and etc... Ease and speed. Ability to use together with the templating system like smarty. Have ACL that can control all the permission level issue. Flexibility to modify certain parameters in related to library. Flexibility to write plugins. Load class when needed, unload when not needed. Load class once and use globally. Can run in windows environment (I am using xampp to run my php in windows.) After the site done, I will upload all codes into windows 2008 server (using php 5)
codeigniter
vs
cakephp
zend
null
08/29/2011 19:57:05
not constructive
cakephp VS codeigniter VS zend framework === Which one is better? In my case, I would like the following: Lesser code to write, have really strong library and plugin base. Always have new library etc added in from contributor, eg: google map and etc... Ease and speed. Ability to use together with the templating system like smarty. Have ACL that can control all the permission level issue. Flexibility to modify certain parameters in related to library. Flexibility to write plugins. Load class when needed, unload when not needed. Load class once and use globally. Can run in windows environment (I am using xampp to run my php in windows.) After the site done, I will upload all codes into windows 2008 server (using php 5)
4
10,597,368
05/15/2012 09:00:33
1,307,927
04/02/2012 11:44:55
21
0
Accessing hyperlink in SharePoint custom list using Javascript
I have a SharePoint 2007 custom list and one of the columns in that is a __"Hyper Link or Picture"__ field. My requirement is, if the field URL contains year that is less than 2009, I need to set the Url to "#". As our business requirement needs all the records lesser than 2009 are considered for archieve, hence the hyper link needs to be removed. ![enter image description here][1] How to read the URL for every hyper link and make it "#" if the hyper link contains 2008 using Javascript / JQuery? The custom list is added as a web part (Screenshot attached). Your answer is well appreciated. Thanks, Sriram [1]: http://i.stack.imgur.com/mR9VQ.png
sharepoint2007
null
null
null
null
null
open
Accessing hyperlink in SharePoint custom list using Javascript === I have a SharePoint 2007 custom list and one of the columns in that is a __"Hyper Link or Picture"__ field. My requirement is, if the field URL contains year that is less than 2009, I need to set the Url to "#". As our business requirement needs all the records lesser than 2009 are considered for archieve, hence the hyper link needs to be removed. ![enter image description here][1] How to read the URL for every hyper link and make it "#" if the hyper link contains 2008 using Javascript / JQuery? The custom list is added as a web part (Screenshot attached). Your answer is well appreciated. Thanks, Sriram [1]: http://i.stack.imgur.com/mR9VQ.png
0
34,234
08/29/2008 09:19:31
1,114
08/12/2008 12:54:42
35
6
GPG: How does key signing work and how is it done?
I've been reading various tutorials about GPG, and many of them mention that keys may be signed by other people to verify their authenticity. Unfortunately, I have been unable to find information regarding exactly how this process works. How does one sign a key, and how is the signed key used (different from the previous key)? Thank you.
gpg
null
null
null
null
null
open
GPG: How does key signing work and how is it done? === I've been reading various tutorials about GPG, and many of them mention that keys may be signed by other people to verify their authenticity. Unfortunately, I have been unable to find information regarding exactly how this process works. How does one sign a key, and how is the signed key used (different from the previous key)? Thank you.
0
8,188,138
11/18/2011 19:38:04
1,054,502
11/18/2011 19:34:31
1
0
Can't redirect non-existent php pages to 404
Ok so I have some non-existent php pages that I would like to send a 404 response for. I can get it working for non-existent html pages but not the php pages. Any thoughts? http://stackoverflow.com/questions/2137912/htaccess-and-custom-errordocument-for-different-file-types
php
http-status-code-404
null
null
null
11/22/2011 06:25:29
not a real question
Can't redirect non-existent php pages to 404 === Ok so I have some non-existent php pages that I would like to send a 404 response for. I can get it working for non-existent html pages but not the php pages. Any thoughts? http://stackoverflow.com/questions/2137912/htaccess-and-custom-errordocument-for-different-file-types
1
6,832,927
07/26/2011 15:55:34
1,088,570
07/05/2011 21:41:11
107
0
Mysql syntax help -- Update
I have 1500 rows and i want to update all the rows with a constant value(Varchar) This can done using UPDATE command in Mysql but i am not sure about the syntax for that.. Thanks in advance.
mysql
null
null
null
null
07/27/2011 10:40:03
not a real question
Mysql syntax help -- Update === I have 1500 rows and i want to update all the rows with a constant value(Varchar) This can done using UPDATE command in Mysql but i am not sure about the syntax for that.. Thanks in advance.
1
4,838,254
01/29/2011 17:20:31
595,128
01/29/2011 17:20:31
1
0
Formal language set is superset of regular languages set? please explain it.
Formal language set is superset of regular languages set? please explain it.
.net
null
null
null
null
01/29/2011 17:26:22
not a real question
Formal language set is superset of regular languages set? please explain it. === Formal language set is superset of regular languages set? please explain it.
1
7,606,051
09/30/2011 04:47:14
124,061
06/17/2009 03:41:02
2,221
111
Google Protocol buffers in client/server when have different packet type
I want to use protocol buffers in tcp/ip communication, but i may have different packets to send/receive, how can i differentiate the package types over protocol buffers, it seems I have to know the next packet type to use protocol buffer, but in my case, i may don't know the type in advance. any idea?
protocol-buffers
null
null
null
null
10/03/2011 11:58:13
not a real question
Google Protocol buffers in client/server when have different packet type === I want to use protocol buffers in tcp/ip communication, but i may have different packets to send/receive, how can i differentiate the package types over protocol buffers, it seems I have to know the next packet type to use protocol buffer, but in my case, i may don't know the type in advance. any idea?
1
6,149,641
05/27/2011 08:23:33
219,609
11/26/2009 18:13:57
768
9
Design pattern for multiple view states?
I have an application that takes the user through a set of steps, configuring a product, say about 10+ screens. With options to go back, skip to a certain point etc. I need to fade between these steps, and also have language switches available at any point. I was thinking of using an MVC style pattern, having a master view that accepts a ‘next view’ and fades it in, removing the old. It feels bloated to have 10+ separate view classes, using similar components for this task, so was wondering **what other approaches there are that I should look into? or one that is suited for this kind of application**
actionscript-3
mvc
design-patterns
user-interface
view
null
open
Design pattern for multiple view states? === I have an application that takes the user through a set of steps, configuring a product, say about 10+ screens. With options to go back, skip to a certain point etc. I need to fade between these steps, and also have language switches available at any point. I was thinking of using an MVC style pattern, having a master view that accepts a ‘next view’ and fades it in, removing the old. It feels bloated to have 10+ separate view classes, using similar components for this task, so was wondering **what other approaches there are that I should look into? or one that is suited for this kind of application**
0
9,773,722
03/19/2012 16:12:48
141,835
07/21/2009 07:53:45
1,508
60
N2CMS - The resource cannot be found
I have created `news container` and `news page` templates. In edit mode, for some pages I get 404 error message. All `news pages` belong to the same node so I'm wondering why some of them throw an exception and others are displayed correctly? I'm using ASP.NET MVC 3 with Razor view engine. Any help would be greatly appreciated!
n2
n2cms
null
null
null
null
open
N2CMS - The resource cannot be found === I have created `news container` and `news page` templates. In edit mode, for some pages I get 404 error message. All `news pages` belong to the same node so I'm wondering why some of them throw an exception and others are displayed correctly? I'm using ASP.NET MVC 3 with Razor view engine. Any help would be greatly appreciated!
0
495,335
01/30/2009 12:18:29
23,087
09/27/2008 23:32:12
26
4
Plugin dependency best practices
We have an application supporting plugins via interfaces. On the other side plugins contain lots of logic and code in themselves. Plugins have dependencies (project and dll references) to application libraries beside the interfaces that application exposes. Application core libraries have lots of reusable components that can be used in plugins. But if any of these components change in anyway, both the plugins and application are affected, as both have dependencies. Is it acceptable to have plugins containing dependencies on the system, that plugins extend? What are the best practices on this issue? Please share your thoughts and experiences.
plugins
dependencies
null
null
null
05/27/2012 14:35:48
not constructive
Plugin dependency best practices === We have an application supporting plugins via interfaces. On the other side plugins contain lots of logic and code in themselves. Plugins have dependencies (project and dll references) to application libraries beside the interfaces that application exposes. Application core libraries have lots of reusable components that can be used in plugins. But if any of these components change in anyway, both the plugins and application are affected, as both have dependencies. Is it acceptable to have plugins containing dependencies on the system, that plugins extend? What are the best practices on this issue? Please share your thoughts and experiences.
4
7,384,639
09/12/2011 07:35:29
892,510
08/12/2011 21:40:21
6
0
Wrapping text in spinner android
I have long text that I want to put in a few, but not all, items in a spinner. Tried using the answer [here][1] but was not able to get it to work. I created and saved multiline_spinner_dropdown_item.xml in res/layout directory but still get an error "multiline_spinner_dropdown_item cannot be resolved" in Eclipse. [1]: http://stackoverflow.com/questions/6107500/how-to-wrap-lengthy-text-in-a-spinner
android
spinner
wrap
null
null
null
open
Wrapping text in spinner android === I have long text that I want to put in a few, but not all, items in a spinner. Tried using the answer [here][1] but was not able to get it to work. I created and saved multiline_spinner_dropdown_item.xml in res/layout directory but still get an error "multiline_spinner_dropdown_item cannot be resolved" in Eclipse. [1]: http://stackoverflow.com/questions/6107500/how-to-wrap-lengthy-text-in-a-spinner
0
6,035,176
05/17/2011 18:07:52
753,202
05/14/2011 01:03:46
3
0
Call class method from non-class method
The following piece of code refuses to compile because the method: "FollowPlayer" is a class method with class level access. How do I correctly allow NSTimer to call +(void)FollowPlayer? - (void)awakeFromNib{zombie_size=4; timer=[NSTimer scheduledTimerWithInterval: 1.0 target:self selector:@selector(FollowPlayer) userInfo:nil repeats: NO];} + (void)FollowPlayer: NSTimer{}
objective-c
methods
nstimer
class-method
null
null
open
Call class method from non-class method === The following piece of code refuses to compile because the method: "FollowPlayer" is a class method with class level access. How do I correctly allow NSTimer to call +(void)FollowPlayer? - (void)awakeFromNib{zombie_size=4; timer=[NSTimer scheduledTimerWithInterval: 1.0 target:self selector:@selector(FollowPlayer) userInfo:nil repeats: NO];} + (void)FollowPlayer: NSTimer{}
0
9,812,669
03/21/2012 20:52:58
1,151,521
01/16/2012 09:07:11
164
12
Silverlight on Mac - how to debug a Memory Leak?
I've written a Silverlight app that works as an uploader for Amazon's S3. It works fine on PC, but on Mac it has a huge memory leak. The problem: I don't know how to debug it. WinDbg, the top Google suggestion, obviously is out. I don't think I can get a clue from inside of VS (when connected via remote debugging). And I haven't checked, but I don't imagine Mac OS debuggers will be useful. The specific behavior is that as the file uploads, it stays in memory. Since files can be several GB in size, they can use up all memory and cause Silverlight to crash. I suppose it may be a bug in Silverlight, but maybe I can find a workaround if I knew the exact problem. On Windows there is also a confirmed bug https://connect.microsoft.com/VisualStudio/feedback/details/674960/writing-to-ms-internal-internalwebrequeststream-deadlocks-when-host-closes-request-stream#details that noone wants to fix. That's what I get for using a technology what's been disowned by its maker, I guess.
silverlight
osx
memory-leaks
null
null
null
open
Silverlight on Mac - how to debug a Memory Leak? === I've written a Silverlight app that works as an uploader for Amazon's S3. It works fine on PC, but on Mac it has a huge memory leak. The problem: I don't know how to debug it. WinDbg, the top Google suggestion, obviously is out. I don't think I can get a clue from inside of VS (when connected via remote debugging). And I haven't checked, but I don't imagine Mac OS debuggers will be useful. The specific behavior is that as the file uploads, it stays in memory. Since files can be several GB in size, they can use up all memory and cause Silverlight to crash. I suppose it may be a bug in Silverlight, but maybe I can find a workaround if I knew the exact problem. On Windows there is also a confirmed bug https://connect.microsoft.com/VisualStudio/feedback/details/674960/writing-to-ms-internal-internalwebrequeststream-deadlocks-when-host-closes-request-stream#details that noone wants to fix. That's what I get for using a technology what's been disowned by its maker, I guess.
0
9,621,601
03/08/2012 16:56:56
1,108,042
12/20/2011 14:32:41
3
0
Android: Getting bundle string to create sqlite database table
Thanks for your time in reading my question. I plan to write an app that allow the user to select the table columns to perform a full text search. Therefore, I get the user input into bundle string and try to pass this into the SQLiteOpenHelper. However, the SQLOpenHelper is unable to get the string. My code snippet is as follows: ActivityA.java public class ActivityA extends Activity { ... //get the selected dropdown list value public void addListenerOnButton(final Spinner sp1, final Spinner sp2, final MultiSpinner msp1, final MultiSpinner msp2) { btnSubmit = (Button) findViewById(R.id.btnSubmit); btnSubmit.setOnClickListener(new OnClickListener() { //@Override public void onClick(View v) { strpkey = String.valueOf(sp1.getSelectedItem()); strskey = String.valueOf(sp2.getSelectedItem()); stronscreen = String.valueOf(msp1.getSelectedItem()); strwhenclick = String.valueOf(msp2.getSelectedItem()); Intent intent = new Intent(); intent.setClass(ActivityA.this, ActivityB.class); Bundle bundle = new Bundle(); bundle.putString("Pkey", strpkey); bundle.putString("Skey", strskey); bundle.putString("Onscreen", stronscreen); bundle.putString("Whenclick", strwhenclick); intent.putExtras(bundle); startActivity(intent); } Note: I am able to get the bundle string in ActivityB so I don't think the problem lies in ActivityA. ActivityB.java public class ActivityB extends Activity { public String strpkey, strskey; public String stronscreen; private DbAdapter dbHelper; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.countsheet); strpkey = getfilepath("Pkey"); strskey = getfilepath("Skey"); stronscreen = getfilepath("Onscreen"); Toast.makeText(this, strpkey + " " + strskey + " " + stronscreen, Toast.LENGTH_LONG).show(); dbHelper = new DbAdapter(this); dbHelper.open(); public String getfilepath(String strbundletext) { Bundle bundle = this.getIntent().getExtras(); String csvpath = bundle.getString(strbundletext); return csvpath; } ... } DBAdapter.java import com.ksgrp.stocktake.ActivityB; public class DbAdapter { public static class DatabaseHelper extends SQLiteOpenHelper { public ListDesign csobj2 = new ListDesign(); public String pkey = csobj2.strpkey; private String skey = csobj2.strskey; public String onscreen = csobj2.stronscreen; private String getstr(String pkey, String skey) { ActivityB csobj = new ActivityB(); String pkey = csobj.strpkey; String skey = csobj.strskey; String onscreen = csobj.stronscreen; String sqlstr = "CREATE VIRTUAL TABLE " + vdb_tbl + " USING fts3(" + sqlstr + ")"; return sqlstr; } //@Override public void onCreate(SQLiteDatabase db) { // TODO Auto-generated method stub String strsql = getstr(this.pkey, this.skey); db.execSQL("DROP TABLE IF EXISTS " + vdb_tbl); db.execSQL(strsql); Log.w("TAG", strsql); } } I got a java null pointer exception when I click the button in ActivityA: 03-08 14:04:31.569: E/AndroidRuntime(29573): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ksgrp.stocktake/com.ksgrp.stocktake.ActivityB}: android.database.sqlite.SQLiteException: vtable constructor failed: stocklist2: CREATE VIRTUAL TABLE stocklist2 USING fts3(null, null) I believe I am unable to get the value in the bundle string into the DBAdapter class. Can anyone give me a hand on this? I can provide the full code (but it is lengthy so I just extract the relevant above). Thanks again.
android
sqlite
null
null
null
null
open
Android: Getting bundle string to create sqlite database table === Thanks for your time in reading my question. I plan to write an app that allow the user to select the table columns to perform a full text search. Therefore, I get the user input into bundle string and try to pass this into the SQLiteOpenHelper. However, the SQLOpenHelper is unable to get the string. My code snippet is as follows: ActivityA.java public class ActivityA extends Activity { ... //get the selected dropdown list value public void addListenerOnButton(final Spinner sp1, final Spinner sp2, final MultiSpinner msp1, final MultiSpinner msp2) { btnSubmit = (Button) findViewById(R.id.btnSubmit); btnSubmit.setOnClickListener(new OnClickListener() { //@Override public void onClick(View v) { strpkey = String.valueOf(sp1.getSelectedItem()); strskey = String.valueOf(sp2.getSelectedItem()); stronscreen = String.valueOf(msp1.getSelectedItem()); strwhenclick = String.valueOf(msp2.getSelectedItem()); Intent intent = new Intent(); intent.setClass(ActivityA.this, ActivityB.class); Bundle bundle = new Bundle(); bundle.putString("Pkey", strpkey); bundle.putString("Skey", strskey); bundle.putString("Onscreen", stronscreen); bundle.putString("Whenclick", strwhenclick); intent.putExtras(bundle); startActivity(intent); } Note: I am able to get the bundle string in ActivityB so I don't think the problem lies in ActivityA. ActivityB.java public class ActivityB extends Activity { public String strpkey, strskey; public String stronscreen; private DbAdapter dbHelper; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.countsheet); strpkey = getfilepath("Pkey"); strskey = getfilepath("Skey"); stronscreen = getfilepath("Onscreen"); Toast.makeText(this, strpkey + " " + strskey + " " + stronscreen, Toast.LENGTH_LONG).show(); dbHelper = new DbAdapter(this); dbHelper.open(); public String getfilepath(String strbundletext) { Bundle bundle = this.getIntent().getExtras(); String csvpath = bundle.getString(strbundletext); return csvpath; } ... } DBAdapter.java import com.ksgrp.stocktake.ActivityB; public class DbAdapter { public static class DatabaseHelper extends SQLiteOpenHelper { public ListDesign csobj2 = new ListDesign(); public String pkey = csobj2.strpkey; private String skey = csobj2.strskey; public String onscreen = csobj2.stronscreen; private String getstr(String pkey, String skey) { ActivityB csobj = new ActivityB(); String pkey = csobj.strpkey; String skey = csobj.strskey; String onscreen = csobj.stronscreen; String sqlstr = "CREATE VIRTUAL TABLE " + vdb_tbl + " USING fts3(" + sqlstr + ")"; return sqlstr; } //@Override public void onCreate(SQLiteDatabase db) { // TODO Auto-generated method stub String strsql = getstr(this.pkey, this.skey); db.execSQL("DROP TABLE IF EXISTS " + vdb_tbl); db.execSQL(strsql); Log.w("TAG", strsql); } } I got a java null pointer exception when I click the button in ActivityA: 03-08 14:04:31.569: E/AndroidRuntime(29573): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ksgrp.stocktake/com.ksgrp.stocktake.ActivityB}: android.database.sqlite.SQLiteException: vtable constructor failed: stocklist2: CREATE VIRTUAL TABLE stocklist2 USING fts3(null, null) I believe I am unable to get the value in the bundle string into the DBAdapter class. Can anyone give me a hand on this? I can provide the full code (but it is lengthy so I just extract the relevant above). Thanks again.
0
6,427,458
06/21/2011 15:01:29
755,285
05/16/2011 07:42:12
6
1
click ImageButton
I have one question. There are 4 ImageButtons(a1, a2 and b1, b2). You can chose only a1 or a2 and never both at the same time. Should I check each click on these buttons? How can I do this? Can anyone help me?
click
imagebutton
null
null
null
null
open
click ImageButton === I have one question. There are 4 ImageButtons(a1, a2 and b1, b2). You can chose only a1 or a2 and never both at the same time. Should I check each click on these buttons? How can I do this? Can anyone help me?
0
6,720,290
07/16/2011 21:18:19
526,021
12/01/2010 03:33:00
23
0
User generated external link
Im creating an user profile page, which gives them the option of adding a link to their personal website. How can I create a link to their website? I want to do something like this ` <a href="user.website_link">Twitter<a/>` but that takes them to an external link... Thanks in advance.
ruby-on-rails
ruby
null
null
null
07/08/2012 00:48:47
not a real question
User generated external link === Im creating an user profile page, which gives them the option of adding a link to their personal website. How can I create a link to their website? I want to do something like this ` <a href="user.website_link">Twitter<a/>` but that takes them to an external link... Thanks in advance.
1
8,965,265
01/22/2012 22:23:07
1,107,412
12/20/2011 08:38:33
32
0
Fix an ad-hoc network hosted by a Windows XP machine (problems with MTU)
I have the following problem. I use an old Windows XP laptop as some sort of a wireless router by creating an ad-hoc wireless network. It works OK with my Win7 laptop, but when I brought my MacBook Pro from work I realized that although it finds and connects to the network, all it could actually show were a few Google services, and nothing else. Someone told me that I should experiment with reducing the MTU on the Mac. I did so and it worked - I reduced it from 1500 to 1272 and it worked. the problem is still that another WinXP machine has basically the same accessibility problems as the MacBook had, and there I cannot really mess with the MTU settings. Same applies for my iPod touch, which I have to jailbreak in order to mess with the MTU. Plus, the MacBook occasionally goes back to 1500 by itself, and it is very annoying to reset it every single time. The strangest thing is that I created this ad-hoc network in the most standard way possible (using the XP wizards), without making ay funky configuration or something. Yet, as it seems, it doesn't even allow a Win XP machine to connect to another Win XP machine. Please, help. I really need to use this laptop as a router, and currently buying a standard WiFi one is not an option.
windows-7
windows-xp
wifi
adhoc
mtu
null
open
Fix an ad-hoc network hosted by a Windows XP machine (problems with MTU) === I have the following problem. I use an old Windows XP laptop as some sort of a wireless router by creating an ad-hoc wireless network. It works OK with my Win7 laptop, but when I brought my MacBook Pro from work I realized that although it finds and connects to the network, all it could actually show were a few Google services, and nothing else. Someone told me that I should experiment with reducing the MTU on the Mac. I did so and it worked - I reduced it from 1500 to 1272 and it worked. the problem is still that another WinXP machine has basically the same accessibility problems as the MacBook had, and there I cannot really mess with the MTU settings. Same applies for my iPod touch, which I have to jailbreak in order to mess with the MTU. Plus, the MacBook occasionally goes back to 1500 by itself, and it is very annoying to reset it every single time. The strangest thing is that I created this ad-hoc network in the most standard way possible (using the XP wizards), without making ay funky configuration or something. Yet, as it seems, it doesn't even allow a Win XP machine to connect to another Win XP machine. Please, help. I really need to use this laptop as a router, and currently buying a standard WiFi one is not an option.
0
11,082,089
06/18/2012 11:43:15
1,442,072
06/07/2012 11:27:08
1
0
C# crystal report root.substring(0,root.length-10)
**hi everyone plz help me out , i can't understand these 2 lines and why we cut the root with substring (sorry for my english) root=AppDomain.CurrentDomain.BaseDirectory; C.FileName = root.Substring(0, root.Length - 10) + "etat_selection_formula.rpt";**
c#
null
null
null
null
06/19/2012 08:46:34
not a real question
C# crystal report root.substring(0,root.length-10) === **hi everyone plz help me out , i can't understand these 2 lines and why we cut the root with substring (sorry for my english) root=AppDomain.CurrentDomain.BaseDirectory; C.FileName = root.Substring(0, root.Length - 10) + "etat_selection_formula.rpt";**
1
7,162,133
08/23/2011 13:56:39
349,223
05/24/2010 18:49:03
345
2
CSS Best Approach for 2 backgrounds?
I have a design that has some images across the top 25% of the background then it is just a simple gradient I can repeat for the rest. What is the best approach to have the Images on the top, then fill out the rest of the page with the gradient? I took this approach: html{ background: #cac2ac url("../img/body-bg.gif") repeat-y 50% 0; } body { text-align: center; font-family: Arial; line-height: 1; width: 100%; background: transparent url("../img/body-img-bg.jpg") no-repeat 50% 24px; } But in one implementation of the code the background image for HTML is not appearing? Any help?
html
css
background-image
null
null
null
open
CSS Best Approach for 2 backgrounds? === I have a design that has some images across the top 25% of the background then it is just a simple gradient I can repeat for the rest. What is the best approach to have the Images on the top, then fill out the rest of the page with the gradient? I took this approach: html{ background: #cac2ac url("../img/body-bg.gif") repeat-y 50% 0; } body { text-align: center; font-family: Arial; line-height: 1; width: 100%; background: transparent url("../img/body-img-bg.jpg") no-repeat 50% 24px; } But in one implementation of the code the background image for HTML is not appearing? Any help?
0
9,418,395
02/23/2012 17:50:04
828,583
07/04/2011 18:33:35
6
0
CakePhp2 autocomplete (jquery-ui folding) not working without ajax, only with array of available inputs
I am using **cakephp2**. I want to make **autocomplete in cakephp2**, but not with ajax, it is array where are autocomplete`s available inputs. I have simple LocationsController (not important but i enclosed it) where i have: class LocationsController extends AppController { public $name = 'Locations'; public function index() { $this->set('title_for_layout', 'Example - title'); } } I have a view/locations/**index.ctp** where i Have <div id="big_input_normal" > <form> <input type="text" id="the_big_one" class="big_input_selection" /> </form> </div> <script> $(function() { var names = [ "Bratislava", "Praque", "Trstena" ]; var accentMap = { "á": "a", "ö": "o", "é": "e" }; var normalize = function( term ) { var ret = ""; for ( var i = 0; i < term.length; i++ ) { ret += accentMap[ term.charAt(i) ] || term.charAt(i); } return ret; }; $( "#the_big_one" ).autocomplete({ source: function( request, response ) { var matcher = new RegExp( $.ui.autocomplete.escapeRegex( request.term ), "i" ); response( $.grep( names, function( value ) { value = value.label || value.value || value; return matcher.test( value ) || matcher.test( normalize( value ) ); }) ); } }); }); </script> Ofcourse i have included in head : <script src="./app/webroot/js/jquery-1.7.1.js"></script> <script src="./app/webroot/js/jquery.ui.core.js"></script> <script src="./app/webroot/js/jquery.ui.widget.js"></script> <script src="./app/webroot/js/jquery.ui.position.js"></script> <script src="./app/webroot/js/jquery.ui.autocomplete.js"></script> **To sum up:** I am using CAKEPHP2 (it is version 2 NOT 1.3), I want to make autocomplete with jquery, i downloaded jquery-ui and i have followed the examples folding http://jqueryui.com/demos/autocomplete/ I have made it, have a look at example codes, but there is a problem, it DOES NOT WORK. Javascripts are after the page to client is rendered defaultly blocked ? Or where is the problem? Please help me, am losing my mind with this primitive problem.
javascript
jquery-ui
jquery-ui-autocomplete
cakephp-2.0
null
null
open
CakePhp2 autocomplete (jquery-ui folding) not working without ajax, only with array of available inputs === I am using **cakephp2**. I want to make **autocomplete in cakephp2**, but not with ajax, it is array where are autocomplete`s available inputs. I have simple LocationsController (not important but i enclosed it) where i have: class LocationsController extends AppController { public $name = 'Locations'; public function index() { $this->set('title_for_layout', 'Example - title'); } } I have a view/locations/**index.ctp** where i Have <div id="big_input_normal" > <form> <input type="text" id="the_big_one" class="big_input_selection" /> </form> </div> <script> $(function() { var names = [ "Bratislava", "Praque", "Trstena" ]; var accentMap = { "á": "a", "ö": "o", "é": "e" }; var normalize = function( term ) { var ret = ""; for ( var i = 0; i < term.length; i++ ) { ret += accentMap[ term.charAt(i) ] || term.charAt(i); } return ret; }; $( "#the_big_one" ).autocomplete({ source: function( request, response ) { var matcher = new RegExp( $.ui.autocomplete.escapeRegex( request.term ), "i" ); response( $.grep( names, function( value ) { value = value.label || value.value || value; return matcher.test( value ) || matcher.test( normalize( value ) ); }) ); } }); }); </script> Ofcourse i have included in head : <script src="./app/webroot/js/jquery-1.7.1.js"></script> <script src="./app/webroot/js/jquery.ui.core.js"></script> <script src="./app/webroot/js/jquery.ui.widget.js"></script> <script src="./app/webroot/js/jquery.ui.position.js"></script> <script src="./app/webroot/js/jquery.ui.autocomplete.js"></script> **To sum up:** I am using CAKEPHP2 (it is version 2 NOT 1.3), I want to make autocomplete with jquery, i downloaded jquery-ui and i have followed the examples folding http://jqueryui.com/demos/autocomplete/ I have made it, have a look at example codes, but there is a problem, it DOES NOT WORK. Javascripts are after the page to client is rendered defaultly blocked ? Or where is the problem? Please help me, am losing my mind with this primitive problem.
0
2,310,563
02/22/2010 11:35:29
278,636
02/22/2010 11:35:29
1
0
Python Virtualbox API
[http://enomalism.com/api/pyvb/pyvb.vm.vbVM-class.html][1] there is a parameter **kw in __init__(self, **kw) what is it? [1]: http://enomalism.com/api/pyvb/pyvb.vm.vbVM-class.html
python
null
null
null
null
null
open
Python Virtualbox API === [http://enomalism.com/api/pyvb/pyvb.vm.vbVM-class.html][1] there is a parameter **kw in __init__(self, **kw) what is it? [1]: http://enomalism.com/api/pyvb/pyvb.vm.vbVM-class.html
0
6,047,562
05/18/2011 15:55:37
658,500
03/14/2011 09:24:59
10
1
Creat menu from array need help???
Really need some help. i have got the following here. which is pulled from an array. [TheBeautifulSouth/2-15 One Last Love Song.m4a] => Array ( [name] => TheBeautifulSouth/2-15 One Last Love Song.m4a [time] => 1296612503 [size] => 7628998 [hash] => 4c6d9b19310ad53efccc5df2e0632e82 ) [TheBeautifulSouth/2-16 Mirror.m4a] => Array ( [name] => TheBeautifulSouth/2-16 Mirror.m4a [time] => 1296612568 [size] => 8418448 [hash] => ef371e227b410bb4c9ed1ff7f2d0d70e ) [TheBeautifulSouth/2-17 One God.m4a] => Array ( [name] => TheBeautifulSouth/2-17 One God.m4a [time] => 1296612639 [size] => 8619393 [hash] => 80f29fbef6f469e3f150f7011a320987 ) [TheBeautifulSouth/2-18 Blackbird On the Wire (Radio Ed.m4a] => Array ( [name] => TheBeautifulSouth/2-18 Blackbird On the Wire (Radio Ed.m4a [time] => 1296612712 [size] => 6776214 [hash] => fe13ced4b9fc26b013c241219c642095 ) [dnb/] => Array ( [name] => Music/dnb/ [time] => 1296576896 [size] => 0 [hash] => d41d8cd98f00b204e9800998ecf8427e ) [dnb/03 Twerk feat. Yo Majesty (Sub Focus Remix).mp3] => Array ( [name] => dnb/03 Twerk feat. Yo Majesty (Sub Focus Remix).mp3 [time] => 1296577218 [size] => 11782889 [hash] => 372e32ad1aff44061b65f5a76e7e805c ) [Music/dnb/21st Century (Feat. Cabbie)_Tantrum Desire_192.mp3] => Array ( [name] => dnb/21st Century (Feat. Cabbie)_Tantrum Desire_192.mp3 [time] => 1296577357 [size] => 8260946 [hash] => 7fda7e838192f5c362f71ffff300a8c3 ) [dnb/Abort_Delta Heavy_192.mp3] => Array ( [name] => dnb/Abort_Delta Heavy_192.mp3 [time] => 1296577451 [size] => 8080602 [hash] => bb71d713fd77746cd7debb39407ba88f ) here is the output. TheBeautifulSouth/2-15 One Last Love Song.m4anum2 TheBeautifulSouth/2-16 Mirror.m4anum2 TheBeautifulSouth/2-17 One God.m4anum2 TheBeautifulSouth/2-18 Blackbird On the Wire (Radio Ed.m4anum2 dnb/03 Twerk feat. Yo Majesty (Sub Focus Remix).mp3num2 dnb/21st Century (Feat. Cabbie)_Tantrum Desire_192.mp3num2 dnb/Better Place_Dub Zero_192.mp3num2 dnb/Body_Shot_Tantrum_Desire_192.mp3num2 now here is the really tricky part i am trying to put this into a menu structure as follows. <ul> <li> <ul> TheBeautifulSouth <li>2-15 One Last Love Song.m4anum2</li> <li>2-16 Mirror.m4anum2</li> <li>2-17 One God.m4anum2</li> <li>2-18 Blackbird On the Wire (Radio Ed.m4anum2</li> </ul> </li> <li> <ul> dnb <li>03 Twerk feat. Yo Majesty (Sub Focus Remix).mp3num2</li> <li>21st Century (Feat. Cabbie)_Tantrum Desire_192.mp3num2</li> <li>Better Place_Dub Zero_192.mp3num2</li> <li>Body_Shot_Tantrum_Desire_192.mp3num2</li> </ul> </li> </ul> my head hurts i am really struggling i am trying to use the php function strstr but cant figure it out. here is my code. which obviously is so wrong just really need some help. <ul> <li>list <ul> <?php foreach ($bucket_contents as $file){ $fname = $file['name']; $list = strstr($fname, '/', true); ?> <li><?php echo $list; ?></li> <?php } ?> </ul> </li> </ul>
php
arrays
menu
null
null
null
open
Creat menu from array need help??? === Really need some help. i have got the following here. which is pulled from an array. [TheBeautifulSouth/2-15 One Last Love Song.m4a] => Array ( [name] => TheBeautifulSouth/2-15 One Last Love Song.m4a [time] => 1296612503 [size] => 7628998 [hash] => 4c6d9b19310ad53efccc5df2e0632e82 ) [TheBeautifulSouth/2-16 Mirror.m4a] => Array ( [name] => TheBeautifulSouth/2-16 Mirror.m4a [time] => 1296612568 [size] => 8418448 [hash] => ef371e227b410bb4c9ed1ff7f2d0d70e ) [TheBeautifulSouth/2-17 One God.m4a] => Array ( [name] => TheBeautifulSouth/2-17 One God.m4a [time] => 1296612639 [size] => 8619393 [hash] => 80f29fbef6f469e3f150f7011a320987 ) [TheBeautifulSouth/2-18 Blackbird On the Wire (Radio Ed.m4a] => Array ( [name] => TheBeautifulSouth/2-18 Blackbird On the Wire (Radio Ed.m4a [time] => 1296612712 [size] => 6776214 [hash] => fe13ced4b9fc26b013c241219c642095 ) [dnb/] => Array ( [name] => Music/dnb/ [time] => 1296576896 [size] => 0 [hash] => d41d8cd98f00b204e9800998ecf8427e ) [dnb/03 Twerk feat. Yo Majesty (Sub Focus Remix).mp3] => Array ( [name] => dnb/03 Twerk feat. Yo Majesty (Sub Focus Remix).mp3 [time] => 1296577218 [size] => 11782889 [hash] => 372e32ad1aff44061b65f5a76e7e805c ) [Music/dnb/21st Century (Feat. Cabbie)_Tantrum Desire_192.mp3] => Array ( [name] => dnb/21st Century (Feat. Cabbie)_Tantrum Desire_192.mp3 [time] => 1296577357 [size] => 8260946 [hash] => 7fda7e838192f5c362f71ffff300a8c3 ) [dnb/Abort_Delta Heavy_192.mp3] => Array ( [name] => dnb/Abort_Delta Heavy_192.mp3 [time] => 1296577451 [size] => 8080602 [hash] => bb71d713fd77746cd7debb39407ba88f ) here is the output. TheBeautifulSouth/2-15 One Last Love Song.m4anum2 TheBeautifulSouth/2-16 Mirror.m4anum2 TheBeautifulSouth/2-17 One God.m4anum2 TheBeautifulSouth/2-18 Blackbird On the Wire (Radio Ed.m4anum2 dnb/03 Twerk feat. Yo Majesty (Sub Focus Remix).mp3num2 dnb/21st Century (Feat. Cabbie)_Tantrum Desire_192.mp3num2 dnb/Better Place_Dub Zero_192.mp3num2 dnb/Body_Shot_Tantrum_Desire_192.mp3num2 now here is the really tricky part i am trying to put this into a menu structure as follows. <ul> <li> <ul> TheBeautifulSouth <li>2-15 One Last Love Song.m4anum2</li> <li>2-16 Mirror.m4anum2</li> <li>2-17 One God.m4anum2</li> <li>2-18 Blackbird On the Wire (Radio Ed.m4anum2</li> </ul> </li> <li> <ul> dnb <li>03 Twerk feat. Yo Majesty (Sub Focus Remix).mp3num2</li> <li>21st Century (Feat. Cabbie)_Tantrum Desire_192.mp3num2</li> <li>Better Place_Dub Zero_192.mp3num2</li> <li>Body_Shot_Tantrum_Desire_192.mp3num2</li> </ul> </li> </ul> my head hurts i am really struggling i am trying to use the php function strstr but cant figure it out. here is my code. which obviously is so wrong just really need some help. <ul> <li>list <ul> <?php foreach ($bucket_contents as $file){ $fname = $file['name']; $list = strstr($fname, '/', true); ?> <li><?php echo $list; ?></li> <?php } ?> </ul> </li> </ul>
0
10,599,724
05/15/2012 11:25:49
773,625
05/27/2011 19:11:15
618
22
GUI testing framework for JavaFX 2
I'm currently reading the book [Growing Object-Oriented Software Guided by Tests][1] which gives a decent introduction into test driven development. One drawback is that the code developed through the book is based on Swing. For my next project I'd like to use Java FX 2 and I'm wondering if there are any GUI testing frameworks out there for it? The book introduces [windowlicker][2], which allows testing Swing applications only. [1]: http://growing-object-oriented-software.com/ [2]: http://code.google.com/p/windowlicker/
frameworks
tdd
javafx-2
gui-testing
null
null
open
GUI testing framework for JavaFX 2 === I'm currently reading the book [Growing Object-Oriented Software Guided by Tests][1] which gives a decent introduction into test driven development. One drawback is that the code developed through the book is based on Swing. For my next project I'd like to use Java FX 2 and I'm wondering if there are any GUI testing frameworks out there for it? The book introduces [windowlicker][2], which allows testing Swing applications only. [1]: http://growing-object-oriented-software.com/ [2]: http://code.google.com/p/windowlicker/
0
6,172,862
05/30/2011 06:15:24
748,515
05/11/2011 11:07:54
1
0
when should a Btree be used
When should a btree be used is there any advantage of using Btree ? and in real time which application uses btree? Note: Btree is not a binary tree
c
null
null
null
null
06/18/2011 18:22:48
not a real question
when should a Btree be used === When should a btree be used is there any advantage of using Btree ? and in real time which application uses btree? Note: Btree is not a binary tree
1
6,896,118
08/01/2011 08:53:41
145,567
07/27/2009 07:10:18
1,666
53
Basic Scala OOP question - pass by reference?
I'm a little stumped at how silly this problem is, but I thought I might ask anyway. I have an object Foo, with several fields. I want a method that can change any of it's fields depending on which one is passed in as a parameter. Like so: class Foo { var x = 0 var y = 0 } class Bar { def changeFooField(field : Int) = { field = 1 } } Can I not use it like so?: changeFooField(foo.x) If not, how do I accomplish this?
oop
scala
null
null
null
null
open
Basic Scala OOP question - pass by reference? === I'm a little stumped at how silly this problem is, but I thought I might ask anyway. I have an object Foo, with several fields. I want a method that can change any of it's fields depending on which one is passed in as a parameter. Like so: class Foo { var x = 0 var y = 0 } class Bar { def changeFooField(field : Int) = { field = 1 } } Can I not use it like so?: changeFooField(foo.x) If not, how do I accomplish this?
0
9,233,708
02/10/2012 19:33:58
1,202,792
02/10/2012 19:24:46
1
0
How to create a working array with images in Android?
I have been struggling to work with images using an array for my android application , i had created an array with a few images but even after i use a loop only 1 image gets loaded on the imageview i.e the last image present in the array so here only 'fourofclubs.png' is getting loaded. this is my code:- ImageView image1=(ImageView)findViewById(R.id.imageView1); int[] cardsdeck = { R.drawable.aceofclubs, R.drawable.deuceofclubs, R.drawable.threeofclubs, R.drawable.fourofclubs, }; for ( int i = 0; i < cardsdeck.length; i++ ) { image1.setImageResource(cardsdeck[i]); }
java
android
null
null
null
02/12/2012 06:11:46
not a real question
How to create a working array with images in Android? === I have been struggling to work with images using an array for my android application , i had created an array with a few images but even after i use a loop only 1 image gets loaded on the imageview i.e the last image present in the array so here only 'fourofclubs.png' is getting loaded. this is my code:- ImageView image1=(ImageView)findViewById(R.id.imageView1); int[] cardsdeck = { R.drawable.aceofclubs, R.drawable.deuceofclubs, R.drawable.threeofclubs, R.drawable.fourofclubs, }; for ( int i = 0; i < cardsdeck.length; i++ ) { image1.setImageResource(cardsdeck[i]); }
1
5,496,006
03/31/2011 06:24:20
581,866
01/19/2011 17:50:03
169
2
JSF Validation Required Fields
I'm using primefaces and their growl control in order to display validation error messages and I would like to use the required="true" but customize the message for each input component that uses the required="true". I know you can override the default require message and I know you can create a server side check and add a FacesMessage, but can you use required=true and customize the message? Right now it uses the id which doesn't work well for things "First Name"
jsf-2.0
primefaces
null
null
null
null
open
JSF Validation Required Fields === I'm using primefaces and their growl control in order to display validation error messages and I would like to use the required="true" but customize the message for each input component that uses the required="true". I know you can override the default require message and I know you can create a server side check and add a FacesMessage, but can you use required=true and customize the message? Right now it uses the id which doesn't work well for things "First Name"
0
5,480,293
03/29/2011 23:46:12
206,446
11/08/2009 22:19:26
2,985
6
Markdown to online blog/wiki/guides?
Are there sites where I can have an account, type in my markdown and then it would generate pretty blog/wiki/guides for me automatically without me having to bother with setting up a server and so on?
markdown
null
null
null
null
11/11/2011 13:09:50
off topic
Markdown to online blog/wiki/guides? === Are there sites where I can have an account, type in my markdown and then it would generate pretty blog/wiki/guides for me automatically without me having to bother with setting up a server and so on?
2
6,799,460
07/23/2011 09:19:02
859,150
07/23/2011 09:19:02
1
0
Why segmentation fault on implementation of strcpy? Please help!
I implement a simple strcpy, but when i run it , it always give a segmentation fault. Please help ! Below is my code: #include <stdio.h> char* mystrcpy(char*dst,char*src){ char *ptr=dst; while( *src !='\0'){ *dst=*src; dst++; src++; } return ptr; } int main(int argc,char **argv){ char *str1="abc"; char *str2="def"; char *str3=NULL; str3=mystrcpy(str2,str1); printf("str2 now is %s",str2); printf("str3 is %s,",str3); return 0; }
c
segmentation-fault
strcpy
null
null
null
open
Why segmentation fault on implementation of strcpy? Please help! === I implement a simple strcpy, but when i run it , it always give a segmentation fault. Please help ! Below is my code: #include <stdio.h> char* mystrcpy(char*dst,char*src){ char *ptr=dst; while( *src !='\0'){ *dst=*src; dst++; src++; } return ptr; } int main(int argc,char **argv){ char *str1="abc"; char *str2="def"; char *str3=NULL; str3=mystrcpy(str2,str1); printf("str2 now is %s",str2); printf("str3 is %s,",str3); return 0; }
0
10,468,815
05/06/2012 07:02:25
677,833
03/26/2011 08:11:28
18
0
How to change Java Project Structure in IntelliJ IDEA?
Need to add new files to Project and other stuff.
java
intellij-idea
null
null
null
05/06/2012 10:45:53
not a real question
How to change Java Project Structure in IntelliJ IDEA? === Need to add new files to Project and other stuff.
1
4,062,498
10/31/2010 09:12:09
440,379
09/06/2010 05:45:08
230
15
How long would it take to transfer a 1GB file over a 1 Gbps connection?
I answered that it would depend on a variety of factors including network latency, packet creation and collation etc. But the interviewer wanted a specific number, to which i answered something like 10 Secs :) ( > 8 secs ). Is there an exact formula for this?
networking
interview-questions
null
null
null
11/02/2010 09:19:17
off topic
How long would it take to transfer a 1GB file over a 1 Gbps connection? === I answered that it would depend on a variety of factors including network latency, packet creation and collation etc. But the interviewer wanted a specific number, to which i answered something like 10 Secs :) ( > 8 secs ). Is there an exact formula for this?
2
5,649,503
04/13/2011 12:50:15
1,088,313
01/19/2011 04:08:55
79
0
usability web sites
Where to find website that i could do a report on that needs some usability. I have been looking and dont know where to look at.. Thanks
css
null
null
null
null
04/13/2011 13:20:59
not a real question
usability web sites === Where to find website that i could do a report on that needs some usability. I have been looking and dont know where to look at.. Thanks
1
10,000,731
04/03/2012 20:17:38
1,104,427
12/18/2011 11:53:38
35
0
Learn python the hard way exercise 43, nothing happens
Currently going through Zed Shaw's Learn Python The Hard Way and have reached exercise 43. I thought I understood everything until I tried to run my script ... nothing happens. No error messages, nothing. I've been trying to go through my code but can't seem to find out why this is. Here's my code, hope someone can help me: **ex43_engine.py** http://ideone.com/cCAao **ex43_rooms.py** http://ideone.com/pJXkj Thanks in advance!
python
language-learning
null
null
null
04/03/2012 20:31:13
too localized
Learn python the hard way exercise 43, nothing happens === Currently going through Zed Shaw's Learn Python The Hard Way and have reached exercise 43. I thought I understood everything until I tried to run my script ... nothing happens. No error messages, nothing. I've been trying to go through my code but can't seem to find out why this is. Here's my code, hope someone can help me: **ex43_engine.py** http://ideone.com/cCAao **ex43_rooms.py** http://ideone.com/pJXkj Thanks in advance!
3
10,985,991
06/11/2012 19:02:31
890,179
08/11/2011 15:03:06
175
31
conditional compilation in java
Below is a snippet of my code - class A { private boolean debug = false; // Called when server boots up. public void init (property) { debug = property.getBoolean ("debug_var"); // read debug from a config file. } // some other function public void foo () { if (debug) { System.out.println ("From inside the debug block"); } } } When I run the code, if (debug) actually prints out "From inside debug block" if debug = true in the config file. Two Questions - 1) So, in this case does the compiler include the if block in the .class file just because the value of variable debug might change on run time? 2) If this is true, then how can i eliminate some code from being added to .class file on certain environments? Thanks!
java
null
null
null
null
null
open
conditional compilation in java === Below is a snippet of my code - class A { private boolean debug = false; // Called when server boots up. public void init (property) { debug = property.getBoolean ("debug_var"); // read debug from a config file. } // some other function public void foo () { if (debug) { System.out.println ("From inside the debug block"); } } } When I run the code, if (debug) actually prints out "From inside debug block" if debug = true in the config file. Two Questions - 1) So, in this case does the compiler include the if block in the .class file just because the value of variable debug might change on run time? 2) If this is true, then how can i eliminate some code from being added to .class file on certain environments? Thanks!
0
7,457,552
09/17/2011 20:25:26
918,806
08/30/2011 01:14:08
11
0
What language should I use to create a "Repair Status" system for my computer repair business?
I was just wondering the best programming language to create an online system with both a backend for the technician and a front end for the user to see the status. Also If you know of a system that already exits that would be great. I don't exactly know what to search for. Otherwise I would have found something myself. Any help is much appreciated.
php
javascript
ajax
null
null
09/17/2011 20:46:27
not constructive
What language should I use to create a "Repair Status" system for my computer repair business? === I was just wondering the best programming language to create an online system with both a backend for the technician and a front end for the user to see the status. Also If you know of a system that already exits that would be great. I don't exactly know what to search for. Otherwise I would have found something myself. Any help is much appreciated.
4