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
8,696,679
01/02/2012 01:07:04
73,694
03/04/2009 14:12:25
1
0
Building Cairo library for iOS
How can I build [Cairo library][1] (and pixman, which it requires) for iOS? I am especially interested in enabling NEON and Quartz backend. Thanks! [1]: http://www.cairographics.org/
ios
static
cairo
null
null
01/03/2012 00:41:37
not constructive
Building Cairo library for iOS === How can I build [Cairo library][1] (and pixman, which it requires) for iOS? I am especially interested in enabling NEON and Quartz backend. Thanks! [1]: http://www.cairographics.org/
4
10,365,703
04/28/2012 17:08:08
988,251
10/10/2011 19:03:55
1
0
Site like Pluralsight for Linux server admin?
Is there a site that offers instructional videos for Linux server administration? Searching gave me nothing but maybe I'm missing something obvious.
linux
null
null
null
null
04/28/2012 18:10:33
off topic
Site like Pluralsight for Linux server admin? === Is there a site that offers instructional videos for Linux server administration? Searching gave me nothing but maybe I'm missing something obvious.
2
2,563,321
04/01/2010 20:07:50
114,994
05/31/2009 03:28:23
2,545
209
Should I worry about reigning in namespace number/length/scope?
I've recently reorganized a solution-in-progress from 24 projects to 4. To keep the copious files organized in the "main" project, things are in folders in folders in folders. I think I've preserved a logical, discoverable arrangement of the solution content. As a result, of course, I end up with namespaces like **`AppName.DataAccess.NHibernate.Fluent.Mappings`.** **Is there any compelling reason that I should care about flattening out the namespace hierarchy when my project has a somewhat deeply nested folder structure?** *(I am not concerned about resolving or managing* `using` *directives; I let ReSharper do all the heavy lifting here.)*
c#
.net
namespaces
null
null
null
open
Should I worry about reigning in namespace number/length/scope? === I've recently reorganized a solution-in-progress from 24 projects to 4. To keep the copious files organized in the "main" project, things are in folders in folders in folders. I think I've preserved a logical, discoverable arrangement of the solution content. As a result, of course, I end up with namespaces like **`AppName.DataAccess.NHibernate.Fluent.Mappings`.** **Is there any compelling reason that I should care about flattening out the namespace hierarchy when my project has a somewhat deeply nested folder structure?** *(I am not concerned about resolving or managing* `using` *directives; I let ReSharper do all the heavy lifting here.)*
0
7,140,296
08/21/2011 18:44:04
904,835
08/21/2011 18:44:04
1
0
Mockup tool, specific for Android tablets
I am currently working on spec. & design for an Android project that is to be deployed on a Galaxy Tab. Any recommendations for a realy good tool which i could use as a mockup tool? I examined Balsamic, seems nice but is not free and seems limited when it comes to fitting the mockup to the right screen size (please correct me if im wrong). I also would like to use a tool that would fit the 7" Galaxy screen for my design. Thanks, J.
android
tablet
galaxy
mockups
spec
08/22/2011 18:23:25
not constructive
Mockup tool, specific for Android tablets === I am currently working on spec. & design for an Android project that is to be deployed on a Galaxy Tab. Any recommendations for a realy good tool which i could use as a mockup tool? I examined Balsamic, seems nice but is not free and seems limited when it comes to fitting the mockup to the right screen size (please correct me if im wrong). I also would like to use a tool that would fit the 7" Galaxy screen for my design. Thanks, J.
4
58,697
09/12/2008 11:07:18
2,757
08/24/2008 21:53:16
834
40
Alternatives to XCopy for copying lots of files?
The situation: I have a pieceofcrapuous laptop. One of the things that make it pieceofcrapuous is that the battery is dead, and the power cable pulls out of the back with little effort. I recently received a non-pieceofcrapuous laptop, and I am in the process of copying everything from old to new. I'm trying to xcopy c:\*.* from the old machine to an external hard drive, but because the cord pulls out so frequently, the xcopy is interrupted fairly often. What I need is a switch in XCopy that will copy eveything except for files that already exist in the destination folder -- the exact opposite of the behavior of the /U switch. Does anyone know of a way to do this?
xcopy
null
null
null
null
07/19/2012 00:12:30
off topic
Alternatives to XCopy for copying lots of files? === The situation: I have a pieceofcrapuous laptop. One of the things that make it pieceofcrapuous is that the battery is dead, and the power cable pulls out of the back with little effort. I recently received a non-pieceofcrapuous laptop, and I am in the process of copying everything from old to new. I'm trying to xcopy c:\*.* from the old machine to an external hard drive, but because the cord pulls out so frequently, the xcopy is interrupted fairly often. What I need is a switch in XCopy that will copy eveything except for files that already exist in the destination folder -- the exact opposite of the behavior of the /U switch. Does anyone know of a way to do this?
2
3,780,194
09/23/2010 15:56:15
197,011
10/27/2009 02:00:44
1,876
149
How do you pronounce JNI?
Serious Java development is new to me, so I've not dealt with the JNI before. Yesterday a co-worker and I were discussing the JNI and the way to pronounce it was in question. Is there a preferred way? In addition to jay-en-eye (j-n-i), I have also heard genie/jeanie. I could easily imagine ginny or jenny.
java
jni
null
null
null
03/14/2012 04:09:07
off topic
How do you pronounce JNI? === Serious Java development is new to me, so I've not dealt with the JNI before. Yesterday a co-worker and I were discussing the JNI and the way to pronounce it was in question. Is there a preferred way? In addition to jay-en-eye (j-n-i), I have also heard genie/jeanie. I could easily imagine ginny or jenny.
2
7,119,770
08/19/2011 09:43:13
902,166
08/19/2011 09:36:37
1
0
Need to Capture Video Stream from Camera in C# Application
I need to build an application that meets the requirements below. It can be a windows client, silverlight client or WPF client. 1. Screen will show video stream from 2 separate cameras in 2 separate windows 2. Need to have PVR type functionality that is... 2.1 Show Live Stream 2.2 Pause and playback previous 30 seconds of video I'm trying to use resources I have that is C# application development however I don't have any experience with video capture. Any help in terms of Libraries I can look at or the best way to do this. Thanks Cronline
c#
wpf
silverlight
video
streaming
08/19/2011 16:27:12
not constructive
Need to Capture Video Stream from Camera in C# Application === I need to build an application that meets the requirements below. It can be a windows client, silverlight client or WPF client. 1. Screen will show video stream from 2 separate cameras in 2 separate windows 2. Need to have PVR type functionality that is... 2.1 Show Live Stream 2.2 Pause and playback previous 30 seconds of video I'm trying to use resources I have that is C# application development however I don't have any experience with video capture. Any help in terms of Libraries I can look at or the best way to do this. Thanks Cronline
4
4,317,072
11/30/2010 18:21:16
373,151
06/22/2010 12:24:31
813
34
Good newsletters/mailing lists for programmers
I had joined the [CodeProject daily news list][1] a few months back, and I absolutely love it. The articles in the news letter are generally less than a day old, and they have exposed me to some of the awesomest programmer blogs/articles out there in the past few months. There are also some negatives, like I felt it is more inclined towards .NET/Microsoft technologies. Anyway, the point of this post is to know if there are any other similar mailing lists that you enjoy/enjoyed? Something that you felt has fresh, interesting and relevant news for programmers, from the industry. I don't care if it is more focused on any one platform like above (I still enjoy the read a lot... ). Any suggestions? Even newsletters specific to particular platforms are fine if they mostly focus on programming rather than the platform. [1]: http://www.codeproject.com/script/News/List.aspx
programming-languages
software-engineering
blogs
newsletter
null
11/30/2010 21:59:03
off topic
Good newsletters/mailing lists for programmers === I had joined the [CodeProject daily news list][1] a few months back, and I absolutely love it. The articles in the news letter are generally less than a day old, and they have exposed me to some of the awesomest programmer blogs/articles out there in the past few months. There are also some negatives, like I felt it is more inclined towards .NET/Microsoft technologies. Anyway, the point of this post is to know if there are any other similar mailing lists that you enjoy/enjoyed? Something that you felt has fresh, interesting and relevant news for programmers, from the industry. I don't care if it is more focused on any one platform like above (I still enjoy the read a lot... ). Any suggestions? Even newsletters specific to particular platforms are fine if they mostly focus on programming rather than the platform. [1]: http://www.codeproject.com/script/News/List.aspx
2
6,092,495
05/23/2011 03:18:28
416,729
05/09/2010 10:13:32
483
6
how to load html and css first and the pictures, javascript etc later ?
i have recently built a site, which pull youtube images, videos and i am also using few javascript external file, as a result, page loads very slow. How do i make page load faster ?
javascript
html
null
null
null
null
open
how to load html and css first and the pictures, javascript etc later ? === i have recently built a site, which pull youtube images, videos and i am also using few javascript external file, as a result, page loads very slow. How do i make page load faster ?
0
557,114
02/17/2009 14:41:11
6,701
09/15/2008 12:30:29
46
2
Stick with MFC or go to .Net
We have a largish MFC app that is our main product. This app is being actively developed and there are no plans to stop development. I am new to windows development, but I get the impression that MFC is dead and all the new growth and enhancements are in .net. Is this view accurate? What criteria should we consider when deciding if we should convert this application to .net. Here I'm asking why. I have asked the how question [here][1] [1]: http://stackoverflow.com/questions/557055/converting-a-large-mfc-app-to-net
mfc
.net
null
null
null
09/03/2011 23:21:06
not constructive
Stick with MFC or go to .Net === We have a largish MFC app that is our main product. This app is being actively developed and there are no plans to stop development. I am new to windows development, but I get the impression that MFC is dead and all the new growth and enhancements are in .net. Is this view accurate? What criteria should we consider when deciding if we should convert this application to .net. Here I'm asking why. I have asked the how question [here][1] [1]: http://stackoverflow.com/questions/557055/converting-a-large-mfc-app-to-net
4
2,634,079
04/14/2010 00:12:50
236,587
12/22/2009 05:03:17
66
1
Return column alias as associative array key
Say I have the following: $query = " SELECT user_id,email,password, roles.role_id,role_name FROM users JOIN roles USING(role_id) LIMIT 1 "; $result = mysql_query($query); $user = mysql_fetch_assoc($result); Then if I print_r($user) I get: Array( [user_id] => 1 [email] => [email protected] [password] => 5f4dcc3b5aa765d61d8327deb882cf99 [role_id] => 1 [role_name] => admin ) I would like to clean this array up a bit by using aliases for my column names in the select query. I can replace `user_id` with `id` easily enough but I would also like to choose aliases for `role_id` and `role_name` such that they are returned as `role => array (id => 1, name => admin)`. For example, I have tried the following (which doesn't work): $query = " SELECT user_id AS id,email,password, roles.role_id AS role[id],role_name AS role[name] FROM users JOIN roles USING(role_id) LIMIT 1 "; The array I would like this to return would look like: Array( [id] => 1 [email] => [email protected] [password] => 5f4dcc3b5aa765d61d8327deb882cf99 [role] => Array( [id] => 1 [name] => admin ) )
php
mysql
null
null
null
null
open
Return column alias as associative array key === Say I have the following: $query = " SELECT user_id,email,password, roles.role_id,role_name FROM users JOIN roles USING(role_id) LIMIT 1 "; $result = mysql_query($query); $user = mysql_fetch_assoc($result); Then if I print_r($user) I get: Array( [user_id] => 1 [email] => [email protected] [password] => 5f4dcc3b5aa765d61d8327deb882cf99 [role_id] => 1 [role_name] => admin ) I would like to clean this array up a bit by using aliases for my column names in the select query. I can replace `user_id` with `id` easily enough but I would also like to choose aliases for `role_id` and `role_name` such that they are returned as `role => array (id => 1, name => admin)`. For example, I have tried the following (which doesn't work): $query = " SELECT user_id AS id,email,password, roles.role_id AS role[id],role_name AS role[name] FROM users JOIN roles USING(role_id) LIMIT 1 "; The array I would like this to return would look like: Array( [id] => 1 [email] => [email protected] [password] => 5f4dcc3b5aa765d61d8327deb882cf99 [role] => Array( [id] => 1 [name] => admin ) )
0
4,572,083
12/31/2010 20:03:22
484,290
10/22/2010 14:06:21
209
17
Bidding System Admin Panel
I am implementing a bidding System for a university project. I am getting confusion about what to include in the admin section of this site. Normally the admin will have to be able to view users registered and items and auctions. What other functions I might include this admin panel???
gwt
sysadmin
null
null
null
01/22/2012 19:46:33
not constructive
Bidding System Admin Panel === I am implementing a bidding System for a university project. I am getting confusion about what to include in the admin section of this site. Normally the admin will have to be able to view users registered and items and auctions. What other functions I might include this admin panel???
4
1,816,459
11/29/2009 19:10:39
220,949
11/29/2009 19:07:17
1
0
console UI tool for resolving merge conflicts in git... like vimdiff but 'easier'
i'm looking for a console UI tool for resolving merge conflicts in git... like vimdiff but 'easier'
git
conflict
mergetool
null
null
null
open
console UI tool for resolving merge conflicts in git... like vimdiff but 'easier' === i'm looking for a console UI tool for resolving merge conflicts in git... like vimdiff but 'easier'
0
10,154,001
04/14/2012 13:27:04
1,333,313
04/14/2012 13:15:22
1
0
Perl $strings to hash tables conversion
I'm working on some DNA (A, T, C and G with the chance of U thrown in) RIght now I have a really long string full of DNA of undefined length. I've got the code for the nucleotide bases done. %nucleotide_bases = ( A => Adenine, T => Thymine, G => Guanine, C => Cytosine ); $nucleotide_bases{'U'} = 'This is a RNA base called Uracil';#T=U for RNA Now all I need to do is put in some sort of loop to read each single character from the string. Since this code is for students, it needs to be simple. I started using perl myself a few weeks ago, java before that. The string ($string1 it's called) needs to print it's full name as each single base pair is read (one at a time). So when the string says ATATCGCG The output to the screen needs to read: Adenine Thymine Adenine Thymine Cytosine Guanine Cytosine Guanine If this is too tricky to do from a string, I can use an array as a starting point. Many thanks for your assitance.
string
perl
type-conversion
hashes
null
null
open
Perl $strings to hash tables conversion === I'm working on some DNA (A, T, C and G with the chance of U thrown in) RIght now I have a really long string full of DNA of undefined length. I've got the code for the nucleotide bases done. %nucleotide_bases = ( A => Adenine, T => Thymine, G => Guanine, C => Cytosine ); $nucleotide_bases{'U'} = 'This is a RNA base called Uracil';#T=U for RNA Now all I need to do is put in some sort of loop to read each single character from the string. Since this code is for students, it needs to be simple. I started using perl myself a few weeks ago, java before that. The string ($string1 it's called) needs to print it's full name as each single base pair is read (one at a time). So when the string says ATATCGCG The output to the screen needs to read: Adenine Thymine Adenine Thymine Cytosine Guanine Cytosine Guanine If this is too tricky to do from a string, I can use an array as a starting point. Many thanks for your assitance.
0
7,055,109
08/14/2011 05:00:36
818,748
06/28/2011 08:05:44
28
0
Advice web engine for viewing of scanned magazines
I have a large collection of old magazines in PDF and DJVU formats (can convert them to any format). People who want to read them download them. I want to provide ability to read them in the web, to give some interesting options as a single page sharing, voting for articles/pictures, discussing. Can you advice ready to use engines of magazine viewers or some libraries?
content-management-system
engine
scan
magazines
null
04/30/2012 18:57:56
not constructive
Advice web engine for viewing of scanned magazines === I have a large collection of old magazines in PDF and DJVU formats (can convert them to any format). People who want to read them download them. I want to provide ability to read them in the web, to give some interesting options as a single page sharing, voting for articles/pictures, discussing. Can you advice ready to use engines of magazine viewers or some libraries?
4
11,263,343
06/29/2012 14:09:23
95,944
04/25/2009 12:57:54
6,186
118
Cannot run tests with nosetests
I am trying to use nosetests to run all test cases inside my project. I cd to my project directory: cd projects/myproject Then I do: nosetests Which outputs: ---------------------------------------------------------------------- Ran 0 tests in 0.001s OK Inside projects/myproject I have a package called Encode and inside the package I have Test directory with tests: Encode/ __init__.py Video.py Ffmpeg.py Test/ VideoTest.py FfmpegTest.py Why is nosetests not detecting my unit tests? All of my unit test classes extend unittest.TestCase.
python
django
nosetests
null
null
null
open
Cannot run tests with nosetests === I am trying to use nosetests to run all test cases inside my project. I cd to my project directory: cd projects/myproject Then I do: nosetests Which outputs: ---------------------------------------------------------------------- Ran 0 tests in 0.001s OK Inside projects/myproject I have a package called Encode and inside the package I have Test directory with tests: Encode/ __init__.py Video.py Ffmpeg.py Test/ VideoTest.py FfmpegTest.py Why is nosetests not detecting my unit tests? All of my unit test classes extend unittest.TestCase.
0
9,572,609
03/05/2012 19:21:44
1,076,079
12/01/2011 18:33:36
41
1
PHP Concatonate Zero to date POST value
I need to add a zero to the date value that is posted as the MySQL date value will be used as a directory path to show added photos. Currently the directory is saved as 2012-2-5 and the MySQL entry is 2012-02-05. I have tried the following, however it doesn't seem to be working: $dates = array($_POST['photos_year'], $_POST['photos_month'], $_POST['photos_day']); foreach($dates as $date) { if (strlen($date) == 1) { $date = '0' . $date; } } $photos->date = $dates[0] . "-" . $dates[1] . "-" . $dates[2]; I am using a for loop to create the date form, it might be easier for me to edit this however I haven't had any success: <select name="photos_month" id="photos_month" tabindex="3"> <option value ="">- Month -</option> <?php for($date=01;$date<=12;$date++) { if (isset($photos) && $date==$month) { echo "<option value='".$date."' selected='selected'>".$date."</option>"; } else { echo "<option value='".$date."'>".$date."</option>"; } } ?> </select>
php
date
for-loop
foreach
null
null
open
PHP Concatonate Zero to date POST value === I need to add a zero to the date value that is posted as the MySQL date value will be used as a directory path to show added photos. Currently the directory is saved as 2012-2-5 and the MySQL entry is 2012-02-05. I have tried the following, however it doesn't seem to be working: $dates = array($_POST['photos_year'], $_POST['photos_month'], $_POST['photos_day']); foreach($dates as $date) { if (strlen($date) == 1) { $date = '0' . $date; } } $photos->date = $dates[0] . "-" . $dates[1] . "-" . $dates[2]; I am using a for loop to create the date form, it might be easier for me to edit this however I haven't had any success: <select name="photos_month" id="photos_month" tabindex="3"> <option value ="">- Month -</option> <?php for($date=01;$date<=12;$date++) { if (isset($photos) && $date==$month) { echo "<option value='".$date."' selected='selected'>".$date."</option>"; } else { echo "<option value='".$date."'>".$date."</option>"; } } ?> </select>
0
6,404,667
06/19/2011 19:33:26
176,248
09/20/2009 16:11:46
448
19
WPF splash screen with own thread gets dug behind other windows
At start of my WPF application I have to load some data. This can take some seconds, so I built a splash screen with a text progress text and a bar. The screen is run by its own thread: public static class SplashScreen { public static void ShowSplash() { if (_SplashThread == null) { _SplashThread = new Thread(() => { _Splash = new WISplash(); _Splash.Show(); _Splash.Closed += (sender1, e1) => _Splash.Dispatcher.InvokeShutdown(); System.Windows.Threading.Dispatcher.Run(); }); _SplashThread.SetApartmentState(ApartmentState.STA); _SplashThread.IsBackground = true; _SplashThread.Start(); } } } `WISplash`'s base class is `Window`. My problem is that if I bring any other program's window to the front and switch back to my program I don't get the splash screen back to the top. It's dug under the other program windows. How can I 'bind' this thread's window to the main thread so that it comes to the front when I click on the program's icon in the task bar?
c#
wpf
multithreading
splash-screen
null
null
open
WPF splash screen with own thread gets dug behind other windows === At start of my WPF application I have to load some data. This can take some seconds, so I built a splash screen with a text progress text and a bar. The screen is run by its own thread: public static class SplashScreen { public static void ShowSplash() { if (_SplashThread == null) { _SplashThread = new Thread(() => { _Splash = new WISplash(); _Splash.Show(); _Splash.Closed += (sender1, e1) => _Splash.Dispatcher.InvokeShutdown(); System.Windows.Threading.Dispatcher.Run(); }); _SplashThread.SetApartmentState(ApartmentState.STA); _SplashThread.IsBackground = true; _SplashThread.Start(); } } } `WISplash`'s base class is `Window`. My problem is that if I bring any other program's window to the front and switch back to my program I don't get the splash screen back to the top. It's dug under the other program windows. How can I 'bind' this thread's window to the main thread so that it comes to the front when I click on the program's icon in the task bar?
0
11,151,375
06/22/2012 06:47:37
1,427,631
05/31/2012 06:19:08
423
42
Irregular Tree Data Structure Implementation in Java?
**My question is about constructing a dynamic tree which doesn't have a predefined structure.** We all know project planner uses Task dependencies,i want to implement that task dependency logic in java how can it be done ?? By analyzing the Task dependency i found that the dependency is forming a irregular tree structure ...How to iterate through the task chain and update the dates??.. Take for example , i have a list of Tasks and their dependencies given..Just draw a rough sketch on a paper with the dependencies and see how the tree look likes .. Tasks Dependencies Task1 -- Task2 Task1 Task3 Task2 Task4 Task3,Task1 Task5 Task3 Task6 Task2 Task7 Task5,Task2 Task8 Task6 If i update the duration of Task 1 how it is gonna affect the rest of the Tasks..?? How i can frame that dynamic tree and update the dependent tasks??? It is also creating circular dependencies any ways to avoid it?? Any suggestions.. Thanks..
java
data-structures
recursion
tree
ms-project
06/22/2012 12:58:22
not a real question
Irregular Tree Data Structure Implementation in Java? === **My question is about constructing a dynamic tree which doesn't have a predefined structure.** We all know project planner uses Task dependencies,i want to implement that task dependency logic in java how can it be done ?? By analyzing the Task dependency i found that the dependency is forming a irregular tree structure ...How to iterate through the task chain and update the dates??.. Take for example , i have a list of Tasks and their dependencies given..Just draw a rough sketch on a paper with the dependencies and see how the tree look likes .. Tasks Dependencies Task1 -- Task2 Task1 Task3 Task2 Task4 Task3,Task1 Task5 Task3 Task6 Task2 Task7 Task5,Task2 Task8 Task6 If i update the duration of Task 1 how it is gonna affect the rest of the Tasks..?? How i can frame that dynamic tree and update the dependent tasks??? It is also creating circular dependencies any ways to avoid it?? Any suggestions.. Thanks..
1
11,353,768
07/05/2012 23:11:06
1,460,412
06/16/2012 09:08:53
63
0
Converting a double[] array into string[] array
I would like to know what code to use to convert a double[] array into a string[] array
java
arrays
null
null
null
07/06/2012 01:04:30
not a real question
Converting a double[] array into string[] array === I would like to know what code to use to convert a double[] array into a string[] array
1
11,381,431
07/08/2012 07:26:05
1,309,524
04/03/2012 04:43:58
16
0
What is the best and fastest way to get records from database?
i am trying to get all the records from database and instead of while loop i just want to load them directly in to array and using some method to display the titles of the pages. i will really appricate if someone can give me a link for best practices for mysql.
php
mysql
null
null
null
07/08/2012 14:34:27
not a real question
What is the best and fastest way to get records from database? === i am trying to get all the records from database and instead of while loop i just want to load them directly in to array and using some method to display the titles of the pages. i will really appricate if someone can give me a link for best practices for mysql.
1
8,772,866
01/07/2012 20:29:29
1,117,229
12/27/2011 07:16:25
6
0
how to use php last.fm api ?
I just downloaded PHP-last.fm-api. how to use those classes? I want some small tutorials or sample code. I want to know more about Authentication part. plz help. Thank you.
php
last.fm
null
null
null
01/09/2012 02:21:51
not constructive
how to use php last.fm api ? === I just downloaded PHP-last.fm-api. how to use those classes? I want some small tutorials or sample code. I want to know more about Authentication part. plz help. Thank you.
4
6,548,164
07/01/2011 12:48:51
818,031
06/27/2011 19:47:49
18
0
Polymorphism - exercise.
Alright, so this is the exercise: Define a class named student, containing three grades of students. The class will have a function that calculates the grades average. Now, define a class named student1 which will be derived from student and will add a function to calculate the sum of the grades.In the Main program, define a student variable and object of type student1. Perform placement of the object to variable and run the function of student1. Note: This is not homework, I'm learning this my own. This is the code: class Student { protected int grade1, grade2, grade3; public Student(int grade1, int grade2, int grade3) { this.grade1 = grade1; this.grade2 = grade2; this.grade3 = grade3; } public double Average() { return (grade1 + grade2 + grade3) / 3; } } class Student1 : Student { public Student1(int grade1, int grade2, int grade3) : base(grade1, grade2, grade3) { } public double Sum() { return grade1 + grade2 + grade3; } } class Program { static void Main(string[] args) { } } I don't really know what to do in the main class, how do I perform this placement and also, I wanted to know what's the benefit of doing it, let me know if I have mistakes so far, thanks alot.
c#
null
null
null
null
null
open
Polymorphism - exercise. === Alright, so this is the exercise: Define a class named student, containing three grades of students. The class will have a function that calculates the grades average. Now, define a class named student1 which will be derived from student and will add a function to calculate the sum of the grades.In the Main program, define a student variable and object of type student1. Perform placement of the object to variable and run the function of student1. Note: This is not homework, I'm learning this my own. This is the code: class Student { protected int grade1, grade2, grade3; public Student(int grade1, int grade2, int grade3) { this.grade1 = grade1; this.grade2 = grade2; this.grade3 = grade3; } public double Average() { return (grade1 + grade2 + grade3) / 3; } } class Student1 : Student { public Student1(int grade1, int grade2, int grade3) : base(grade1, grade2, grade3) { } public double Sum() { return grade1 + grade2 + grade3; } } class Program { static void Main(string[] args) { } } I don't really know what to do in the main class, how do I perform this placement and also, I wanted to know what's the benefit of doing it, let me know if I have mistakes so far, thanks alot.
0
1,726,608
11/13/2009 01:37:28
69,348
02/21/2009 16:29:16
35
1
Configuring multiple methods in PHPUnit mock objects
I am trying to create a mock object in PHP and PHPUnit. So far, I have this: $object = $this->getMock('object', array('set_properties', 'get_events'), array(), 'object_test', null); $object ->expects($this->once()) ->method('get_events') ->will($this->returnValue(array())); $mo = new multiple_object($object); Ignoring my hideously ambiguous object names for the minute, I understand that what I've done is - Created a mock object, with 2 methods to configure, - Configured the 'get_events' method to return a blank array, and - Dropped the mock into the constructor. What I'd like to do now is configure the second method, but I can't find anything explaining how to do that. I want to do something like $object ->expects($this->once()) ->method('get_events') ->will($this->returnValue(array())) ->expects($this->once()) ->method('set_properties') ->with($this->equalTo(array())) or some such, but that doesn't work. How should I do that? Tangentially, does this indicate I've structured my code poorly, if I need to configured more than one method to test?
php
phpunit
null
null
null
null
open
Configuring multiple methods in PHPUnit mock objects === I am trying to create a mock object in PHP and PHPUnit. So far, I have this: $object = $this->getMock('object', array('set_properties', 'get_events'), array(), 'object_test', null); $object ->expects($this->once()) ->method('get_events') ->will($this->returnValue(array())); $mo = new multiple_object($object); Ignoring my hideously ambiguous object names for the minute, I understand that what I've done is - Created a mock object, with 2 methods to configure, - Configured the 'get_events' method to return a blank array, and - Dropped the mock into the constructor. What I'd like to do now is configure the second method, but I can't find anything explaining how to do that. I want to do something like $object ->expects($this->once()) ->method('get_events') ->will($this->returnValue(array())) ->expects($this->once()) ->method('set_properties') ->with($this->equalTo(array())) or some such, but that doesn't work. How should I do that? Tangentially, does this indicate I've structured my code poorly, if I need to configured more than one method to test?
0
10,196,088
04/17/2012 17:30:23
272,902
02/14/2010 15:37:39
58
1
String (Text) justification in C#/C++
I am writing a custom text renderer with C#. i am not using any libraries lib GDI+ or D2D. I need to input a text file and get that file justified. I may not use API calls. Can anyone show me a direction to do so ? Thx in Adv.
c#
justify
text-justify
null
null
04/17/2012 19:57:08
too localized
String (Text) justification in C#/C++ === I am writing a custom text renderer with C#. i am not using any libraries lib GDI+ or D2D. I need to input a text file and get that file justified. I may not use API calls. Can anyone show me a direction to do so ? Thx in Adv.
3
10,368,113
04/28/2012 22:27:53
17,123
09/18/2008 02:10:11
3,652
98
How to share a data access layer (Services and Domain Classes) between multiple Grails apps
I would like to share the data access portion of my grails app (Grails domain classes and services) with another grails app. One is a standard client facing web app, the other (not yet written) will be for periodic background tasks such as reminder emails and such using the Quartz plugin or similar, where the UI will just be for statistics/control for internal users. I do not want this all bundled in one Grails application because I want to be able to scale them and run them on different machines. What is the proper way to do this? I have accomplished this in the past in more legacy Java web applications by bundling the shared data access classes into a .jar and including them where needed in multiple apps, but I'm not sure if this is the right approach for Grails. I've considered a full blown service oriented architecture where a third grails application is responsible for all data access and the two described do all their data access through REST calls to this service app, but this is out of scope for the short term since the client facing webapp is already written.
grails
soa
data-access-layer
null
null
null
open
How to share a data access layer (Services and Domain Classes) between multiple Grails apps === I would like to share the data access portion of my grails app (Grails domain classes and services) with another grails app. One is a standard client facing web app, the other (not yet written) will be for periodic background tasks such as reminder emails and such using the Quartz plugin or similar, where the UI will just be for statistics/control for internal users. I do not want this all bundled in one Grails application because I want to be able to scale them and run them on different machines. What is the proper way to do this? I have accomplished this in the past in more legacy Java web applications by bundling the shared data access classes into a .jar and including them where needed in multiple apps, but I'm not sure if this is the right approach for Grails. I've considered a full blown service oriented architecture where a third grails application is responsible for all data access and the two described do all their data access through REST calls to this service app, but this is out of scope for the short term since the client facing webapp is already written.
0
11,440,441
07/11/2012 19:57:09
1,337,726
04/17/2012 03:27:35
5
0
document.createElement("tr") not showing up in html
I have a really annoying problem. I got this bunch of code which runs and should put some information from XML into several table slots. var xmlDoc; $(document).ready( function() { //Load XML importXML(); /////////////////////////////////////////////////////////////////////////////////////// }); function importXML() { $.ajax( { type: "GET", url: "adList.xml", dataType: "xml", success:assignXML }); } function assignXML(myXML) { xmlDoc = myXML; pushContent(); } function pushContent() { var len = xmlDoc.getElementsByTagName('advertisement').length; for(i=0;i<len;i++) { var trElement = document.createElement('tr'); console.log($(xmlDoc).find('advertisement').eq(i).find('image').text()); var image = $(xmlDoc).find('advertisement').eq(i).find('image').text(); var imageTD = document.createElement('td'); var imageIn = document.createElement('input'); imageIn.setAttribute('type','text'); imageIn.setAttribute('name','imageArr[]'); imageIn.setAttribute('size','15'); imageIn.setAttribute('value',image); imageTD.appendChild(imageIn); trElement.appendChild(imageTD); console.log(trElement); } All of the information is there. I can look up the tr in the javascript code with firebug and it works correctly. It isn't throwing any errors. It just doesn't show up on the page or in the html. What am I doing wrong?
javascript
jquery
html
xml
null
null
open
document.createElement("tr") not showing up in html === I have a really annoying problem. I got this bunch of code which runs and should put some information from XML into several table slots. var xmlDoc; $(document).ready( function() { //Load XML importXML(); /////////////////////////////////////////////////////////////////////////////////////// }); function importXML() { $.ajax( { type: "GET", url: "adList.xml", dataType: "xml", success:assignXML }); } function assignXML(myXML) { xmlDoc = myXML; pushContent(); } function pushContent() { var len = xmlDoc.getElementsByTagName('advertisement').length; for(i=0;i<len;i++) { var trElement = document.createElement('tr'); console.log($(xmlDoc).find('advertisement').eq(i).find('image').text()); var image = $(xmlDoc).find('advertisement').eq(i).find('image').text(); var imageTD = document.createElement('td'); var imageIn = document.createElement('input'); imageIn.setAttribute('type','text'); imageIn.setAttribute('name','imageArr[]'); imageIn.setAttribute('size','15'); imageIn.setAttribute('value',image); imageTD.appendChild(imageIn); trElement.appendChild(imageTD); console.log(trElement); } All of the information is there. I can look up the tr in the javascript code with firebug and it works correctly. It isn't throwing any errors. It just doesn't show up on the page or in the html. What am I doing wrong?
0
8,976,372
01/23/2012 18:03:46
1,165,513
01/23/2012 18:00:13
1
0
Open document in app itself
I need to open a pdf document in my app itself.I dont want the document to load in another app(pdfviewer) but in my app only.Please Help
android
null
null
null
null
01/24/2012 09:18:56
not a real question
Open document in app itself === I need to open a pdf document in my app itself.I dont want the document to load in another app(pdfviewer) but in my app only.Please Help
1
10,053,255
04/07/2012 09:17:25
621,510
02/17/2011 13:57:37
162
0
How to rotate line using mouse events
I am new to html5 and I want to ask is there a way by which I can draw a line and make it rotate an resizeable on canvas using html5 javascript . thanks
javascript
html5
mouse-events
null
null
04/08/2012 16:11:06
not a real question
How to rotate line using mouse events === I am new to html5 and I want to ask is there a way by which I can draw a line and make it rotate an resizeable on canvas using html5 javascript . thanks
1
637,871
03/12/2009 09:32:16
4,939
09/06/2008 20:36:05
228
5
How to remove an ACL entry for a single user in Mac OS X CLI?
I'm trying to remove an ACL set for johndoe from all the folders on one of my drives. Anyone know how to do this *without* affecting the ACLs that already exist for other groups/users? I'm looking for the Mac equivalent of "setfacl -d u:johndoe" I know you can use chmod to remove a rule from multiple files, but the only way I have seen won't work because it removes the rule via its index (eg: the 5th entry of every folder) and the entry for my user won't always be the same index.
bsd
osx
operating-system
bash
acl
04/12/2012 14:51:42
off topic
How to remove an ACL entry for a single user in Mac OS X CLI? === I'm trying to remove an ACL set for johndoe from all the folders on one of my drives. Anyone know how to do this *without* affecting the ACLs that already exist for other groups/users? I'm looking for the Mac equivalent of "setfacl -d u:johndoe" I know you can use chmod to remove a rule from multiple files, but the only way I have seen won't work because it removes the rule via its index (eg: the 5th entry of every folder) and the entry for my user won't always be the same index.
2
1,427,298
09/15/2009 13:51:11
60,664
01/30/2009 15:45:54
2,208
124
Advice for integrating a blog and wiki in a custom site
I've been tasked with building a site for a client. They want it to include a wordpress blog and a wiki with both integrated apps sharing the look and feel of the main site. Currently, they use MediaWiki and would like to stick with it, but they are flexible with respect to the software we choose. I've nailed down two fairly discrete approaches to this problem: 1. Build custom themes for both Wordpress and MediaWiki 2. Strip Wordpress and MediaWiki of most of their respective visuals and include them both in the site using `iframe`s. I'm fairly comfortable with the technical requirements of option 1 and am only entertaining option 2 because the allotted development time for this project is extremely limited. My experience with framing external sites is fairly limited and thus I am a not entirely sure what the technical ramifications are for option 2. For instance, will it require a ton of extra work to link to specific pages within the blog/wiki if I'm using an `iframe`? What about forms included in the framed pages? I guess I'm just wondering what you fine people would do here. Any advice/insight you may provide is appreciated!
php
integration
mediawiki
wordpress
null
null
open
Advice for integrating a blog and wiki in a custom site === I've been tasked with building a site for a client. They want it to include a wordpress blog and a wiki with both integrated apps sharing the look and feel of the main site. Currently, they use MediaWiki and would like to stick with it, but they are flexible with respect to the software we choose. I've nailed down two fairly discrete approaches to this problem: 1. Build custom themes for both Wordpress and MediaWiki 2. Strip Wordpress and MediaWiki of most of their respective visuals and include them both in the site using `iframe`s. I'm fairly comfortable with the technical requirements of option 1 and am only entertaining option 2 because the allotted development time for this project is extremely limited. My experience with framing external sites is fairly limited and thus I am a not entirely sure what the technical ramifications are for option 2. For instance, will it require a ton of extra work to link to specific pages within the blog/wiki if I'm using an `iframe`? What about forms included in the framed pages? I guess I'm just wondering what you fine people would do here. Any advice/insight you may provide is appreciated!
0
8,542,161
12/17/2011 02:29:18
447,979
09/15/2010 03:38:46
2,142
186
how to get network information of computer?
I'm looking for an example code .NET namespace/winapi/library for get networkn information by C# program. `GetAllNetworkInterfaces()` from `System.Net.NetworkInformation.NetworkInterface` seemed like good solution for my scenario,but it do not get all network information if the internet connection is disconnected. any help is appreciated. Thanks in advance.
c#
.net
network-programming
null
null
null
open
how to get network information of computer? === I'm looking for an example code .NET namespace/winapi/library for get networkn information by C# program. `GetAllNetworkInterfaces()` from `System.Net.NetworkInformation.NetworkInterface` seemed like good solution for my scenario,but it do not get all network information if the internet connection is disconnected. any help is appreciated. Thanks in advance.
0
10,481,575
05/07/2012 11:50:30
1,251,004
03/05/2012 23:13:56
321
0
Debian, apace. Log files eats up all disk space
I only have 32 GB disk space on my VPS, and currently the logfiles takes 26 GB. I found the files: access.log.1 and error.log.1, which is 17 gb together (var/log/apache2). Can I just remove these files to free up some space? Is it possible to stop the logging function? I know very litte about servers, and don't understand the logs anyways. Thanks
apache
apache2
debian
null
null
05/07/2012 15:44:21
off topic
Debian, apace. Log files eats up all disk space === I only have 32 GB disk space on my VPS, and currently the logfiles takes 26 GB. I found the files: access.log.1 and error.log.1, which is 17 gb together (var/log/apache2). Can I just remove these files to free up some space? Is it possible to stop the logging function? I know very litte about servers, and don't understand the logs anyways. Thanks
2
8,788,358
01/09/2012 12:20:55
436,028
08/31/2010 14:26:18
8,140
478
Why is LINQ expression causing two separate queries on the DB?
I have the following LINQ expression: `var rawData = ( from e in _man.Details where e.Id == "G00" select e).ToList();` which when I run with Profiler open I can see causes *two* separate *identical* queries. What is the reason for this and how can this be prevented?
c#
sql-server
linq
entity-framework
null
null
open
Why is LINQ expression causing two separate queries on the DB? === I have the following LINQ expression: `var rawData = ( from e in _man.Details where e.Id == "G00" select e).ToList();` which when I run with Profiler open I can see causes *two* separate *identical* queries. What is the reason for this and how can this be prevented?
0
6,218,218
06/02/2011 17:48:58
403,971
05/19/2010 08:47:24
305
1
Encoding.ASCII.GetString() Problem C# [Duplicate Question]
this is my previous post in [VB.NET][1] but seems i still got the same problem in c# and i cannot solve it.. i dont know why the sent string "kamote" to server and the string received "kamote" from server are not the same.. this is my code.. CLIENT -- tcpClient = new TcpClient(); tcpClient.Connect(ServerIP, Port); connectionState = (HandShake("kamote", tcpClient)) ? "Connected to " + ServerIP.ToString() : "Host unreachable."; private bool HandShake(String str, TcpClient tcpClient) { using (NetworkStream ns = tcpClient.GetStream()) { byte[] toServer = Encoding.ASCII.GetBytes(str); ns.Write(toServer,0,toServer.Length); ns.Flush(); byte[] fromServer = new byte[10025]; ns.Read(fromServer, 0, (int)tcpClient.ReceiveBufferSize); return Encoding.ASCII.GetString(fromServer).Equals(str); } } ------ SERVER -- TcpClient tcpClient = new TcpClient(); tcpClient = tcpListener.AcceptTcpClient(); NetworkStream ns = tcpClient.GetStream(); byte[] fromClient = new byte[10025]; ns.Read(fromClient, 0, (int)tcpClient.ReceiveBufferSize); byte[] toClient = fromClient; ns.Write(toClient, 0, toClient.Length); ns.Flush(); [1]: http://stackoverflow.com/questions/5441243/encoding-ascii-getstring-problem-vb-net Client sent "kamote" Server received "kamote" Server sent "kamote" Client received "kamote" but HandShake() always return false.. :( any help please..
c#
tcpclient
tcpsocket
null
null
null
open
Encoding.ASCII.GetString() Problem C# [Duplicate Question] === this is my previous post in [VB.NET][1] but seems i still got the same problem in c# and i cannot solve it.. i dont know why the sent string "kamote" to server and the string received "kamote" from server are not the same.. this is my code.. CLIENT -- tcpClient = new TcpClient(); tcpClient.Connect(ServerIP, Port); connectionState = (HandShake("kamote", tcpClient)) ? "Connected to " + ServerIP.ToString() : "Host unreachable."; private bool HandShake(String str, TcpClient tcpClient) { using (NetworkStream ns = tcpClient.GetStream()) { byte[] toServer = Encoding.ASCII.GetBytes(str); ns.Write(toServer,0,toServer.Length); ns.Flush(); byte[] fromServer = new byte[10025]; ns.Read(fromServer, 0, (int)tcpClient.ReceiveBufferSize); return Encoding.ASCII.GetString(fromServer).Equals(str); } } ------ SERVER -- TcpClient tcpClient = new TcpClient(); tcpClient = tcpListener.AcceptTcpClient(); NetworkStream ns = tcpClient.GetStream(); byte[] fromClient = new byte[10025]; ns.Read(fromClient, 0, (int)tcpClient.ReceiveBufferSize); byte[] toClient = fromClient; ns.Write(toClient, 0, toClient.Length); ns.Flush(); [1]: http://stackoverflow.com/questions/5441243/encoding-ascii-getstring-problem-vb-net Client sent "kamote" Server received "kamote" Server sent "kamote" Client received "kamote" but HandShake() always return false.. :( any help please..
0
10,703,035
05/22/2012 13:27:58
470,383
10/08/2010 15:18:05
1,095
75
jquery td content by attribute - cannot use children or find methods?
i can't figure out what should be a simple task: http://jsfiddle.net/elen/7agUc/3/ $(document).on("change",'td[col=cat_id] select',function() { var v = $(this).val(); var tr = $(this).parent().parent(); // getting parent row var tr_id = tr.attr('primary_key'); var d = tr.childern('td[col=Artist').html(); // getting text in the specific cell of the same row alert(d); });​ the above code throw an error - "children method is not supported" the following works: var d = $("tr[primary_key="+tr_id +"] td[col=Artist]").text(); but why can't i just use `children()` or `find()` : var d = tr.find('td[col=Artist').text(); or am i missing something here?...
jquery
find
children
null
null
null
open
jquery td content by attribute - cannot use children or find methods? === i can't figure out what should be a simple task: http://jsfiddle.net/elen/7agUc/3/ $(document).on("change",'td[col=cat_id] select',function() { var v = $(this).val(); var tr = $(this).parent().parent(); // getting parent row var tr_id = tr.attr('primary_key'); var d = tr.childern('td[col=Artist').html(); // getting text in the specific cell of the same row alert(d); });​ the above code throw an error - "children method is not supported" the following works: var d = $("tr[primary_key="+tr_id +"] td[col=Artist]").text(); but why can't i just use `children()` or `find()` : var d = tr.find('td[col=Artist').text(); or am i missing something here?...
0
10,292,132
04/24/2012 05:22:57
604,020
02/05/2011 01:43:46
1
0
Get exit code 1 on Makefile if statement
I'm trying to get the exit code on the ifdef statement if the statement is not true, but I tried by using exit 1 and $(call exit 1) when using the first on the following code I get "Makefile:11: *** missing separator. Stop." ... ifdef PACKAGE PACKAGEDIR = $(HOME)/$(PACKAGE) else exit 1 endif ... By using the $(call exit 1) I get no error but the makefile still keeps executing. What I'm trying to accomplish is to exit the Makefile on the else with the error code 1 Thanks
makefile
exit-code
null
null
null
null
open
Get exit code 1 on Makefile if statement === I'm trying to get the exit code on the ifdef statement if the statement is not true, but I tried by using exit 1 and $(call exit 1) when using the first on the following code I get "Makefile:11: *** missing separator. Stop." ... ifdef PACKAGE PACKAGEDIR = $(HOME)/$(PACKAGE) else exit 1 endif ... By using the $(call exit 1) I get no error but the makefile still keeps executing. What I'm trying to accomplish is to exit the Makefile on the else with the error code 1 Thanks
0
5,006,965
02/15/2011 17:12:28
398,398
07/21/2010 19:36:38
790
15
What are advantages and disadvantages of loosely type in Ruby?
Let's say I have a class called Tool: class Tool def initialize( name, weight ) @name = name @weight = weight end attr_reader :name, :weight attr_writer :name, :weight def to_s name + " " + weight end end But this `Tool` can be a person if I want to: hammer = Tool.new( "Hammer", 14.5 ) pp = Tool.new( "first", "last" ) It's flexible because I can create one type and use for multiple purposes. However, if a user accidentally make a typo - lead to wrong data type, how can we track the issue? What are the advantages and disadvantages of this idea? Thanks, Chan
ruby
null
null
null
null
null
open
What are advantages and disadvantages of loosely type in Ruby? === Let's say I have a class called Tool: class Tool def initialize( name, weight ) @name = name @weight = weight end attr_reader :name, :weight attr_writer :name, :weight def to_s name + " " + weight end end But this `Tool` can be a person if I want to: hammer = Tool.new( "Hammer", 14.5 ) pp = Tool.new( "first", "last" ) It's flexible because I can create one type and use for multiple purposes. However, if a user accidentally make a typo - lead to wrong data type, how can we track the issue? What are the advantages and disadvantages of this idea? Thanks, Chan
0
10,678,817
05/21/2012 02:11:31
84,325
03/29/2009 18:16:33
1,517
6
about idekey and xdebug_session of xdebug
xdebug has two params: idekey and xdebug_session. I want to know what's the diff between those two? It seems the two is the same.
php
xdebug
null
null
null
null
open
about idekey and xdebug_session of xdebug === xdebug has two params: idekey and xdebug_session. I want to know what's the diff between those two? It seems the two is the same.
0
3,591,704
08/28/2010 17:24:00
431,771
08/26/2010 11:09:52
1
0
jQuery .html with variable
Currently I'm using Wordpress & creating my own metabox in the write post panel. I've got a script that adds a custom media upload button. When the user clicks 'insert into post' it inserts the image URL into a text box. However, I also want to display a live preview of this image & I would like the script to insert the URL also into an image src. Here is the script that currently doesn't work: jQuery(document).ready(function() { jQuery('#upload_image_button').click(function() { formfield = jQuery('#metaupload').attr('name'); tb_show('', 'media-upload.php?type=image&amp;TB_iframe=true'); return false; }); window.send_to_editor = function(html) { imgurl = jQuery('img',html).attr('src'); jQuery('#metaupload').val(imgurl); jQuery('#preview').attr('src').html(imgurl); tb_remove(); } }); IE 8 is giving the error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SU 3.28; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0) Timestamp: Sat, 28 Aug 2010 17:23:35 UTC Message: Object doesn't support this property or method Line: 12 Char: 2 Code: 0 URI: http://www.matthewruddy.com/premiumslider/wp-content/plugins/premium-slider/js/metabox_upload.js?ver=3.0.1 Can anyone help? Thanks..
jquery
img
null
null
null
null
open
jQuery .html with variable === Currently I'm using Wordpress & creating my own metabox in the write post panel. I've got a script that adds a custom media upload button. When the user clicks 'insert into post' it inserts the image URL into a text box. However, I also want to display a live preview of this image & I would like the script to insert the URL also into an image src. Here is the script that currently doesn't work: jQuery(document).ready(function() { jQuery('#upload_image_button').click(function() { formfield = jQuery('#metaupload').attr('name'); tb_show('', 'media-upload.php?type=image&amp;TB_iframe=true'); return false; }); window.send_to_editor = function(html) { imgurl = jQuery('img',html).attr('src'); jQuery('#metaupload').val(imgurl); jQuery('#preview').attr('src').html(imgurl); tb_remove(); } }); IE 8 is giving the error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SU 3.28; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0) Timestamp: Sat, 28 Aug 2010 17:23:35 UTC Message: Object doesn't support this property or method Line: 12 Char: 2 Code: 0 URI: http://www.matthewruddy.com/premiumslider/wp-content/plugins/premium-slider/js/metabox_upload.js?ver=3.0.1 Can anyone help? Thanks..
0
9,150,859
02/05/2012 16:28:37
419,776
05/16/2010 00:25:26
396
49
How to acknowledge LGPL library in my commercial software?
I have compiled a DLL from an `LGPL` project on the web. The DLL is included in my (closed) commercial software package. **Q:** How do I acknowledge the `LGPL` project? The software offers different items where an acknowledgment would be suitable: - Documentation (preferred). - Text files in the installation directory. - About box (not preferred as this yields a lot of work). What should the acknowledgment look like? Do I need to put an URL to the `LGPL` license *and* homepage of the open source project? Or do I need to include the LGPL as a text file? Please help!
licensing
lgpl
commercial
null
null
02/05/2012 22:45:29
off topic
How to acknowledge LGPL library in my commercial software? === I have compiled a DLL from an `LGPL` project on the web. The DLL is included in my (closed) commercial software package. **Q:** How do I acknowledge the `LGPL` project? The software offers different items where an acknowledgment would be suitable: - Documentation (preferred). - Text files in the installation directory. - About box (not preferred as this yields a lot of work). What should the acknowledgment look like? Do I need to put an URL to the `LGPL` license *and* homepage of the open source project? Or do I need to include the LGPL as a text file? Please help!
2
8,458,532
12/10/2011 17:42:32
1,091,473
12/10/2011 17:31:17
1
0
jquery: How to set a few onmouse listers
Not sure what i am doing wrong but alert(titleTxt); shows always other_location. I need add two onmouse listeners but seems it always attached to the last element. function ghostText(name){ obj = $("input[name='"+name+"']"); titleTxt = obj.val(); obj.css('color', '#cccccc'); obj.mouseover(function() { if(obj.val() == titleTxt){ obj.val(""); obj.css('color', '#333333'); } alert(titleTxt); }); obj.mouseout(function() { if(obj.val() == ''){ obj.val(titleTxt); obj.css('color', '#cccccc'); } }); } ghostText('keyword'); ghostText('other_location');
jquery
null
null
null
null
null
open
jquery: How to set a few onmouse listers === Not sure what i am doing wrong but alert(titleTxt); shows always other_location. I need add two onmouse listeners but seems it always attached to the last element. function ghostText(name){ obj = $("input[name='"+name+"']"); titleTxt = obj.val(); obj.css('color', '#cccccc'); obj.mouseover(function() { if(obj.val() == titleTxt){ obj.val(""); obj.css('color', '#333333'); } alert(titleTxt); }); obj.mouseout(function() { if(obj.val() == ''){ obj.val(titleTxt); obj.css('color', '#cccccc'); } }); } ghostText('keyword'); ghostText('other_location');
0
6,268,996
06/07/2011 17:09:20
97,775
04/29/2009 15:39:47
223
15
how to make 3d movie for a game
I want to know what nice big screen battle scenes/Movie, such as the Shogun - Total War. Does anyone know how to make it? is there any software (for free) can help me do it? Thanks a lot!
game-engine
movie
null
null
null
06/07/2011 17:19:48
not a real question
how to make 3d movie for a game === I want to know what nice big screen battle scenes/Movie, such as the Shogun - Total War. Does anyone know how to make it? is there any software (for free) can help me do it? Thanks a lot!
1
3,431,282
08/07/2010 17:03:35
271,262
02/11/2010 17:44:20
19
7
Which one is better for (mysql) performance ?
Which one is better for (mysql) performance ? "1500 (300x5) Tables with 365 rows per table" OR "(300x5)1500x365 rows in 1 table" ? (I will get the data(s) with php.)
php
mysql
null
null
null
08/09/2010 06:07:48
not a real question
Which one is better for (mysql) performance ? === Which one is better for (mysql) performance ? "1500 (300x5) Tables with 365 rows per table" OR "(300x5)1500x365 rows in 1 table" ? (I will get the data(s) with php.)
1
9,965,124
04/01/2012 14:27:12
1,189,610
02/04/2012 16:56:55
1
0
How to rewrite the index.php of Codeigniter on Windows Azure
How to remove index.php in codeigniter on Windows Azure and IIS. Can I rewrite URL for the index.php of Codeigniter without a particular module? Thanks :)
codeigniter
iis
azure
rewrite
null
null
open
How to rewrite the index.php of Codeigniter on Windows Azure === How to remove index.php in codeigniter on Windows Azure and IIS. Can I rewrite URL for the index.php of Codeigniter without a particular module? Thanks :)
0
3,931,659
10/14/2010 09:06:34
466,371
10/05/2010 02:01:01
34
0
Convert base 16 string to base 256 string in C++, vice versa
Anyone knows how, or any libraries that can be used? Thanks in advance!
c++
string
null
null
null
null
open
Convert base 16 string to base 256 string in C++, vice versa === Anyone knows how, or any libraries that can be used? Thanks in advance!
0
5,863,645
05/02/2011 23:40:32
668,585
03/20/2011 21:39:55
1
0
database size question
How much database space would you need to hold user information for 100,000 users?
database
null
null
null
null
05/02/2011 23:48:54
not a real question
database size question === How much database space would you need to hold user information for 100,000 users?
1
5,812,035
04/27/2011 23:47:46
482,363
10/20/2010 23:05:52
23
1
Setup a remoteLoggingServlet in GWT
From http://code.google.com/intl/es-ES/webtoolkit/doc/latest/DevGuideLogging.html under the remote logging section it says that you need to > You will also need to serve the remoteLoggingServlet. I would like to use the remote logging feature but I cannot find an example of how to do this step. I have setup the following in my .gwt.xml <!-- Logging configuration --> <inherits name="com.google.gwt.logging.Logging"/> <set-property name="gwt.logging.logLevel" value="INFO"/> <set-property name="gwt.logging.enabled" value="TRUE"/> <set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" /> <set-property name="gwt.logging.developmentModeHandler" value="ENABLED" /> <set-property name="gwt.logging.systemHandler" value="ENABLED" /> <set-property name="gwt.logging.popupHandler" value="DISABLED" /> <set-property name="gwt.logging.consoleHandler" value="DISABLED"/> <set-property name="gwt.logging.firebugHandler" value="DISABLED" /> The logs appear in the std.out console and the dev mode console but with the remote logging I get the following error SEVERE: Remote logging failed: com.google.gwt.user.client.rpc.StatusCodeException: 404 <html> at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:209) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287) at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395) at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Unknown Source)
gwt
logging
null
null
null
null
open
Setup a remoteLoggingServlet in GWT === From http://code.google.com/intl/es-ES/webtoolkit/doc/latest/DevGuideLogging.html under the remote logging section it says that you need to > You will also need to serve the remoteLoggingServlet. I would like to use the remote logging feature but I cannot find an example of how to do this step. I have setup the following in my .gwt.xml <!-- Logging configuration --> <inherits name="com.google.gwt.logging.Logging"/> <set-property name="gwt.logging.logLevel" value="INFO"/> <set-property name="gwt.logging.enabled" value="TRUE"/> <set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" /> <set-property name="gwt.logging.developmentModeHandler" value="ENABLED" /> <set-property name="gwt.logging.systemHandler" value="ENABLED" /> <set-property name="gwt.logging.popupHandler" value="DISABLED" /> <set-property name="gwt.logging.consoleHandler" value="DISABLED"/> <set-property name="gwt.logging.firebugHandler" value="DISABLED" /> The logs appear in the std.out console and the dev mode console but with the remote logging I get the following error SEVERE: Remote logging failed: com.google.gwt.user.client.rpc.StatusCodeException: 404 <html> at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:209) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287) at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395) at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Unknown Source)
0
2,214,624
02/06/2010 20:38:14
73,831
03/04/2009 18:14:42
860
54
Using a URL exclusion pattern / Running App Engine in dev mode with Guice.
I'm using GAE and Guice, but I'm running into problems on the dev server. This is my web.xml <filter> <filter-name>guiceFilter</filter-name> <filter-class>com.google.inject.servlet.GuiceFilter</filter-class> </filter> <filter-mapping> <filter-name>guiceFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> Everything works great until I decide to login, at which point it throws up a 404 cause it can't handle pages that start with `/_ah`. This means I can't do logins on the dev server or look at the admin console. Any ideas? I can't find how to add an exclusion filter to the URL matcher, and don't know which servlet GAE uses to serve development login and console :-/
guice
gae-java
google-app-engine
java
null
null
open
Using a URL exclusion pattern / Running App Engine in dev mode with Guice. === I'm using GAE and Guice, but I'm running into problems on the dev server. This is my web.xml <filter> <filter-name>guiceFilter</filter-name> <filter-class>com.google.inject.servlet.GuiceFilter</filter-class> </filter> <filter-mapping> <filter-name>guiceFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> Everything works great until I decide to login, at which point it throws up a 404 cause it can't handle pages that start with `/_ah`. This means I can't do logins on the dev server or look at the admin console. Any ideas? I can't find how to add an exclusion filter to the URL matcher, and don't know which servlet GAE uses to serve development login and console :-/
0
3,707,811
09/14/2010 09:56:15
171,453
09/10/2009 13:47:39
15
0
Gmail label/tag in sending
I am wondering if there is any functionality in Gmail so I can append label or tag to my email and then another Gmail recipient would receive this tags among the original message. This would be useful in project management with Gmail. One solution would probably be to put label as string in Subject and then create filter on a recipients side. But this is not bulletproof.
gmail
null
null
null
null
null
open
Gmail label/tag in sending === I am wondering if there is any functionality in Gmail so I can append label or tag to my email and then another Gmail recipient would receive this tags among the original message. This would be useful in project management with Gmail. One solution would probably be to put label as string in Subject and then create filter on a recipients side. But this is not bulletproof.
0
10,672,350
05/20/2012 09:40:52
1,406,068
05/20/2012 09:24:19
1
0
No visible @interface for 'NSManagedObject'
So, I have some code that is working in a similar program, but I am getting an error in this program, error in comments on the line that it shows up. This is located in my NameTViewController.m, which is supposed to be a table view controller. #import "NameTViewController.h" #import "SatFinderAppDelegate.h" #import "SatFinderViewController.h" #import "Satabase.h" @interface NameTViewController () @end @implementation NameTViewController @synthesize managedObjectContext; @synthesize Satinfos; - (void)viewDidLoad { [super viewDidLoad]; SatFinderAppDelegate *appdel = (SatFinderAppDelegate *)[[UIApplication sharedApplication]delegate]; NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"Satabase" inManagedObjectContext:managedObjectContext]; //Incompatible pointer types sending "NSManagedObject *_strong' to parameter of type 'NSManagedObjectContext *' [fetchRequest setEntity:entity]; NSError *error; self.Satinfos = [managedObjectContext executeFetchRequest:fetchRequest error:&error]; //No Visible @interface for 'NSManagedObject' declares the selector 'executeFetchRequest error:' self.title = @"Satellites"; // NSLog(@"satinfos has a count of %@ at the viewdidload", Satinfos.count); //if I uncomment this section of code it will crash to program. }
objective-c
xcode
ios5
null
null
05/22/2012 14:22:39
too localized
No visible @interface for 'NSManagedObject' === So, I have some code that is working in a similar program, but I am getting an error in this program, error in comments on the line that it shows up. This is located in my NameTViewController.m, which is supposed to be a table view controller. #import "NameTViewController.h" #import "SatFinderAppDelegate.h" #import "SatFinderViewController.h" #import "Satabase.h" @interface NameTViewController () @end @implementation NameTViewController @synthesize managedObjectContext; @synthesize Satinfos; - (void)viewDidLoad { [super viewDidLoad]; SatFinderAppDelegate *appdel = (SatFinderAppDelegate *)[[UIApplication sharedApplication]delegate]; NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"Satabase" inManagedObjectContext:managedObjectContext]; //Incompatible pointer types sending "NSManagedObject *_strong' to parameter of type 'NSManagedObjectContext *' [fetchRequest setEntity:entity]; NSError *error; self.Satinfos = [managedObjectContext executeFetchRequest:fetchRequest error:&error]; //No Visible @interface for 'NSManagedObject' declares the selector 'executeFetchRequest error:' self.title = @"Satellites"; // NSLog(@"satinfos has a count of %@ at the viewdidload", Satinfos.count); //if I uncomment this section of code it will crash to program. }
3
4,101,480
11/04/2010 21:15:00
446,576
09/13/2010 17:14:29
65
8
LayerDrawable to bitmap
I'm using a LayerDrawable to merge multiple Drawable. Now, I'd like to export my LayerDrawable to a file. I've tried this way: Bitmap b = ((BitmapDrawable)myLayerDrawable).getBitmap(); --> ClassCastException... What can I do?
android
bitmap
drawable
null
null
null
open
LayerDrawable to bitmap === I'm using a LayerDrawable to merge multiple Drawable. Now, I'd like to export my LayerDrawable to a file. I've tried this way: Bitmap b = ((BitmapDrawable)myLayerDrawable).getBitmap(); --> ClassCastException... What can I do?
0
4,526,115
12/24/2010 11:44:36
431,117
08/25/2010 19:25:28
75
5
using the online mysql server.
I have thought of developing a web-app needing some database support and do not have powerful machines to run servers. Hence i want to know how to use the online database provided by mysql. I have no idea in that matter(except that i know to use mysql). If somebody can provide some tutorials it will be very helpful
mysql
null
null
null
null
12/25/2010 01:33:51
not a real question
using the online mysql server. === I have thought of developing a web-app needing some database support and do not have powerful machines to run servers. Hence i want to know how to use the online database provided by mysql. I have no idea in that matter(except that i know to use mysql). If somebody can provide some tutorials it will be very helpful
1
7,482,252
09/20/2011 08:33:49
104,023
05/09/2009 10:22:02
267
5
Tools on Globalization/localization in asp.net
Anybody can help on finding out the tools available for Globalization/localization in asp.net or C# or in .net framework 2.0/3.5. in advance. ,<br/> nRk
.net
asp.net
localization
globalization
null
09/20/2011 08:42:52
not a real question
Tools on Globalization/localization in asp.net === Anybody can help on finding out the tools available for Globalization/localization in asp.net or C# or in .net framework 2.0/3.5. in advance. ,<br/> nRk
1
5,886,508
05/04/2011 16:13:42
154,570
08/11/2009 18:51:56
68
4
html_entity_decode in xsl not returning the expected result... :-(
I am attempting to do the following <div class="floatLeft"> <xsl:attribute name="class">mainQuestionTextNoteBellowAsterisk floatLeft</xsl:attribute> <xsl:copy-of select="php:functionString('html_entity_decode', questionbody/child::node())" /> <xsl:text> </xsl:text> </div> I have replaced 'html_entity_decode' with other string modifiers and works as expected even encoding, but when I try to decode the string I get the exact same string. Is there something I am missing? below is the call I am using to process the xml $XSLTProc = new XSLTProcessor(); $XSLTProc->registerPHPFunctions(); $XSLTProc->importStyleSheet($xslDoc); Any help is welcomed! Thanks
php
xml
transformation
null
null
null
open
html_entity_decode in xsl not returning the expected result... :-( === I am attempting to do the following <div class="floatLeft"> <xsl:attribute name="class">mainQuestionTextNoteBellowAsterisk floatLeft</xsl:attribute> <xsl:copy-of select="php:functionString('html_entity_decode', questionbody/child::node())" /> <xsl:text> </xsl:text> </div> I have replaced 'html_entity_decode' with other string modifiers and works as expected even encoding, but when I try to decode the string I get the exact same string. Is there something I am missing? below is the call I am using to process the xml $XSLTProc = new XSLTProcessor(); $XSLTProc->registerPHPFunctions(); $XSLTProc->importStyleSheet($xslDoc); Any help is welcomed! Thanks
0
8,292,366
11/28/2011 06:50:30
734,661
05/02/2011 15:00:58
10
6
UINavigation Controllers and Delegates
Some existential doubt, I have been researching on various sites and I have several examples, but I have 2 questions that I couldn`t clarify: **Navigation Controller:** I have seen about 10 examples of Navigation Controller but I cant understand it, I see as the delegates declare and show the home screen that will contain, as well, as included in the XIB files. However, this is not the case that I need, and I already have my principal screen (Window) to load (in this case my login window) I hope that what I call a screen from the main screen contains the navigation controller and go from there, moving several screens with navigation controller. But ... as I do that the screen contains the navigation controller if he declares it is already busy for my login? and do not want my application has navigation controller, but only certain specific screens (because of them depend on some options). Where I have to declare all without affecting my screen? ahhhh I miss a lot and do not understand this control (UINavigationController). Is to serve, but not consume it on the screens as I desire, and not in the entire application. **What are the delegates?:** I have used very little, and as often as I used it because I saw reference to other examples and usually try not to use it because do not know how to use it. Not if I could explain non-technical manner but a little more understandable that it is all the Delegates. **What is it?** **How to use?** **Do I know where to use it?** **I know when I should use it.** **It uses little or a lot in quality applications.**** Sorry for the inconvenience, this is because it confuses me because NavigationController and there I left several questions, if I turn to you is because I ran out and for more resources to investigate and analize examples but i can't understand yet.
objective-c
xcode
uinavigationcontroller
uinavigationbar
uiapplicationdelegate
11/28/2011 16:10:24
not a real question
UINavigation Controllers and Delegates === Some existential doubt, I have been researching on various sites and I have several examples, but I have 2 questions that I couldn`t clarify: **Navigation Controller:** I have seen about 10 examples of Navigation Controller but I cant understand it, I see as the delegates declare and show the home screen that will contain, as well, as included in the XIB files. However, this is not the case that I need, and I already have my principal screen (Window) to load (in this case my login window) I hope that what I call a screen from the main screen contains the navigation controller and go from there, moving several screens with navigation controller. But ... as I do that the screen contains the navigation controller if he declares it is already busy for my login? and do not want my application has navigation controller, but only certain specific screens (because of them depend on some options). Where I have to declare all without affecting my screen? ahhhh I miss a lot and do not understand this control (UINavigationController). Is to serve, but not consume it on the screens as I desire, and not in the entire application. **What are the delegates?:** I have used very little, and as often as I used it because I saw reference to other examples and usually try not to use it because do not know how to use it. Not if I could explain non-technical manner but a little more understandable that it is all the Delegates. **What is it?** **How to use?** **Do I know where to use it?** **I know when I should use it.** **It uses little or a lot in quality applications.**** Sorry for the inconvenience, this is because it confuses me because NavigationController and there I left several questions, if I turn to you is because I ran out and for more resources to investigate and analize examples but i can't understand yet.
1
8,330,336
11/30/2011 17:33:20
916,552
08/28/2011 15:34:37
146
0
Matter with deleting an account from database based on username
This is homework I already turned in. All the pages are functional except this removelogon php page. The error querying database is undefined variable: Referring to the username which is the account I want deleted. I went over this have a dozen times but don't see how to fix it. Any suggestions? Here is the code:[enter link description here][1] <?php $dbc = mysql_connect('localhost', 'cis54student', 'student', 'cis54') or die('Error connecting to MySQL server'); $mlogon = $$_POST['mlogon']; $query = "DELETE FROM logon WHERE mlogon = $mlogon"; mysqli_query($dbc, $query) or die('Error querying database.'); echo 'Customer removed: ' .' $mlogon'; //close database mysqli_close($dbc); ?> [1]: http://ciswebs.smc.edu/cis54/tyson_schweidel/logon/menu.htm
php
mysql
null
null
null
11/30/2011 18:35:01
not a real question
Matter with deleting an account from database based on username === This is homework I already turned in. All the pages are functional except this removelogon php page. The error querying database is undefined variable: Referring to the username which is the account I want deleted. I went over this have a dozen times but don't see how to fix it. Any suggestions? Here is the code:[enter link description here][1] <?php $dbc = mysql_connect('localhost', 'cis54student', 'student', 'cis54') or die('Error connecting to MySQL server'); $mlogon = $$_POST['mlogon']; $query = "DELETE FROM logon WHERE mlogon = $mlogon"; mysqli_query($dbc, $query) or die('Error querying database.'); echo 'Customer removed: ' .' $mlogon'; //close database mysqli_close($dbc); ?> [1]: http://ciswebs.smc.edu/cis54/tyson_schweidel/logon/menu.htm
1
6,993,860
08/09/2011 09:14:17
464,527
10/02/2010 10:20:54
1
0
ASP.NET DynamicData edit logic for depending fields
I want to control some fields in a dynamic data edit page. So for example : when a specific type is chosen in a combobox, other input fields should be disabled or should be set to a specific value. How should this logic be implemented, a custom edit page ? Or can it be controlled from the model metadata ?
asp.net
entity-framework
dynamic-data
null
null
null
open
ASP.NET DynamicData edit logic for depending fields === I want to control some fields in a dynamic data edit page. So for example : when a specific type is chosen in a combobox, other input fields should be disabled or should be set to a specific value. How should this logic be implemented, a custom edit page ? Or can it be controlled from the model metadata ?
0
10,694,571
05/22/2012 01:04:52
540,585
12/13/2010 13:54:19
176
16
Verify if my node.js instance is dev or production
Right now, whenever I want to deploy a node.js server to my production server, I need to change all the IP/DNS/username/password for my various connection to my databases and external APIs. This process is annoying, is there a way to verify if the currently running node.js instance is in cloud9ide or actually my production joyent smartmachine? If I am able to detemrine (in my running code) on which server my node.js instance is running , I'll add a condition that set the values to the prod or dev. Thank you
javascript
node.js
express
cloud9-ide
joyent
null
open
Verify if my node.js instance is dev or production === Right now, whenever I want to deploy a node.js server to my production server, I need to change all the IP/DNS/username/password for my various connection to my databases and external APIs. This process is annoying, is there a way to verify if the currently running node.js instance is in cloud9ide or actually my production joyent smartmachine? If I am able to detemrine (in my running code) on which server my node.js instance is running , I'll add a condition that set the values to the prod or dev. Thank you
0
8,460,865
12/10/2011 23:54:36
306
08/04/2008 14:09:03
1,262
30
Is there a tool which can convert dalvik bytecode back into jvm bytecode?
I'm interested in finding ways to run .apk's on your traditional OS without using a VM and android-x86.
android
dalvik
null
null
null
12/11/2011 06:32:45
not a real question
Is there a tool which can convert dalvik bytecode back into jvm bytecode? === I'm interested in finding ways to run .apk's on your traditional OS without using a VM and android-x86.
1
7,260,732
08/31/2011 17:06:54
890,179
08/11/2011 15:03:06
11
0
Unable to update Facebook Payments settings error
I want to add credits to my fb app but I am unable to add a callback url. I get a "Unable to update Facebook Payments settings." error every time. Has anyone found the cause or a solution for this issue? Thanks!
application
facebook-credits
null
null
null
05/30/2012 19:00:23
too localized
Unable to update Facebook Payments settings error === I want to add credits to my fb app but I am unable to add a callback url. I get a "Unable to update Facebook Payments settings." error every time. Has anyone found the cause or a solution for this issue? Thanks!
3
9,275,810
02/14/2012 11:08:33
1,022,177
10/31/2011 14:54:37
1,974
128
Merge separate DLL's into a single assembly for open source distribution
I have written a lib that I am about to publish open source. It uses MS Unity. Should I merge the Unity DLL's (Microsoft.Practices.Unity.dll & Microsoft.Practices.ServiceLocation.dll) into the OS lib using ILMerge, should I simply ship the DLL's along side the OS DLL or neither?
c#
.net
open-source
ilmerge
null
null
open
Merge separate DLL's into a single assembly for open source distribution === I have written a lib that I am about to publish open source. It uses MS Unity. Should I merge the Unity DLL's (Microsoft.Practices.Unity.dll & Microsoft.Practices.ServiceLocation.dll) into the OS lib using ILMerge, should I simply ship the DLL's along side the OS DLL or neither?
0
1,096,824
07/08/2009 08:32:27
91,516
04/16/2009 08:45:23
6
0
How to prevent Visual Studio from compiling solution after I exit debug mode?
Visual Studio builds the entire solution when I exit debug mode. This is very annoying as the solution contains 42 projects (ASP.NET MVC, IIS hosted WCF, Silverlight apps and others) and the build process locks Visual Studio for aprox. 30 seconds. What causes Visual Studio to do a full rebuild of the solution? Is there a setting that I can turn on to determine the root of the problem?
visual-studio-2008
build
debugging
annoyance
null
null
open
How to prevent Visual Studio from compiling solution after I exit debug mode? === Visual Studio builds the entire solution when I exit debug mode. This is very annoying as the solution contains 42 projects (ASP.NET MVC, IIS hosted WCF, Silverlight apps and others) and the build process locks Visual Studio for aprox. 30 seconds. What causes Visual Studio to do a full rebuild of the solution? Is there a setting that I can turn on to determine the root of the problem?
0
9,634,503
03/09/2012 13:03:00
956,192
09/21/2011 05:36:28
180
3
how to display wave form visualizer without using Open GLES when playing audio in iPhone?
In my iphone application, i want to add wave forms visualization.How to write the functionality with out using Open GLES? Could you explain which process have to approach for getting waves form visualization when playing any audio files? Thanking you in advance
iphone
objective-c
null
null
null
null
open
how to display wave form visualizer without using Open GLES when playing audio in iPhone? === In my iphone application, i want to add wave forms visualization.How to write the functionality with out using Open GLES? Could you explain which process have to approach for getting waves form visualization when playing any audio files? Thanking you in advance
0
7,287,085
09/02/2011 17:24:41
925,733
09/02/2011 17:14:54
1
0
Sending forms in Facebook applications
Today, my almost finished Facebook application stopped working *(thank you, dear Facebook, I don't feel the urge to smash my head against a wall at all)*. I have some sort of a "registration" form in the app for setting the user's in-game nick and similar stuff. The problem is that upon submitting the form, the Facebook PHP SDK insists that `$facebook->getUser()` is `NULL`. My code reacts to this by redirecting the user to `$facebook->getLoginUrl(array("scope" => ..., etcetera))`. Then, the user is redirected back to my application by Facebook, but, of course, without the data that was posted into the form. I assume I should probably pass some sort of a hidden element in the form so that the Facebook PHP SDK can do its magic. Could you please tell me how does one use forms in a Facebook app properly?
php
facebook
forms
post
sdk
01/11/2012 12:58:30
too localized
Sending forms in Facebook applications === Today, my almost finished Facebook application stopped working *(thank you, dear Facebook, I don't feel the urge to smash my head against a wall at all)*. I have some sort of a "registration" form in the app for setting the user's in-game nick and similar stuff. The problem is that upon submitting the form, the Facebook PHP SDK insists that `$facebook->getUser()` is `NULL`. My code reacts to this by redirecting the user to `$facebook->getLoginUrl(array("scope" => ..., etcetera))`. Then, the user is redirected back to my application by Facebook, but, of course, without the data that was posted into the form. I assume I should probably pass some sort of a hidden element in the form so that the Facebook PHP SDK can do its magic. Could you please tell me how does one use forms in a Facebook app properly?
3
9,650,273
03/10/2012 21:20:04
481,083
10/19/2010 22:49:23
150
6
How can I access the bit representation of a file using Scheme?
If I had a file called raw_text.txt, is there a way I could iterate through each bit? I see the following but am confused on how to use it: http://www.gnu.org/software/mit-scheme/documentation/mit-scheme-ref/File-Manipulation.html — procedure: file-attributes/mode-string attributes The mode string of the file, a newly allocated string showing the file's mode bits. Under unix, this string is in unix format. Under Windows, this string shows the standard “DOS” attributes in their usual format.
io
scheme
null
null
null
null
open
How can I access the bit representation of a file using Scheme? === If I had a file called raw_text.txt, is there a way I could iterate through each bit? I see the following but am confused on how to use it: http://www.gnu.org/software/mit-scheme/documentation/mit-scheme-ref/File-Manipulation.html — procedure: file-attributes/mode-string attributes The mode string of the file, a newly allocated string showing the file's mode bits. Under unix, this string is in unix format. Under Windows, this string shows the standard “DOS” attributes in their usual format.
0
9,086,088
01/31/2012 20:02:38
636,997
02/28/2011 00:58:45
92
4
What are DOS programs written in?
I've always been curious... What programming language are DOS programs written in? For example, this program: http://keyhut.com/pos.htm You can use the arrows on the keyboard to select options, type in things, press enter to do things... At my work, all of our backend looks like DOS, the blue screen, you use the arrows on keyboard to select options... etc. How could I create an interactive DOS program like that?
windows
dos
null
null
null
01/31/2012 20:14:54
not a real question
What are DOS programs written in? === I've always been curious... What programming language are DOS programs written in? For example, this program: http://keyhut.com/pos.htm You can use the arrows on the keyboard to select options, type in things, press enter to do things... At my work, all of our backend looks like DOS, the blue screen, you use the arrows on keyboard to select options... etc. How could I create an interactive DOS program like that?
1
11,547,910
07/18/2012 18:24:40
1,512,962
07/09/2012 19:36:37
55
6
How to create a OS
I am looking to write a simple OS but I know very little about writing a OS or where to start. I am looking for a place to start for begginners. I know an operating system is sometimes coded in C and assembaly language, and I know a little of C. All I really want to know is: - How to get started (Virtual machines, compilers, how to run side by side with Windows, etc.) - Create a basic OS (That only displays a few lines of text) - Get input from and output to devices (Keyboard, Mouse, COM Ports, Printers, Flash Drives, etc.) I would appreciate any help and\or links to get started. (I am using Windows XP SP3) **I don't want any premaid OS with source code. I want to learn how to make an OS from scratch.**
c
assembly
operating-system
null
null
07/18/2012 18:42:38
not a real question
How to create a OS === I am looking to write a simple OS but I know very little about writing a OS or where to start. I am looking for a place to start for begginners. I know an operating system is sometimes coded in C and assembaly language, and I know a little of C. All I really want to know is: - How to get started (Virtual machines, compilers, how to run side by side with Windows, etc.) - Create a basic OS (That only displays a few lines of text) - Get input from and output to devices (Keyboard, Mouse, COM Ports, Printers, Flash Drives, etc.) I would appreciate any help and\or links to get started. (I am using Windows XP SP3) **I don't want any premaid OS with source code. I want to learn how to make an OS from scratch.**
1
11,669,366
07/26/2012 12:32:16
1,172,845
01/27/2012 05:22:08
51
4
upload larger then 1 gb file using php script?
I want to uplod the wmv and flv file in php using uplodify. but cant succeed $(function() { $("#file_upload").uploadify({ 'swf' : 'uploadify/uploadify.swf', 'uploader' : 'uploadify/uploadify.php', 'uploadLimit' : 1, 'folder' : 'uploads', 'method' : 'post', 'auto' : true, 'multi' : true, 'fileExt' : '*.jpg; *.gif; *.png; *.jpeg; *.wmv; *.flv', 'onUploadSuccess' : function(file, data, response) { alert('The file was saved to: ' + file); } }); }); // uplodify.php $targetFolder = '/uploads'; // Relative to the root if (!empty($_FILES)) { $tempFile = $_FILES['Filedata']['tmp_name']; $targetPath = $_SERVER['DOCUMENT_ROOT'] . $targetFolder; $targetFile = rtrim($targetPath,'/') . '/' . $_FILES['Filedata']['name']; // Validate the file type $fileTypes = array('jpg','jpeg','gif','png','wmv'); // File extensions $fileParts = pathinfo($_FILES['Filedata']['name']); move_uploaded_file($tempFile,$targetFile); } This is my code but cant able to upload it . but cant able to upload the wmv and flv files. Thanks in advance.
php
javascript
jquery
upload
null
null
open
upload larger then 1 gb file using php script? === I want to uplod the wmv and flv file in php using uplodify. but cant succeed $(function() { $("#file_upload").uploadify({ 'swf' : 'uploadify/uploadify.swf', 'uploader' : 'uploadify/uploadify.php', 'uploadLimit' : 1, 'folder' : 'uploads', 'method' : 'post', 'auto' : true, 'multi' : true, 'fileExt' : '*.jpg; *.gif; *.png; *.jpeg; *.wmv; *.flv', 'onUploadSuccess' : function(file, data, response) { alert('The file was saved to: ' + file); } }); }); // uplodify.php $targetFolder = '/uploads'; // Relative to the root if (!empty($_FILES)) { $tempFile = $_FILES['Filedata']['tmp_name']; $targetPath = $_SERVER['DOCUMENT_ROOT'] . $targetFolder; $targetFile = rtrim($targetPath,'/') . '/' . $_FILES['Filedata']['name']; // Validate the file type $fileTypes = array('jpg','jpeg','gif','png','wmv'); // File extensions $fileParts = pathinfo($_FILES['Filedata']['name']); move_uploaded_file($tempFile,$targetFile); } This is my code but cant able to upload it . but cant able to upload the wmv and flv files. Thanks in advance.
0
7,486,198
09/20/2011 13:45:28
954,872
09/20/2011 13:39:28
1
0
Facebook connect on pageload of my website
I want my web to check the incoming user whether he/she is already login with facebook or not. If he/she is logged in then my application will allow the user and set its info like name and profile pic. if he is not logged in with facebook then my application will open a login area.
facebook-connect
login-script
null
null
null
09/20/2011 20:21:16
not a real question
Facebook connect on pageload of my website === I want my web to check the incoming user whether he/she is already login with facebook or not. If he/she is logged in then my application will allow the user and set its info like name and profile pic. if he is not logged in with facebook then my application will open a login area.
1
7,631,285
10/03/2011 05:23:50
807,907
06/21/2011 06:33:25
1
0
JBoss - prevent page reload on back
We currently changed the server from tomcat to jboss, and now whenever the back button is clicked it always reloads the page, instead of loading the page from the cache. Is there any specific configuration that needs to be switched off/on? I am not sure what needs to done to prevent page reload on click of back :(
jboss
page
reload
null
null
null
open
JBoss - prevent page reload on back === We currently changed the server from tomcat to jboss, and now whenever the back button is clicked it always reloads the page, instead of loading the page from the cache. Is there any specific configuration that needs to be switched off/on? I am not sure what needs to done to prevent page reload on click of back :(
0
11,172,365
06/23/2012 19:31:26
570,940
01/11/2011 07:48:43
65
9
Installing PostgreSQL on Windows Server 2008
Trying to install PGSQL on Server 2008 SP2 (not R2) x86_32. Got errors like "setup can't initialize database" and something like that. And also installation doesn't fill data directory - it empty. I tried start PGSQL manually via pg_ctl(register and start) and initdb, but nothing works. Reinstalled many times with removing postgres user via Computer Management and his folder. Again, no result. Guys, maybe you have good manuals or experience about deploying PGSQL on Server 2008?
postgresql
windows-server-2008
windows-server
null
null
06/25/2012 11:54:25
off topic
Installing PostgreSQL on Windows Server 2008 === Trying to install PGSQL on Server 2008 SP2 (not R2) x86_32. Got errors like "setup can't initialize database" and something like that. And also installation doesn't fill data directory - it empty. I tried start PGSQL manually via pg_ctl(register and start) and initdb, but nothing works. Reinstalled many times with removing postgres user via Computer Management and his folder. Again, no result. Guys, maybe you have good manuals or experience about deploying PGSQL on Server 2008?
2
10,589,667
05/14/2012 19:15:48
1,344,941
04/19/2012 19:41:02
1
0
calculating totals
i have several tables in my database -Orders -OrderDetials -customers etc i need to calculate each table's row total and combine it in a single output that has only the table names and row total of each table is there anyone that can help me with some advise, I've been struggling a lot.
mysql
sql
sql-server-2008
null
null
05/22/2012 12:58:25
not a real question
calculating totals === i have several tables in my database -Orders -OrderDetials -customers etc i need to calculate each table's row total and combine it in a single output that has only the table names and row total of each table is there anyone that can help me with some advise, I've been struggling a lot.
1
4,731,440
01/19/2011 03:22:19
228,173
12/09/2009 17:57:34
602
28
Java Denpendency Injection Framework?
1. What dependency injection (DI) framework should I use in Java? 2. Is there a quick tutorial on how to use it? I came from the .Net background, and know the concepts of DI. In C#, I use [Ninject][1] and I'm pretty happy with it. [1]: http://ninject.org/
java
dependency-injection
null
null
null
04/30/2012 21:48:30
not constructive
Java Denpendency Injection Framework? === 1. What dependency injection (DI) framework should I use in Java? 2. Is there a quick tutorial on how to use it? I came from the .Net background, and know the concepts of DI. In C#, I use [Ninject][1] and I'm pretty happy with it. [1]: http://ninject.org/
4
11,399,567
07/09/2012 16:48:12
1,270,259
03/14/2012 22:21:04
6
0
Can I sync Jquery Full Calendar with Outlook, Gmail calendar and or ical?
is this possible? I know I can fetch appointments and jazz through json but is there any way to use PHP and this full calendar to say - take whats here and sync with such and such services?
php
jquery
outlook
fullcalendar
null
07/10/2012 11:40:25
not a real question
Can I sync Jquery Full Calendar with Outlook, Gmail calendar and or ical? === is this possible? I know I can fetch appointments and jazz through json but is there any way to use PHP and this full calendar to say - take whats here and sync with such and such services?
1
11,081,999
06/18/2012 11:36:53
111,510
05/23/2009 13:10:53
44
1
Django-endless-pagination fails when using template inheritance
[Django Endless Pagination](http://django-endless-pagination.readthedocs.org/) works perfectly fine right until I use template inheritance. views.py: from django.shortcuts import render def home(request): objects = range(30) return render(request, 'index.html', locals() ) index.html: {% extends "root.html" %} {% load endless %} {% paginate objects %} {% block content %} {{ objects }} <br/> <br/> {% show_pages %} {% endblock %} root.html: <div class="content"> {% block content %}{% endblock %} </div> If I uncomment the line ```{% extends "root.html" %}``` in index.html it works. Otherwise I get the following error: Error during template rendering In template /Users/tuk/Desktop/endlesstest/templates/index.html, error at line 10 Cannot find endless page in context. 1 {% extends "root.html" %} 2 3 {% load endless %} 4 5 {% paginate objects %} 6 {% block content %} 7 {{ objects }} 8 <br/> 9 <br/> 10 {% show_pages %} 11 {% endblock %}
python
django
django-templates
pagination
null
null
open
Django-endless-pagination fails when using template inheritance === [Django Endless Pagination](http://django-endless-pagination.readthedocs.org/) works perfectly fine right until I use template inheritance. views.py: from django.shortcuts import render def home(request): objects = range(30) return render(request, 'index.html', locals() ) index.html: {% extends "root.html" %} {% load endless %} {% paginate objects %} {% block content %} {{ objects }} <br/> <br/> {% show_pages %} {% endblock %} root.html: <div class="content"> {% block content %}{% endblock %} </div> If I uncomment the line ```{% extends "root.html" %}``` in index.html it works. Otherwise I get the following error: Error during template rendering In template /Users/tuk/Desktop/endlesstest/templates/index.html, error at line 10 Cannot find endless page in context. 1 {% extends "root.html" %} 2 3 {% load endless %} 4 5 {% paginate objects %} 6 {% block content %} 7 {{ objects }} 8 <br/> 9 <br/> 10 {% show_pages %} 11 {% endblock %}
0
11,251,532
06/28/2012 19:26:27
1,489,580
06/28/2012 19:20:59
1
0
SQL UNION without using the individual column names
I want to take the union of two tables. They both have unequal number of columns and some of them are in common and some are not. How would i take its union them without using the individual column names (inserting dummy columns in between). I have to query and take the union of couple of tables and would be testing on different databases, which would have different column names for the same table. Hence, i could not use the common way of addressing the individual column names and inserting dummy columns to get the union. Thanks, gokul.
sql-server
null
null
null
null
06/29/2012 03:09:05
too localized
SQL UNION without using the individual column names === I want to take the union of two tables. They both have unequal number of columns and some of them are in common and some are not. How would i take its union them without using the individual column names (inserting dummy columns in between). I have to query and take the union of couple of tables and would be testing on different databases, which would have different column names for the same table. Hence, i could not use the common way of addressing the individual column names and inserting dummy columns to get the union. Thanks, gokul.
3
11,144,472
06/21/2012 18:27:12
1,391,678
05/13/2012 00:54:08
34
0
Enter Data Into a PHP File, Using PHP
This is the same project as the other Question I Had. Im wondering how To use a .php to enter data into a CERTAIN LOCATION to another php file, so think of it as remotly adding in data. Ive Googled, and havent found much, and Im Sure I got the php editing down, im just clueless on how I would Enter the data into a specific point. Any Help Would Be appreciated Edit: sorry souurce didnt post.<?php // Parameters (Leave this Alone) $Message = $_GET["message"]; $Username = htmlspecialchars($_GET["username"]); $time = ($_GET["time"]); // User Banning $data = file_get_contents('Banned.txt'); if(strpos($data, $Username) !== FALSE) { die(); } else { // --------------- Staff Members ---------------- // // Admins // If ($Username=="!divider!user") $Username="!divider![Admin] User1"; If ($Username=="!divider!user2") $Username="!divider![Admin] user"; // File Writing (Leave this Alone) $File = "Chat.txt"; $Handle = fopen($File, "a"); fwrite($Handle, $Username); fwrite($Handle, ": "); fwrite($Handle, $Message); fwrite($Handle, " -:-:- "); fwrite($Handle, $time); fwrite($Handle, "\r\n"); print "Data Written"; fclose($Handle); } ?> Im trying to use another php file, to add staff under the staff list. the client I will be using will fill in everything in front and behind of the username for php. Again, dont know why my source didn tpost before.
php
file
data
fwrite
null
06/21/2012 19:46:52
not a real question
Enter Data Into a PHP File, Using PHP === This is the same project as the other Question I Had. Im wondering how To use a .php to enter data into a CERTAIN LOCATION to another php file, so think of it as remotly adding in data. Ive Googled, and havent found much, and Im Sure I got the php editing down, im just clueless on how I would Enter the data into a specific point. Any Help Would Be appreciated Edit: sorry souurce didnt post.<?php // Parameters (Leave this Alone) $Message = $_GET["message"]; $Username = htmlspecialchars($_GET["username"]); $time = ($_GET["time"]); // User Banning $data = file_get_contents('Banned.txt'); if(strpos($data, $Username) !== FALSE) { die(); } else { // --------------- Staff Members ---------------- // // Admins // If ($Username=="!divider!user") $Username="!divider![Admin] User1"; If ($Username=="!divider!user2") $Username="!divider![Admin] user"; // File Writing (Leave this Alone) $File = "Chat.txt"; $Handle = fopen($File, "a"); fwrite($Handle, $Username); fwrite($Handle, ": "); fwrite($Handle, $Message); fwrite($Handle, " -:-:- "); fwrite($Handle, $time); fwrite($Handle, "\r\n"); print "Data Written"; fclose($Handle); } ?> Im trying to use another php file, to add staff under the staff list. the client I will be using will fill in everything in front and behind of the username for php. Again, dont know why my source didn tpost before.
1
3,667,695
09/08/2010 12:26:29
436,802
09/01/2010 09:32:42
5
0
C#: How do you access an object instance?
I created a splash class with a timer on it, and when the timer is finished it instances another class as shown in the code below. When i then create a new class how can i access MainWindow? <code> namespace Kinetics { public class KineticsCommand : RMA.Rhino.MRhinoCommand { Splash Splash = new Splash(); Splash.Show(); } public partial class Splash : Form { public Splash() { InitializeComponent(); } private void timer1_Tick(object sender, EventArgs e) { this.Close(); MainUI MainWindow = new MainUI(); MainWindow.Show(); } } public class CustomEventWatcher : MRhinoEventWatcher { public override void OnReplaceObject(ref MRhinoDoc doc, ref MRhinoObject old, ref MRhinoObject obj) { How can i access the class from here? } } } </code>
c#
class
access
null
null
null
open
C#: How do you access an object instance? === I created a splash class with a timer on it, and when the timer is finished it instances another class as shown in the code below. When i then create a new class how can i access MainWindow? <code> namespace Kinetics { public class KineticsCommand : RMA.Rhino.MRhinoCommand { Splash Splash = new Splash(); Splash.Show(); } public partial class Splash : Form { public Splash() { InitializeComponent(); } private void timer1_Tick(object sender, EventArgs e) { this.Close(); MainUI MainWindow = new MainUI(); MainWindow.Show(); } } public class CustomEventWatcher : MRhinoEventWatcher { public override void OnReplaceObject(ref MRhinoDoc doc, ref MRhinoObject old, ref MRhinoObject obj) { How can i access the class from here? } } } </code>
0
4,767,763
01/22/2011 12:20:04
585,564
01/22/2011 12:15:03
1
0
What's the best ASP.NET 4 book
Whats the best ASP.NET 4 book for newbies to the framework, that you can recommend? Thanks Piccadilly.
asp.net
null
null
null
null
08/22/2011 11:34:43
not constructive
What's the best ASP.NET 4 book === Whats the best ASP.NET 4 book for newbies to the framework, that you can recommend? Thanks Piccadilly.
4
7,602,580
09/29/2011 19:44:02
334,938
05/06/2010 23:31:47
13
1
Why is Facebook modifying URLs in links?
I'm not sure when this started, but as of this morning, when a user shares a link to my site on Facebook, it's being modified in the feed. If I paste e.g. "http://style.ly" into the status box, I get the following: ![Appearance after pasting, before posting][1] Note that the URL is correct in the preview. After posting, I get: ![Appearance after posting][2] The content of my post itself is unmolested, but the link now points to the www subdomain. We've added a CNAME record to account for this, but I don't understand why Facebook is modifying the URLs I share. I considered that it might be because the page being shared has &lt;meta property="og:type" content="website"&gt;, but changing that makes no difference. One other thing: URLs that already have a subdomain are left alone. That makes sense, but it doesn't tell me anything about why this is being done. ![Subdomains prevent this behavior][3] Has anyone else noticed this? [1]: http://i.stack.imgur.com/sU7MF.png [2]: http://i.stack.imgur.com/bpfNj.png [3]: http://i.stack.imgur.com/gyDFE.png
facebook
hyperlink
subdomain
feed
web
10/02/2011 10:46:54
off topic
Why is Facebook modifying URLs in links? === I'm not sure when this started, but as of this morning, when a user shares a link to my site on Facebook, it's being modified in the feed. If I paste e.g. "http://style.ly" into the status box, I get the following: ![Appearance after pasting, before posting][1] Note that the URL is correct in the preview. After posting, I get: ![Appearance after posting][2] The content of my post itself is unmolested, but the link now points to the www subdomain. We've added a CNAME record to account for this, but I don't understand why Facebook is modifying the URLs I share. I considered that it might be because the page being shared has &lt;meta property="og:type" content="website"&gt;, but changing that makes no difference. One other thing: URLs that already have a subdomain are left alone. That makes sense, but it doesn't tell me anything about why this is being done. ![Subdomains prevent this behavior][3] Has anyone else noticed this? [1]: http://i.stack.imgur.com/sU7MF.png [2]: http://i.stack.imgur.com/bpfNj.png [3]: http://i.stack.imgur.com/gyDFE.png
2
7,043,520
08/12/2011 16:50:08
603,355
02/04/2011 15:06:21
693
15
Detect active javascript event handlers
How can I detect which javascript event handlers are currently active for the document? Or a particular element?
javascript
events
event-handling
null
null
null
open
Detect active javascript event handlers === How can I detect which javascript event handlers are currently active for the document? Or a particular element?
0
7,617,106
09/30/2011 23:40:26
311,744
04/08/2010 09:02:45
1,168
98
How to make a title blink until it becomes active with jQuery?
I have a javascript chat. When a user receives a message, I want [the title][1] to blink until it becomes active. (like Gmail Talk) For example: - You are in an other tab. Title is `My website` - Someone talks to you. Title blinks betwen `My website` and `User says: bla bla` - So you click the tab, and now the title is `My website` How can I achieve that using jQuery ? [1]: http://www.w3schools.com/tags/tag_title.asp
javascript
jquery
html
notifications
blink
null
open
How to make a title blink until it becomes active with jQuery? === I have a javascript chat. When a user receives a message, I want [the title][1] to blink until it becomes active. (like Gmail Talk) For example: - You are in an other tab. Title is `My website` - Someone talks to you. Title blinks betwen `My website` and `User says: bla bla` - So you click the tab, and now the title is `My website` How can I achieve that using jQuery ? [1]: http://www.w3schools.com/tags/tag_title.asp
0
4,650,653
01/10/2011 19:30:05
559,372
12/31/2010 16:56:27
1
0
Using Twisted Web Proxy with other proxies (squid)
Is it possible to have a twisted web proxy and a squid proxy working together? Namely: Client --> Squid --> Twisted Web Proxy ---> Internet I can set up squid so that it names the IP/port of the machine with a twisted web proxy running on it but I don't know how to set up twisted web to be a member of the proxy hierarchy.
python
proxy
hierarchy
squid
twisted.web
null
open
Using Twisted Web Proxy with other proxies (squid) === Is it possible to have a twisted web proxy and a squid proxy working together? Namely: Client --> Squid --> Twisted Web Proxy ---> Internet I can set up squid so that it names the IP/port of the machine with a twisted web proxy running on it but I don't know how to set up twisted web to be a member of the proxy hierarchy.
0
6,306,265
06/10/2011 12:20:46
542,994
08/09/2010 11:41:11
49
2
Finding the position of occurance of a word in a string
I have an a pipe delimited string "Y|Y|Y|N|N". How can I find the position of first occurring of N using code after processing the string.
flash
actionscript-3
null
null
null
null
open
Finding the position of occurance of a word in a string === I have an a pipe delimited string "Y|Y|Y|N|N". How can I find the position of first occurring of N using code after processing the string.
0
4,972,211
02/11/2011 17:38:09
841,836
07/19/2009 16:54:29
3
4
Way wont my jquery plugin work
I made a jquery plugin and it work on my mac but when i upload to a sever it don't work. Way is that? [see][1] [1]: http://www.searchbox34.net23.net/rss/index.html
jquery
plugins
jquery-plugins
jquery-ajax
null
02/11/2011 17:50:19
not a real question
Way wont my jquery plugin work === I made a jquery plugin and it work on my mac but when i upload to a sever it don't work. Way is that? [see][1] [1]: http://www.searchbox34.net23.net/rss/index.html
1
8,273,062
11/25/2011 18:35:26
1,066,120
11/25/2011 18:25:11
1
0
How to get Excel connection names in vba?
How to get Excel connection names in vba? I would like to know how to get the list of connection names in Excel using vba commend.
excel
vba
connection
names
null
11/26/2011 03:22:02
not a real question
How to get Excel connection names in vba? === How to get Excel connection names in vba? I would like to know how to get the list of connection names in Excel using vba commend.
1
10,440,702
05/03/2012 23:22:48
1,229,013
02/23/2012 17:39:49
38
3
Hardlink or not?
Is there any way, using 'ls' or a simple command, to know if the file is a hard link or not? Is there any way to know, if two files shares the same inode number, which one is a hard link on the other? Thanks,
linux
bash
hardlink
null
null
05/03/2012 23:27:46
off topic
Hardlink or not? === Is there any way, using 'ls' or a simple command, to know if the file is a hard link or not? Is there any way to know, if two files shares the same inode number, which one is a hard link on the other? Thanks,
2
3,880,725
10/07/2010 10:27:30
33,663
11/03/2008 14:40:00
2,222
175
Remove entity in NHibernate only by primary key
I'm trying to implement a repository method for removing entities using only primary key, mainly because from a webapp I usually only are aware of the primary key when invoking a "delete request" from a web page. Because of the ORM, the option today is to get the entity from the database, and then deleting it, which gives me an extra roundtrip. I could use HQL delete, but since I want to create a generic delete method for all entities, that won't fly unless I use reflection to find out which field that is the primary key (doable, but doesn't feel correct). Or is it in the nature of NHibernate to need the entity in order to correctly handle cascades? I tried this approach, with the assumption that it would not load the entity unless explicitly necessary, however haven't had time to test it yet. Maybe someone can shed some light on how this will be handled? var entity = session.Load<T>( primaryKey ); session.Delete( entity );
c#
nhibernate
null
null
null
null
open
Remove entity in NHibernate only by primary key === I'm trying to implement a repository method for removing entities using only primary key, mainly because from a webapp I usually only are aware of the primary key when invoking a "delete request" from a web page. Because of the ORM, the option today is to get the entity from the database, and then deleting it, which gives me an extra roundtrip. I could use HQL delete, but since I want to create a generic delete method for all entities, that won't fly unless I use reflection to find out which field that is the primary key (doable, but doesn't feel correct). Or is it in the nature of NHibernate to need the entity in order to correctly handle cascades? I tried this approach, with the assumption that it would not load the entity unless explicitly necessary, however haven't had time to test it yet. Maybe someone can shed some light on how this will be handled? var entity = session.Load<T>( primaryKey ); session.Delete( entity );
0
5,533,704
04/04/2011 01:18:30
540,009
12/13/2010 02:06:56
398
0
python sys.argv limitations?
Suppose I'd like to run a python script like this: `python my_script.py MY_INPUT`. In this case, `MY_INPUT` will be transmitted to `sys.argv[0]`. Is there a limit to the **number** of characters `MY_INPUT` can contain? Is there a limit to the **type** of characters `MY_INPUT` can contain? Any other limitations with regards to `MY_INPUT`? **UPDATE:** I am using Ubuntu Linux 10.04
python
null
null
null
null
null
open
python sys.argv limitations? === Suppose I'd like to run a python script like this: `python my_script.py MY_INPUT`. In this case, `MY_INPUT` will be transmitted to `sys.argv[0]`. Is there a limit to the **number** of characters `MY_INPUT` can contain? Is there a limit to the **type** of characters `MY_INPUT` can contain? Any other limitations with regards to `MY_INPUT`? **UPDATE:** I am using Ubuntu Linux 10.04
0
7,240,170
08/30/2011 07:51:28
911,814
08/25/2011 10:21:39
1
0
Free map provider to add data for an GIS application
I searched for an free #GIS service provider which we can add data through our own application and couldn't find one.any help?
map
gis
null
null
null
08/30/2011 08:11:44
off topic
Free map provider to add data for an GIS application === I searched for an free #GIS service provider which we can add data through our own application and couldn't find one.any help?
2
809,052
04/30/2009 21:00:47
30,946
10/23/2008 19:56:12
1,773
121
is it better to put more logic in your ON clause or should it only have the minimum necessary?
Given these two queries: Select t1.id, t2.companyName from table1 t1 INNER JOIN table2 t2 on t2.id = t1.fkId WHERE t2.aField <> 'C' OR: Select t1.id, t2.companyName from table1 t1 INNER JOIN table2 t2 on t2.id = t1.fkId and t2.aField <> 'C' Is there a demonstrable difference between the two? Seems to me that the clause "t2.aField <> 'C'" will run on every row in t2 that meets the join criteria regardless. Am I incorrect? I searched for this but didn't find it.
sql
sql-server
null
null
null
null
open
is it better to put more logic in your ON clause or should it only have the minimum necessary? === Given these two queries: Select t1.id, t2.companyName from table1 t1 INNER JOIN table2 t2 on t2.id = t1.fkId WHERE t2.aField <> 'C' OR: Select t1.id, t2.companyName from table1 t1 INNER JOIN table2 t2 on t2.id = t1.fkId and t2.aField <> 'C' Is there a demonstrable difference between the two? Seems to me that the clause "t2.aField <> 'C'" will run on every row in t2 that meets the join criteria regardless. Am I incorrect? I searched for this but didn't find it.
0
9,645,530
03/10/2012 09:57:08
1,260,835
03/10/2012 09:38:46
1
0
New browser window for multiple logged in users based on event
i'm developing a web based app for a college project. it's an online card game called 'switch'. being done in VS2010 in .net and c#. i have a user class and that is mapped to a user table. when a user logs in, they are added to a global list which is displayed in a list box on homepage.aspx. a user can select another user from the list and click the play button (both users are then added to a global game list). on this event a window representing game.aspx will open, and here's the problem: the window will only open for the user who is 'selecting' the user from the list (so if A logs in, sees B on the list, selects B and clicks play, the window only opens for A, and not B), i can't get my head around how to do get the window to open for both users. i was thinking of adding a a new column to user table, 'invitedBy' - if A selects B, A's userID is added to B's 'invitedBy', then have a script running to constantly check a user's invitedBy and when it's not null open a window for the invitation sender and the invitee. i've searched around a lot and couldn't find anything. anyone have any comments on my suggestion, or a better one?
c#
jquery
.net
ajax
null
03/23/2012 15:41:17
not a real question
New browser window for multiple logged in users based on event === i'm developing a web based app for a college project. it's an online card game called 'switch'. being done in VS2010 in .net and c#. i have a user class and that is mapped to a user table. when a user logs in, they are added to a global list which is displayed in a list box on homepage.aspx. a user can select another user from the list and click the play button (both users are then added to a global game list). on this event a window representing game.aspx will open, and here's the problem: the window will only open for the user who is 'selecting' the user from the list (so if A logs in, sees B on the list, selects B and clicks play, the window only opens for A, and not B), i can't get my head around how to do get the window to open for both users. i was thinking of adding a a new column to user table, 'invitedBy' - if A selects B, A's userID is added to B's 'invitedBy', then have a script running to constantly check a user's invitedBy and when it's not null open a window for the invitation sender and the invitee. i've searched around a lot and couldn't find anything. anyone have any comments on my suggestion, or a better one?
1
9,045,048
01/28/2012 11:54:50
1,175,132
01/28/2012 11:51:02
1
0
How can i stop/safely complete survey pop ups on websites?
how can i stop survey pop up on websites, or how can i safely complete them without giving away personal information. PLEASE HELP!! Im wanting to download a guide for my video game... yes im a teen who knows nothing XD
website
blocking
surveys
null
null
01/28/2012 20:35:30
off topic
How can i stop/safely complete survey pop ups on websites? === how can i stop survey pop up on websites, or how can i safely complete them without giving away personal information. PLEASE HELP!! Im wanting to download a guide for my video game... yes im a teen who knows nothing XD
2
11,522,756
07/17/2012 12:46:31
644,817
03/04/2011 13:56:10
1,768
110
Solr, clustering (carrot) and NoClassDefFoundError
i'm running Solr 3.4 and would like to use the clusteringComponent. Following this tutorial: http://wiki.apache.org/solr/ClusteringComponent in combination with default entries at the solrconfig.xml i have the following configuration @solrconfig.xml <searchComponent name="clustering" enable="${solr.clustering.enabled:true}" class="org.apache.solr.handler.clustering.ClusteringComponent" > <!-- Declare an engine --> <lst name="engine"> <str name="name">default</str> <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str> <str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str> </lst> <lst name="engine"> <str name="name">stc</str> <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str> </lst> </searchComponent> <requestHandler name="/cl" class="solr.SearchHandler" > <lst name="defaults"> <str name="echoParams">explicit</str> <bool name="clustering">true</bool> <str name="clustering.engine">default</str> <bool name="clustering.results">true</bool> <!-- Fields to cluster on --> <str name="carrot.title">UEBSCHRIFT</str> <str name="carrot.snippet">TEXT</str> </lst> <arr name="last-components"> So if i try to use the requestHandler `http://server:8080/solr/mycore/cl?q=*:*` i get the following Java exception: > HTTP Status 500 - com.carrotsearch.hppc.ObjectContainer > java.lang.NoClassDefFoundError: com.carrotsearch.hppc.ObjectContainer > at java.lang.J9VMInternals.verifyImpl(Native Method) at > java.lang.J9VMInternals.verify(J9VMInternals.java:72) at > java.lang.J9VMInternals.initialize(J9VMInternals.java:134) at > org.carrot2.text.preprocessing.pipeline.BasicPreprocessingPipeline.<init>(BasicPreprocessingPipeline.java:106) > at > org.carrot2.text.preprocessing.pipeline.CompletePreprocessingPipeline.<init>(CompletePreprocessingPipeline.java:32) > at > org.carrot2.clustering.lingo.LingoClusteringAlgorithm.<init>(LingoClusteringAlgorithm.java:129) > at java.lang.J9VMInternals.newInstanceImpl(Native Method) at > java.lang.Class.newInstance(Class.java:1325) at > org.carrot2.util.pool.SoftUnboundedPool.borrowObject(SoftUnboundedPool.java:80) > at > org.carrot2.core.PoolingProcessingComponentManager.prepare(PoolingProcessingComponentManager.java:128) > at org.carrot2.core.Controller.process(Controller.java:333) at > org.carrot2.core.Controller.process(Controller.java:240) at > org.apache.solr.handler.clustering.carrot2.CarrotClusteringEngine.cluster(CarrotClusteringEngine.java:136) > at > org.apache.solr.handler.clustering.ClusteringComponent.process(ClusteringComponent.java:91) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1368) at The point is, that I have no idea what this mean. I'm searching for hours without finding an solution. By the way: I'm running on tomcat with the following options: export CATALINA_OPTS="-Dsolr.clustering.enabled=true" (is this still required in Solr 3.4?) The catalina option is part of the java command, as you can see with `ps -efa` > /usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre//bin/java > -Djava.util.logging.config.file=/opt/tomcat6/conf/logging.properties -Xms2048m -Xmx2048m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dsolr.clustering.enabled=true -Djava.endorsed.dirs=/opt/tomcat6/endorsed -classpath /opt/tomcat6/bin/bootstrap.jar -Dcatalina.base=/opt/tomcat6 > -Dcatalina.home=/opt/tomcat6 -Djava.io.tmpdir=/opt/tomcat6/temp org.apache.catalina.startup.Bootstrap start Does anyone has an idea what i could do to solve this problem? Thank you!
solr
cluster-analysis
noclassdeffounderror
null
null
null
open
Solr, clustering (carrot) and NoClassDefFoundError === i'm running Solr 3.4 and would like to use the clusteringComponent. Following this tutorial: http://wiki.apache.org/solr/ClusteringComponent in combination with default entries at the solrconfig.xml i have the following configuration @solrconfig.xml <searchComponent name="clustering" enable="${solr.clustering.enabled:true}" class="org.apache.solr.handler.clustering.ClusteringComponent" > <!-- Declare an engine --> <lst name="engine"> <str name="name">default</str> <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str> <str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str> </lst> <lst name="engine"> <str name="name">stc</str> <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str> </lst> </searchComponent> <requestHandler name="/cl" class="solr.SearchHandler" > <lst name="defaults"> <str name="echoParams">explicit</str> <bool name="clustering">true</bool> <str name="clustering.engine">default</str> <bool name="clustering.results">true</bool> <!-- Fields to cluster on --> <str name="carrot.title">UEBSCHRIFT</str> <str name="carrot.snippet">TEXT</str> </lst> <arr name="last-components"> So if i try to use the requestHandler `http://server:8080/solr/mycore/cl?q=*:*` i get the following Java exception: > HTTP Status 500 - com.carrotsearch.hppc.ObjectContainer > java.lang.NoClassDefFoundError: com.carrotsearch.hppc.ObjectContainer > at java.lang.J9VMInternals.verifyImpl(Native Method) at > java.lang.J9VMInternals.verify(J9VMInternals.java:72) at > java.lang.J9VMInternals.initialize(J9VMInternals.java:134) at > org.carrot2.text.preprocessing.pipeline.BasicPreprocessingPipeline.<init>(BasicPreprocessingPipeline.java:106) > at > org.carrot2.text.preprocessing.pipeline.CompletePreprocessingPipeline.<init>(CompletePreprocessingPipeline.java:32) > at > org.carrot2.clustering.lingo.LingoClusteringAlgorithm.<init>(LingoClusteringAlgorithm.java:129) > at java.lang.J9VMInternals.newInstanceImpl(Native Method) at > java.lang.Class.newInstance(Class.java:1325) at > org.carrot2.util.pool.SoftUnboundedPool.borrowObject(SoftUnboundedPool.java:80) > at > org.carrot2.core.PoolingProcessingComponentManager.prepare(PoolingProcessingComponentManager.java:128) > at org.carrot2.core.Controller.process(Controller.java:333) at > org.carrot2.core.Controller.process(Controller.java:240) at > org.apache.solr.handler.clustering.carrot2.CarrotClusteringEngine.cluster(CarrotClusteringEngine.java:136) > at > org.apache.solr.handler.clustering.ClusteringComponent.process(ClusteringComponent.java:91) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1368) at The point is, that I have no idea what this mean. I'm searching for hours without finding an solution. By the way: I'm running on tomcat with the following options: export CATALINA_OPTS="-Dsolr.clustering.enabled=true" (is this still required in Solr 3.4?) The catalina option is part of the java command, as you can see with `ps -efa` > /usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre//bin/java > -Djava.util.logging.config.file=/opt/tomcat6/conf/logging.properties -Xms2048m -Xmx2048m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dsolr.clustering.enabled=true -Djava.endorsed.dirs=/opt/tomcat6/endorsed -classpath /opt/tomcat6/bin/bootstrap.jar -Dcatalina.base=/opt/tomcat6 > -Dcatalina.home=/opt/tomcat6 -Djava.io.tmpdir=/opt/tomcat6/temp org.apache.catalina.startup.Bootstrap start Does anyone has an idea what i could do to solve this problem? Thank you!
0
10,657,953
05/18/2012 18:32:26
30,344
10/22/2008 12:09:47
112
3
How to simulate a full browser's request to an HTML document?
Goal ==== I want to simulate with a request to a html-document just the way a browser does. This means I not only want to download the main HTML file but also linked stuff like css, js, images. For now I only want to parse the first HTML document. I.e. I am not taking requests into account which result from parsing say the css (background-images, web-fonts) or javascript (ajax) etc. To implement this I need to know how a browser exactly processes a website. I haven't found a good reference on that. Any help on that would be greatly appreciated and likely solve my problem. Assumption ========== As I lacked any good references I assumed the process (without taking redirects, the rendering etc. into account) works like that: 1. A persistent HTTP-connection is established with www.facebook.com 2. The Path "/" is requested and the HTML is received 3. When the the document is fully (?) received it is parsed and a list of URLs that need to be requested is filled (divided into head and body objects?!) 4. The first URL is taken from the head-list and it is checked wether a persistent HTTP-connection is established with that host - If there is not, it is established and the afterwards the Object is requested - If there is, it is added to the connection's "download queue" 5. Step 4 is repeated until the list is empty 6. Then Steps 4-5 are repeated for the "body list" Is this even close to how a browser works? **Bonus question:** Does the order of javascript and css files in the header make a difference? Doubts ====== I conducted a few tests with the Chrome Developer Tools (Chrome 18) to confirm. I connected to www.facebook.com measuring when each Object was loaded. When reloading using Ctrl + R the results looked like this: ![Output in the Chrome-Developer-Network-Tab for a request to www.facebook.com][1] What puzzles me the most is that most requests are concurrent to others even when from the same host (static.ak.fbcdn.net). Pipelining is disabled my browser (which is the default setting) so why are the request still seem to happen simultaneously? [1]: http://i.stack.imgur.com/AoRTo.png
http
browser
language-agnostic
html-parsing
simulation
null
open
How to simulate a full browser's request to an HTML document? === Goal ==== I want to simulate with a request to a html-document just the way a browser does. This means I not only want to download the main HTML file but also linked stuff like css, js, images. For now I only want to parse the first HTML document. I.e. I am not taking requests into account which result from parsing say the css (background-images, web-fonts) or javascript (ajax) etc. To implement this I need to know how a browser exactly processes a website. I haven't found a good reference on that. Any help on that would be greatly appreciated and likely solve my problem. Assumption ========== As I lacked any good references I assumed the process (without taking redirects, the rendering etc. into account) works like that: 1. A persistent HTTP-connection is established with www.facebook.com 2. The Path "/" is requested and the HTML is received 3. When the the document is fully (?) received it is parsed and a list of URLs that need to be requested is filled (divided into head and body objects?!) 4. The first URL is taken from the head-list and it is checked wether a persistent HTTP-connection is established with that host - If there is not, it is established and the afterwards the Object is requested - If there is, it is added to the connection's "download queue" 5. Step 4 is repeated until the list is empty 6. Then Steps 4-5 are repeated for the "body list" Is this even close to how a browser works? **Bonus question:** Does the order of javascript and css files in the header make a difference? Doubts ====== I conducted a few tests with the Chrome Developer Tools (Chrome 18) to confirm. I connected to www.facebook.com measuring when each Object was loaded. When reloading using Ctrl + R the results looked like this: ![Output in the Chrome-Developer-Network-Tab for a request to www.facebook.com][1] What puzzles me the most is that most requests are concurrent to others even when from the same host (static.ak.fbcdn.net). Pipelining is disabled my browser (which is the default setting) so why are the request still seem to happen simultaneously? [1]: http://i.stack.imgur.com/AoRTo.png
0
3,341,980
07/27/2010 08:45:53
224,636
12/04/2009 09:50:53
57
2
List asp.net topics for interview
I am having 3 years of experience in asp.net. I need to list down topics that are related to web development I have listed the following topics. Please add your topics if in case i have missed A.OOPS 1. Classes 2. Objects (3) Polymorphism (4) Encapsulation (5) Abstraction (6) Inheritance (7) Interface (8) Abstract class / virtual cass (9) Access Modifiers (10) Overloading vs Overriding B. C# (1) Boxing-Unboxing (2) Delegate- event (3) Collections (4) Generics (5) Value Type vs Reference Type C. ASP.NET Topics (1) Authentication and Authorization (2) state Management (3) XML/XSL/XSLT (4) Web Services (5) Array List, Hashtable, Generices (6) Themes, Skins and Master Pages (7) Remoting (8) Reflection (9) Serialization (10) Caching (11) Threading (12) Localization (13) HTTP Handlers / HTTP Module (14) ASP.NET Entity f/w (15) JSON D. Designing (1) HTML (2) CSS (3) XTML (Also Themes, skins and master pages) E. Advanced ASP.NET Concepts (1) WCF (2) WPF (3) JQUERY (4) Silverlight (5) AJAX (6) DNN (7) Axure (8) MVC F. ADO.NET H. SQL Server (1) Normalization (2) SP/ Functions (differnce), views (3) Triggers **PLEASE POST THE TOPICS THAT I HAVE MISSED OUT**
asp.net
sql-server
null
null
null
07/27/2010 20:24:15
off topic
List asp.net topics for interview === I am having 3 years of experience in asp.net. I need to list down topics that are related to web development I have listed the following topics. Please add your topics if in case i have missed A.OOPS 1. Classes 2. Objects (3) Polymorphism (4) Encapsulation (5) Abstraction (6) Inheritance (7) Interface (8) Abstract class / virtual cass (9) Access Modifiers (10) Overloading vs Overriding B. C# (1) Boxing-Unboxing (2) Delegate- event (3) Collections (4) Generics (5) Value Type vs Reference Type C. ASP.NET Topics (1) Authentication and Authorization (2) state Management (3) XML/XSL/XSLT (4) Web Services (5) Array List, Hashtable, Generices (6) Themes, Skins and Master Pages (7) Remoting (8) Reflection (9) Serialization (10) Caching (11) Threading (12) Localization (13) HTTP Handlers / HTTP Module (14) ASP.NET Entity f/w (15) JSON D. Designing (1) HTML (2) CSS (3) XTML (Also Themes, skins and master pages) E. Advanced ASP.NET Concepts (1) WCF (2) WPF (3) JQUERY (4) Silverlight (5) AJAX (6) DNN (7) Axure (8) MVC F. ADO.NET H. SQL Server (1) Normalization (2) SP/ Functions (differnce), views (3) Triggers **PLEASE POST THE TOPICS THAT I HAVE MISSED OUT**
2
1,151,458
07/20/2009 01:55:30
159,072
06/02/2009 18:25:22
299
3
SE - Pressure and Business Process in software profession
I am currently working as a trainee programmer in a software farm. I am somewhat frustrated and considering abandoning this profession. I don't agree with the most of the answers of this post. http://stackoverflow.com/questions/362376/why-did-you-choose-programming-as-a-profession Can anyone answer the following questions? (1) Is pressure inherent to Software Programming? (2) Is it mandatory for a programmer to grasp the total business process (like the System Analyst) relating to the software he is working with? (3) Is maintenance-coding a part and parcel of this profession? (4) How can I explore new technologies while being involved understanding Business Processes (Coz these two are separate in nature)? (5) and how can I understand what previous programmer coded ???????
career-development
null
null
null
null
01/26/2012 21:43:44
not constructive
SE - Pressure and Business Process in software profession === I am currently working as a trainee programmer in a software farm. I am somewhat frustrated and considering abandoning this profession. I don't agree with the most of the answers of this post. http://stackoverflow.com/questions/362376/why-did-you-choose-programming-as-a-profession Can anyone answer the following questions? (1) Is pressure inherent to Software Programming? (2) Is it mandatory for a programmer to grasp the total business process (like the System Analyst) relating to the software he is working with? (3) Is maintenance-coding a part and parcel of this profession? (4) How can I explore new technologies while being involved understanding Business Processes (Coz these two are separate in nature)? (5) and how can I understand what previous programmer coded ???????
4
7,546,323
09/25/2011 15:02:28
963,725
09/25/2011 14:59:34
1
0
How to add 2 variables in jquery
I want to add two variables which have numeric values using jquery. var seconds = 1100; var time = 300; var newV = seconds + time; But it is saying undefined thanx
jquery
variables
null
null
null
09/25/2011 18:16:27
not a real question
How to add 2 variables in jquery === I want to add two variables which have numeric values using jquery. var seconds = 1100; var time = 300; var newV = seconds + time; But it is saying undefined thanx
1
11,525,877
07/17/2012 15:32:15
617,822
02/15/2011 13:10:44
629
38
PhoneGap architecture information
I'm looking for information of PhoneGap's architecture. I've tried to google without any serious results. I've also read Beginning PhoneGap and PhoneGap: Beginner's Guide but those doesn't focus that much on technical details. Could someone point me some links and/or books where to find some information of how PhoneGap really works. The more technical the explanation is the better. Some fancy looking diagrams/flowcharts etc are bonus. No matter if it's solely focused on iOS, Android or WP7. Huge thanks in advance!
android
ios
windows-phone-7
phonegap
phonegap-plugins
07/17/2012 15:52:43
not constructive
PhoneGap architecture information === I'm looking for information of PhoneGap's architecture. I've tried to google without any serious results. I've also read Beginning PhoneGap and PhoneGap: Beginner's Guide but those doesn't focus that much on technical details. Could someone point me some links and/or books where to find some information of how PhoneGap really works. The more technical the explanation is the better. Some fancy looking diagrams/flowcharts etc are bonus. No matter if it's solely focused on iOS, Android or WP7. Huge thanks in advance!
4