This repository has been archived by the owner on Jan 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.xml
1303 lines (1015 loc) · 69.8 KB
/
feed.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:re="http://purl.org/atompub/rank/1.0">
<title type="text">Recent Questions - Stack Overflow</title>
<link rel="self" href="http://stackoverflow.com/feeds" type="application/atom+xml" />
<link rel="alternate" href="http://stackoverflow.com/questions" type="text/html" />
<subtitle>most recent 30 from stackoverflow.com</subtitle>
<updated>2009-12-07T21:10:41Z</updated>
<id>http://stackoverflow.com/feeds</id>
<creativeCommons:license>http://www.creativecommons.org/licenses/by-nc/2.5/rdf</creativeCommons:license>
<entry>
<id>http://stackoverflow.com/questions/1862871/sql-server-how-to-exit-a-stored-procedure</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">SQL Server: How to exit a stored procedure?</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="stored-procedures"/><category scheme="http://stackoverflow.com/feeds/tags" term="flow-control"/><category scheme="http://stackoverflow.com/feeds/tags" term="sql-server"/><category scheme="http://stackoverflow.com/feeds/tags" term="tsql"/>
<author><name>Ian Boyd</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862871/sql-server-how-to-exit-a-stored-procedure" />
<published>2009-12-07T21:03:01Z</published>
<updated>2009-12-07T21:10:29Z</updated>
<summary type="html">
<p>How can i exit in the middle of a stored procedure?</p>
<p>i have a stored procedure where i want to bail out early (while trying to debug it). i've tried calling <code>RETURN</code> and <code>RAISERROR</code>, and the sp keeps on running:</p>
<pre><code>CREATE PROCEDURE dbo.Archive_Session @SessionGUID uniqueidentifier AS
print 'before raiserror'
raiserror('this is a raised error', 18, 1)
print 'before return'
return -1
print 'after return'
[snip]
</code></pre>
<p>i know it keeps running because i encounter an error further down. i don't see any of my <strong>prints</strong>. If i comment out the bulk of the stored procedure:</p>
<pre><code>CREATE PROCEDURE dbo.Archive_Session @SessionGUID uniqueidentifier AS
print 'before raiserror'
raiserror('this is a raised error', 18, 1)
print 'before return'
return -1
print 'after return'
/*
[snip]
*/
</code></pre>
<p>Then i don't get my error, and i see the results:</p>
<pre><code>before raiserror
Server: Msg 50000, Level 18, State 1, Procedure Archive_Session, Line 5
this is a raised error
before return
</code></pre>
<p>So the question is: how do i bail out of a stored procedure in SQL Server?</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862905/iphone-nsdate-convert-date-to-gmt</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">[iPhone] NSDate - Convert Date to GMT</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="iphone"/><category scheme="http://stackoverflow.com/feeds/tags" term="nsdate"/><category scheme="http://stackoverflow.com/feeds/tags" term="convert"/><category scheme="http://stackoverflow.com/feeds/tags" term="gmt"/>
<author><name>Mick</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862905/iphone-nsdate-convert-date-to-gmt" />
<published>2009-12-07T21:10:28Z</published>
<updated>2009-12-07T21:10:28Z</updated>
<summary type="html">
<p>Hello,</p>
<p>I need the ability to convert a NSDate value to a GMT Date.</p>
<p>How can I go about converting a NSDate value to a GMT formatted NSDate value, independent of what ever date locale settings the iphone is using.</p>
<p>Kind Regards</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862904/customizing-django-comments</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Customizing django-comments</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="django"/><category scheme="http://stackoverflow.com/feeds/tags" term="django-comments"/>
<author><name>AP257</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862904/customizing-django-comments" />
<published>2009-12-07T21:10:22Z</published>
<updated>2009-12-07T21:10:22Z</updated>
<summary type="html">
<p>So, I'm using django.contrib.comments. I've installed it OK but rather than the unwieldy default comment form, I'd like to use a custom form template that just shows a textarea and submit button.</p>
<p>The rationale behind this is that user only see the form if they area already authenticated, and I'd like the keep the form simple and pick up their username etc automatically.</p>
<p>I've implemented a custom form, but am getting an error when I try to submit it.</p>
<p>Here's what I have in my template for the page with the comment form (entry is the object passed from the view): </p>
<pre><code>{% load comments %}
{% render_comment_form for entry %}
</code></pre>
<p>And here's my HTML in /templates/comments/form.html:</p>
<pre><code>{% if user.is_authenticated %}
&lt;p&gt;Submit a comment:&lt;/p&gt;
&lt;form action="/comments/post/" method="post"&gt;
&lt;textarea name="comment" id="id_comment" rows="2" style="width: 90%;"&gt;&lt;/textarea&gt;
&lt;input type="hidden" name="options" value="{{ options }}" /&gt;
&lt;input type="hidden" name="target" value="{{ target }}" /&gt;
&lt;input type="hidden" name="gonzo" value="{{ hash }}" /&gt;
&lt;input type="hidden" name="next" value="{{ entry.get_absolute_url }}" /&gt;
&lt;span style="float:right;"&gt;&lt;input type="submit" name="post" value="Add"&gt;&lt;/span&gt;
&lt;/form&gt;
{% else %}
&lt;p&gt;Please &lt;a href="/login/"&gt;log in&lt;/a&gt; to post a comment.&lt;/p&gt;
{% endif %}
</code></pre>
<p>It renders okay initially, but when I try to submit the comment form, I get the following Django error: </p>
<pre><code>Comment post not allowed (400)
Why: Missing content_type or object_pk field.
</code></pre>
<p>Can anyone help?</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862867/what-is-the-best-single-source-shortest-path-algorithm-for-programming-contests</id>
<re:rank scheme="http://stackoverflow.com">1</re:rank>
<title type="text">What is the best single-source shortest path algorithm for programming contests?</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="algorithm"/><category scheme="http://stackoverflow.com/feeds/tags" term="graph"/><category scheme="http://stackoverflow.com/feeds/tags" term="competitions"/><category scheme="http://stackoverflow.com/feeds/tags" term="c++"/>
<author><name>int3</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862867/what-is-the-best-single-source-shortest-path-algorithm-for-programming-contests" />
<published>2009-12-07T21:02:06Z</published>
<updated>2009-12-07T21:09:59Z</updated>
<summary type="html">
<p>I was working on <a href="http://acm.uva.es/p/v109/10986.html" rel="nofollow">this graph problem</a> from the UVa problem set. It's a single-source-shortest-paths problem with no negative edge weights. From what I've gathered, the algorithm with the best big-O running time is Dijkstra with a Fibonacci heap as the priority queue, although practically speaking a binary heap is easier to implement and works pretty well too.</p>
<p>However, it would seem that even a binary heap takes quite some time to roll, and in a competition time is limited. I am aware that the STL provides some heap algorithms and priority queues, but they don't seem to provide a decrease-key function which Dijkstra's needs. Or am I wrong here?</p>
<p>It seems that another possibility is to simply not use Dijkstra's. <a href="http://online-judge.uva.es/board/viewtopic.php?f=32&amp;t=9918&amp;hilit=10986&amp;start=30" rel="nofollow">This forum thread</a> has people claiming that they solved the above problem with breadth-first search / Bellman-Ford, which are much easier to code up. This surprised me a little as I thought that the input size was quite large. I guess different problems will require solutions of different complexity, but my question is, how often would I need to use Dijkstra's in such competitions? Should I practice more on the simpler-but-slower algorithms instead?</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862901/how-to-use-emacs-with-python</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">How to use Emacs with Python </title>
<category scheme="http://stackoverflow.com/feeds/tags" term="emacs"/><category scheme="http://stackoverflow.com/feeds/tags" term="python"/>
<author><name>Tony Cruise</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862901/how-to-use-emacs-with-python" />
<published>2009-12-07T21:09:35Z</published>
<updated>2009-12-07T21:09:35Z</updated>
<summary type="html">
<p>I am new to emacs and I want to use emacs for python development. I am using Ubuntu 9.10. I frustrated to getting emacs work with python. I use GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0).</p>
<p>Here what I did.
* </p>
<p>Emacs come with python mode but it is confusing there are two types of mode one is python-mode.el and other one is python.el. I use emacs 23 so mine is python.el (I think)
But code code completion does not work when I press M-Tab , window manager works. I tried Esc-Tab but it says "No match" . How can I enable code completion?</p>
<p>After than I installed ropemacs</p>
<pre><code>sudo aptitude install python-ropemacs
</code></pre>
<p>Then I created .emacs file at ~/.emacs
and I added followings to .emacs file</p>
<pre><code>(require 'pymacs)
(pymacs-load "ropemacs" "rope-")
(setq ropemacs-enable-autoimport t)
</code></pre>
<p>Then when I hit M-/ for code assist it opens a file dialog for choosing root project folder. I choosed current folder which has django code. Now when I hit M-/ (Alt and /) nothing happens but when I click from the menu Rope->Code assist it shows
"Completion for x: " empty set. How can make emacs python code completion work?</p>
<p>Then I downloaded <a href="http://www.emacswiki.org/emacs/anything.el" rel="nofollow">anything.el</a>, anything-config, anything-match-plugin to ~/.emacs.d folder Then I added following lines to .emacs file</p>
<pre><code>(require 'anything-config)
(require 'anything-match-plugin)
(global-set-key "\C-ca" 'anything)
(global-set-key "\C-ce" 'anything-for-files)
</code></pre>
<p>Guess what it dowsnt work. I tried "M-x anything" again I get No match.(I guessed may me combination of C-ca (First control-a then e ) might work it says it isnt defined). Could you explain code completion for python with clear explanations (step by step) to someone dummy as me. Thanks. </p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862900/how-do-i-uninstall-gitosis</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">How do I uninstall gitosis?</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="git"/><category scheme="http://stackoverflow.com/feeds/tags" term="gitosis"/>
<author><name>Oscar Del Ben</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862900/how-do-i-uninstall-gitosis" />
<published>2009-12-07T21:09:34Z</published>
<updated>2009-12-07T21:09:34Z</updated>
<summary type="html">
<p>I've installed gitosis on my dramhost machine but now I want to uninstall it because it's causing more problems than solutions.</p>
<p>The thing is that I can't find how to uninstall it. I deleted the ~/repositories directories but of course all the bins are still included. Also I'm more worried about what it did to ssh configurations.</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862899/is-there-a-site-that-does-nothing-but-spit-out-whatever-post-form-parameters-were</id>
<re:rank scheme="http://stackoverflow.com">1</re:rank>
<title type="text">Is there a site that does nothing but spit out whatever POST form parameters were sent to it?</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="http"/><category scheme="http://stackoverflow.com/feeds/tags" term="form"/><category scheme="http://stackoverflow.com/feeds/tags" term="post"/><category scheme="http://stackoverflow.com/feeds/tags" term="testing"/>
<author><name>dreftymac</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862899/is-there-a-site-that-does-nothing-but-spit-out-whatever-post-form-parameters-were" />
<published>2009-12-07T21:09:17Z</published>
<updated>2009-12-07T21:09:17Z</updated>
<summary type="html">
<p>Is there a site online available to the general public that does nothing but display whatever form variables (name-value pairs) were sent to it via POST?</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862434/why-is-appdomainsetup-shadowcopyfiles-a-string</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Why is AppDomainSetup.ShadowCopyFiles a string?</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="c#"/><category scheme="http://stackoverflow.com/feeds/tags" term="appdomainsetup"/>
<author><name>Jason Punyon</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862434/why-is-appdomainsetup-shadowcopyfiles-a-string" />
<published>2009-12-07T19:46:10Z</published>
<updated>2009-12-07T21:09:10Z</updated>
<summary type="html">
<p>I'm puzzled by this. From the <a href="http://msdn.microsoft.com/en-us/library/system.appdomainsetup.shadowcopyfiles.aspx" rel="nofollow">documentation</a>...</p>
<blockquote>
<p>A String containing the string value "true" to indicate that shadow copying is turned on; or "false" to indicate that shadow copying is turned off.</p>
</blockquote>
<p>And its been this way since 1.1...can anyone shed any light?</p>
<p><strong>EDIT</strong>: So I reflector'd the Getter and Setter for good measure...</p>
<pre><code>public string ShadowCopyFiles
{
get
{
return this.Value[8];
}
set
{
if ((value != null) &amp;&amp; (string.Compare(value, "true", StringComparison.OrdinalIgnoreCase) == 0))
{
this.Value[8] = value;
}
else
{
this.Value[8] = null;
}
}
}
//The referenced Value property...
internal string[] Value
{
get
{
if (this._Entries == null)
{
this._Entries = new string[0x10];
}
return this._Entries;
}
}
private string[] _Entries;
</code></pre>
<p>So maybe the Value array begets an easier copy constructor or something?</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862881/c-sort-list-by-multiple-conditions</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">C# Sort List by multiple conditions</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="c#"/><category scheme="http://stackoverflow.com/feeds/tags" term="sorting"/>
<author><name>Frets</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862881/c-sort-list-by-multiple-conditions" />
<published>2009-12-07T21:05:47Z</published>
<updated>2009-12-07T21:09:03Z</updated>
<summary type="html">
<p>I need to sort some soccer standings. My problem is how to sort in the right order.</p>
<p>Sortorder:</p>
<ul>
<li>Points DESC</li>
<li>Approximation match</li>
<li>Goal difference DESC</li>
<li>Goals scored DESC</li>
<li>Goals against</li>
</ul>
<p>Input:
TeamName - Points - GoalsScored - GoalsAgainst </p>
<ul>
<li>Team 1 - 1 - 4 - 7</li>
<li>Team 2 - 5 - 8 - 6</li>
<li>Team 3 - 1 - 2 - 10</li>
<li>Team 4 - 8 - 12 - 5</li>
<li>Team 5 - 5 - 7 - 4</li>
</ul>
<p>...
Match #4 - Team 5 - Team 2 -- 1-2</p>
<p>Match #7 - Team 1 - Team 3 -- 3-3
...</p>
<p>Output:
TeamName - Points - GoalsScored - GoalsAgainst </p>
<ul>
<li>Team 4 - 8 - 12 - 5</li>
<li>Team 2 - 5 - 8 - 6</li>
<li>Team 5 - 5 - 7 - 4</li>
<li>Team 1 - 1 - 4 - 7</li>
<li>Team 3 - 1 - 2 - 10</li>
</ul>
<p>Because Team 2 won over Team 5 they ends up at 2nd place.</p>
<p>Because Team 1 draw against Team 3, they ends up at 4. place, with a better goal difference.</p>
<pre><code>public class Standing
{
public Team Team { get; set; }
public int? MatchesPlayed { get; set; }
public int? GoalsScored { get; set; }
public int? GoalsAgainst { get; set; }
public int? Points { get; set; }
}
public class Match
{
public int MatchID { get; set; }
public DateTime? PlayTime { get; set; }
public Team HomeTeam { get; set; }
public Team AwayTeam { get; set; }
public int? HomeScore { get; set; }
public int? AwayScore { get; set; }
}
public class Pool
{
public int PoolID { get; set; }
public string PoolName { get; set; }
public DateTime? StartTime { get; set; }
public List&lt;Team&gt; Teams { get; set; }
public List&lt;Match&gt; Matches { get; set; }
public List&lt;Standing&gt; Standings { get; set; }
}
</code></pre>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1813559/net-c-using-rss-net-with-stack-overflow-feeds-how-to-handle-special-propertie</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">.NET/C#: Using RSS.NET with Stack Overflow Feeds: How To Handle Special Properties of RSS Items?</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="rss"/><category scheme="http://stackoverflow.com/feeds/tags" term=".net"/><category scheme="http://stackoverflow.com/feeds/tags" term="c#"/><category scheme="http://stackoverflow.com/feeds/tags" term="rss.net"/><category scheme="http://stackoverflow.com/feeds/tags" term="serialization"/>
<author><name>Maxim Z.</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1813559/net-c-using-rss-net-with-stack-overflow-feeds-how-to-handle-special-propertie" />
<published>2009-11-28T19:41:43Z</published>
<updated>2009-12-07T21:08:39Z</updated>
<summary type="html">
<p>I'm <a href="http://meta.stackoverflow.com/questions/31200/net-library-for-stack-overflow-api">writing a Stack Overflow API wrapper</a>, currently at <a href="http://soapidotnet.googlecode.com/" rel="nofollow">http://soapidotnet.googlecode.com/</a>. I have a few questions about parsing SO RSS feeds.</p>
<p>I've chosen to use <strong>RSS.NET</strong> to parse the RSS, but I have a few questions about my code (which I have provided further down in this post). </p>
<p><hr></p>
<h2>My Questions:</h2>
<p>First of all, am I <strong>parsing those attributes correctly</strong>? I have a class named Question, which has those properties.</p>
<p>Next, how can I <strong>parse the <code>&lt;re:rank&gt;</code> RSS property</strong> (used for # of votes)? I'm not sure how RSS.NET lets us do that. As far as I understand, it's a element with a custom namespace. </p>
<p>Finally, do I have to add all the properties manually, like currently in my code? Is their some sort of <strong>deserialization</strong> that I can use?</p>
<p><hr></p>
<h2>Code:</h2>
<p>Below is my current code for parsing recent question feeds: </p>
<pre><code> /// &lt;summary&gt;
/// Utilises recent question feeds to obtain recently updated questions on a certain site.
/// &lt;/summary&gt;
/// &lt;param name="site"&gt;Trilogy site in question.&lt;/param&gt;
/// &lt;returns&gt;A list of objects of type Question, which represents the recent questions on a trilogy site.&lt;/returns&gt;
public static List&lt;Question&gt; GetRecentQuestions(TrilogySite site)
{
List&lt;Question&gt; RecentQuestions = new List&lt;Question&gt;();
RssFeed feed = RssFeed.Load(string.Format("http://{0}.com/feeds",GetSiteUrl(site)));
RssChannel channel = (RssChannel)feed.Channels[0];
foreach (RssItem item in channel.Items)
{
Question toadd = new Question();
foreach(RssCategory cat in item.Categories)
{
toadd.Categories.Add(cat.Name);
}
toadd.Author = item.Author;
toadd.CreatedDate = ConvertToUnixTimestamp(item.PubDate).ToString();
toadd.Id = item.Link.Url.ToString();
toadd.Link = item.Link.Url.ToString();
toadd.Summary = item.Description;
//TODO: OTHER PROPERTIES
RecentQuestions.Add(toadd);
}
return RecentQuestions;
}
</code></pre>
<p>Here is the code of that SO RSS feed:</p>
<pre><code>&lt;feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:re="http://purl.org/atompub/rank/1.0"&gt;
&lt;title type="text"&gt;Top Questions - Stack Overflow&lt;/title&gt;
&lt;link rel="self" href="http://stackoverflow.com/feeds" type="application/atom+xml" /&gt;
&lt;link rel="alternate" href="http://stackoverflow.com/questions" type="text/html" /&gt;
&lt;subtitle&gt;most recent 30 from stackoverflow.com&lt;/subtitle&gt;
&lt;updated&gt;2009-11-28T19:26:49Z&lt;/updated&gt;
&lt;id&gt;http://stackoverflow.com/feeds&lt;/id&gt;
&lt;creativeCommons:license&gt;http://www.creativecommons.org/licenses/by-nc/2.5/rdf&lt;/creativeCommons:license&gt;
&lt;entry&gt;
&lt;id&gt;http://stackoverflow.com/questions/1813483/averaging-angles-again&lt;/id&gt;
&lt;re:rank scheme="http://stackoverflow.com"&gt;0&lt;/re:rank&gt;
&lt;title type="text"&gt;Averaging angles... Again&lt;/title&gt;
&lt;category scheme="http://stackoverflow.com/feeds/tags" term="algorithm"/&gt;&lt;category scheme="http://stackoverflow.com/feeds/tags" term="math"/&gt;&lt;category scheme="http://stackoverflow.com/feeds/tags" term="geometry"/&gt;&lt;category scheme="http://stackoverflow.com/feeds/tags" term="calculation"/&gt;
&lt;author&gt;&lt;name&gt;Lior Kogan&lt;/name&gt;&lt;/author&gt;
&lt;link rel="alternate" href="http://stackoverflow.com/questions/1813483/averaging-angles-again" /&gt;
&lt;published&gt;2009-11-28T19:19:13Z&lt;/published&gt;
&lt;updated&gt;2009-11-28T19:26:39Z&lt;/updated&gt;
&lt;summary type="html"&gt;
&amp;lt;p&amp;gt;I want to calculate the average of a set of angles.&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;I know it has been discussed before (several times). The accepted answer was &amp;lt;strong&amp;gt;Compute unit vectors from the angles and take the angle of their average&amp;lt;/strong&amp;gt;.&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;However this answer defines the average in a non intuitive way. The average of 0, 0 and 90 will be &amp;lt;strong&amp;gt;atan( (sin(0)+sin(0)+sin(90)) / (cos(0)+cos(0)+cos(90)) ) = atan(1/2)= 26.56 deg&amp;lt;/strong&amp;gt; &amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;I would expect the average of 0, 0 and 90 to be 30 degrees.&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;So I think it is fair to ask the question again: How would you calculate the average, so such examples will give the intuitive expected answer.&amp;lt;/p&amp;gt;
&lt;/summary&gt;
&lt;/entry&gt;
</code></pre>
<p>etc.</p>
<p>Here is my Question class, if it will help:</p>
<pre><code> /// &lt;summary&gt;
/// Represents a question.
/// &lt;/summary&gt;
public class Question : Post //TODO: Have Question and Answer derive from Post
{
/// &lt;summary&gt;
/// # of favorites.
/// &lt;/summary&gt;
public double FavCount { get; set; }
/// &lt;summary&gt;
/// # of answers.
/// &lt;/summary&gt;
public double AnswerCount { get; set; }
/// &lt;summary&gt;
/// Tags.
/// &lt;/summary&gt;
public string Tags { get; set; }
}
/// &lt;summary&gt;
/// Represents a post on Stack Overflow (question, answer, or comment).
/// &lt;/summary&gt;
public class Post
{
/// &lt;summary&gt;
/// Id (link)
/// &lt;/summary&gt;
public string Id { get; set; }
/// &lt;summary&gt;
/// Number of votes.
/// &lt;/summary&gt;
public double VoteCount { get; set; }
/// &lt;summary&gt;
/// Number of views.
/// &lt;/summary&gt;
public double ViewCount { get; set; }
/// &lt;summary&gt;
/// Title.
/// &lt;/summary&gt;
public string Title { get; set; }
/// &lt;summary&gt;
/// Created date of the post (expressed as a Unix timestamp)
/// &lt;/summary&gt;
public string CreatedDate
{
get
{
return CreatedDate;
}
set
{
CreatedDate = value;
dtCreatedDate = StackOverflow.ConvertFromUnixTimestamp(StackOverflow.ExtractTimestampFromJsonTime(value));
}
}
/// &lt;summary&gt;
/// Created date of the post (expressed as a DateTime)
/// &lt;/summary&gt;
public DateTime dtCreatedDate { get; set; }
/// &lt;summary&gt;
/// Last edit date of the post (expressed as a Unix timestamp)
/// &lt;/summary&gt;
public string LastEditDate
{
get
{
return LastEditDate;
}
set
{
LastEditDate = value;
dtLastEditDate = StackOverflow.ConvertFromUnixTimestamp(StackOverflow.ExtractTimestampFromJsonTime(value));
}
}
/// &lt;summary&gt;
/// Last edit date of the post (expressed as a DateTime)
/// &lt;/summary&gt;
public DateTime dtLastEditDate { get; set; }
/// &lt;summary&gt;
/// Author of the post.
/// &lt;/summary&gt;
public string Author { get; set; }
/// &lt;summary&gt;
/// HTML of the post.
/// &lt;/summary&gt;
public string Summary { get; set; }
/// &lt;summary&gt;
/// URL of the post.
/// &lt;/summary&gt;
public string Link { get; set; }
/// &lt;summary&gt;
/// RSS Categories (or tags) of the post.
/// &lt;/summary&gt;
public List&lt;string&gt; Categories { get; set; }
}
</code></pre>
<p>Thanks in advance!
<em>Btw, please contribute to the library project! :)</em></p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862457/hibernate3-self-referencing-objects</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Hibernate3: Self-Referencing Objects</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="hibernate"/><category scheme="http://stackoverflow.com/feeds/tags" term="self"/><category scheme="http://stackoverflow.com/feeds/tags" term="reference"/>
<author><name>monojohnny</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862457/hibernate3-self-referencing-objects" />
<published>2009-12-07T19:50:18Z</published>
<updated>2009-12-07T21:08:37Z</updated>
<summary type="html">
<p>Need some help on understanding how to do this; I'm going to be running recursive 'find' on a file system and I want to keep the information in a single DB table - with a self-referencing hierarchial structure:</p>
<p>This is my DB Table structure I want to populate.</p>
<p>DirObject Table:</p>
<pre><code>id int NOT NULL,
name varchar(255) NOT NULL,
parentid int NOT NULL);
</code></pre>
<p>Here is the proposed Java Class I want to map (Fields only shown):</p>
<pre><code>public DirObject {
int id;
String name;
DirObject parent;
...
</code></pre>
<p>For the 'root' directory was going to use parentid=0; real ids will start at 1, and ideally I want hibernate to autogenerate the ids.</p>
<p>Can somebody provide a suggested mapping file for this please; as a secondary question I thought about doing the Java Class like this instead:</p>
<pre><code>public DirObject {
int id;
String name;
List&lt;DirObject&gt; subdirs;
</code></pre>
<p>Could I use the same data model for either of these two methods ? (With a different mapping file of course).</p>
<p>--- UPDATE: so I tried the mapping file suggested below (thanks!), repeated here for reference:</p>
<pre><code>&lt;hibernate-mapping&gt;
&lt;class name="my.proj.DirObject" table="category"&gt;
...
&lt;set name="subDirs" lazy="true" inverse="true"&gt;
&lt;key column="parentId"/&gt;
&lt;one-to-many class="my.proj.DirObject"/&gt;
&lt;/set&gt;
&lt;many-to-one name="parent"
class="my.proj.DirObject"
column="parentId" cascade="all" /&gt;
&lt;/class&gt;
</code></pre>
<p>...and altered my Java class to have BOTH 'parentid' and 'getSubDirs' [returning a 'HashSet'].</p>
<p>This appears to work - thanks, but this is the test code I used to drive this - I think I'm not doing something right here, because I thought Hibernate would take care of saving the subordinate objects in the Set without me having to do this explicitly ?</p>
<pre><code>DirObject dirobject=new DirObject();
dirobject.setName("/files");
dirobject.setParent(dirobject);
DirObject d1, d2;
d1=new DirObject(); d1.setName("subdir1"); d1.setParent(dirobject);
d2=new DirObject(); d2.setName("subdir2"); d2.setParent(dirobject);
HashSet&lt;DirObject&gt; subdirs=new HashSet&lt;DirObject&gt;();
subdirs.add(d1);
subdirs.add(d2);
dirobject.setSubdirs(subdirs);
session.save(dirobject);
session.save(d1);
session.save(d2);
</code></pre>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/574996/can-any-flash-compiler-put-scripts-on-multiple-frames</id>
<re:rank scheme="http://stackoverflow.com">1</re:rank>
<title type="text">Can any Flash compiler put scripts on multiple frames?</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="actionscript"/><category scheme="http://stackoverflow.com/feeds/tags" term="compiler"/><category scheme="http://stackoverflow.com/feeds/tags" term="swf"/><category scheme="http://stackoverflow.com/feeds/tags" term="haxe"/><category scheme="http://stackoverflow.com/feeds/tags" term="mtasc"/>
<author><name>Jeremy Rudd</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/574996/can-any-flash-compiler-put-scripts-on-multiple-frames" />
<published>2009-02-22T14:30:50Z</published>
<updated>2009-12-07T21:08:34Z</updated>
<summary type="html">
<p>Can any Flash compiler put <strong>specific scripts</strong> on specific <strong>frames</strong> of the Flash movie SWF?</p>
<p>Like you can do from within the <strong>Flash IDE</strong>, just place a script on the required frame using the <strong>Timeline</strong> panel, and the script gets compiled to that frame of the Flash movie SWF.</p>
<p>Eg. script on frame 1 :</p>
<pre><code>trace("Reached frame 1");
</code></pre>
<p>Eg. script on frame 2 :</p>
<pre><code>trace("Reached frame 2");
</code></pre>
<p><strong>SWF Compilers:</strong> (Hopefuls)</p>
<ul>
<li>AS3 Compiler - <a href="http://haxe.org/" rel="nofollow">haXe</a></li>
<li>AS2 Compiler - <a href="http://www.mtasc.org/" rel="nofollow">MTASC</a></li>
<li>Adobe Flex Compiler - <a href="http://livedocs.adobe.com/flex/15/flex_docs_en/00000860.htm" rel="nofollow">Mxmlc</a></li>
<li>C# to SWF Compiler - <a href="http://blog.debreuil.com/archive/2004/08/18/376.aspx" rel="nofollow">Debreuil</a></li>
</ul>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862705/amfphp-what-versions-of-flash-are-compatable</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">amfphp what versions of flash are compatable?</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="amfphp"/><category scheme="http://stackoverflow.com/feeds/tags" term="flash"/>
<author><name>Phill Pafford</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862705/amfphp-what-versions-of-flash-are-compatable" />
<published>2009-12-07T20:32:47Z</published>
<updated>2009-12-07T21:08:30Z</updated>
<summary type="html">
<p>Newbie to flash so please forgive me if I'm asking a dumb question.</p>
<p>just installed AMFPHP on my local dev box and following the tutorials, all says it's installed correctly but the HelloWorld.php example doesn't work. Could this be because I'm running the incorrect version of flash in my browser? or does this even matter and it's another issue?</p>
<p>BTW I have chmoded all the files to 755 so I know it's not a permissions issue, thanks in advance.</p>
<p>EDIT:</p>
<p>The side bar for the services doesn't load</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862860/unable-to-push-code-to-git-remote</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Unable to push code to git remote</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="git"/>
<author><name>Rachel</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862860/unable-to-push-code-to-git-remote" />
<published>2009-12-07T21:01:34Z</published>
<updated>2009-12-07T21:08:28Z</updated>
<summary type="html">
<p>I am trying to add remote using git remote add and than am trying to push to that remote but am getting following errors:</p>
<p><code>fatal: 'adoshi_01': unable to chdir or not a git archive</code>
and <code>fatal: The remote end hung up unexpectedly</code></p>
<p>Steps followed:</p>
<p>First of all I cloned from git/repos/scripts to home/adoshi/repos/scripts using command git clone git01.dev:home/git/repos/scripts.git, after doing this I looked at home/git/devs/adoshi folder and there were not entries for scripts and I am still wondering why. </p>
<p>Then I tried to add files using git add . </p>
<p>Then committed them using git commit –am “Detailed Message” </p>
<p>Added remote using git remote add adoshi_01 git01.dev:/home/git/devs/adoshi/scripts/ - Thing to notice there is not scripts folder in git01.dev </p>
<p>Tried to push using git push adoshi_git01 master – But again it gave me error</p>
<p>I think main issue here = On git01.dev:/home/git/devs/adoshi/ “scripts” folder was not created even after I cloned it in 1st and so am still wondering as to what might be the possible reason for that. </p>
<p>Any guidance would be highly appreciated. </p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862655/erlangs-os-level-process-model</id>
<re:rank scheme="http://stackoverflow.com">1</re:rank>
<title type="text">Erlang's OS-level process model.</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="erlang"/><category scheme="http://stackoverflow.com/feeds/tags" term="smp"/><category scheme="http://stackoverflow.com/feeds/tags" term="ipc"/><category scheme="http://stackoverflow.com/feeds/tags" term="scheduled-tasks"/>
<author><name>Vainstah</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862655/erlangs-os-level-process-model" />
<published>2009-12-07T20:24:14Z</published>
<updated>2009-12-07T21:08:22Z</updated>
<summary type="html">
<p>I'm studying Erlang's process model at the moment. I have hit a snag in a <a href="http://www.erlang.org/euc/08/euc%5Fsmp.pdf" rel="nofollow">tech report</a> (section 3, paragraph 2) on Erlang:</p>
<blockquote>
<p>This explains why it in some cases can be more efficient to run <strong>several SMP VM's
with one scheduler each instead on one SMP VM with several schedulers</strong>. Of course
the running of several VM's require that the application can run in many parallel tasks
which has no or very little communication with each other.</p>
</blockquote>
<p>Now this paragraph is confusing me; I can see the uni-process multiple scheduler scenario, but I am failing to see multiple processes with a single scheduler; Presumably each process would have a <strong>different node name</strong>, and this would mean a certain application, without modification, cannot be used with this model; the virtue of not requiring modification has been mentioned as a key feature of SMP in the report. <strong>If the multiple processes have the same node names, than performance would be disastrous due to inter-Erlang-process messaging storms -- this assume the use of in-memory amnesia</strong>. Is there some process model that is not introduced in the article and that I am missing here ? </p>
<p>What is the author trying say here ? is he trying to suggest that an application would have to be rewritten (to take multiple unique node-names into account) for the multi-process single-scheduler case ? </p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1765606/looking-for-a-good-documentation-tutorial-for-sybase</id>
<re:rank scheme="http://stackoverflow.com">1</re:rank>
<title type="text">looking for a good documentation/tutorial for sybase</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="sybase"/><category scheme="http://stackoverflow.com/feeds/tags" term="database"/><category scheme="http://stackoverflow.com/feeds/tags" term="tutorials"/>
<author><name>Andrei </name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1765606/looking-for-a-good-documentation-tutorial-for-sybase" />
<published>2009-11-19T18:41:13Z</published>
<updated>2009-12-07T21:08:18Z</updated>
<summary type="html">
<p>I need to work with this db and would like to get a quick start. Would anyone recommend a decent documentation/tutorial/examples?</p>
<p>I didn't find anything useful at the official <a href="http://www.sybase.com" rel="nofollow">website</a></p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862852/number-of-occurences-in-a-string</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Number of occurences in a string</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="vb"/><category scheme="http://stackoverflow.com/feeds/tags" term="visual-basic"/><category scheme="http://stackoverflow.com/feeds/tags" term="homework"/>
<author><name>Dylan</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862852/number-of-occurences-in-a-string" />
<published>2009-12-07T20:59:41Z</published>
<updated>2009-12-07T21:08:14Z</updated>
<summary type="html">
<p>I'm a total noob as far as visual basic goes.
In class I need to do the following: "Write a program that requests a sentence from the user and then records the number of times each letter of the alphabet occurs."</p>
<p>How would I go about counting the number of occurrences in the string?</p>
<p>Thanks and sorry for the noob question.</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862631/observer-design-pattern</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Observer Design Pattern</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="design-patterns"/><category scheme="http://stackoverflow.com/feeds/tags" term="java"/><category scheme="http://stackoverflow.com/feeds/tags" term="design"/>
<author><name>sony</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862631/observer-design-pattern" />
<published>2009-12-07T20:21:08Z</published>
<updated>2009-12-07T21:08:04Z</updated>
<summary type="html">
<p>In the Observer design pattern, the subject notifies all observers by calling the update() operation of each observer. One way of doing this is </p>
<pre><code>void notify() {
for (observer: observers) {
observer.update(this);
}
}
</code></pre>
<p>But the problem here is each observer is updated in a sequence and update operation for an observer might not be called till all the observers before it is updated. If there is an observer that has an infinite loop for update then all the observer after it will never be notified. </p>
<p>Question:
1. Is there a way to get around this problem?
2. Can someone please explain it with an example.</p>
<p>Thank you.</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862821/who-can-tell-me-what-this-bit-of-c-does</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Who can tell me what this bit of C++ does?</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="c++"/><category scheme="http://stackoverflow.com/feeds/tags" term="directx"/>
<author><name>Dockers</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862821/who-can-tell-me-what-this-bit-of-c-does" />
<published>2009-12-07T20:53:40Z</published>
<updated>2009-12-07T21:07:53Z</updated>
<summary type="html">
<pre><code>CUSTOMVERTEX* pVertexArray;
if( FAILED( m_pVB-&gt;Lock( 0, 0, (void**)&amp;pVertexArray, 0 ) ) ) {
return E_FAIL;
}
pVertexArray[0].position = D3DXVECTOR3(-1.0, -1.0, 1.0);
pVertexArray[1].position = D3DXVECTOR3(-1.0, 1.0, 1.0);
pVertexArray[2].position = D3DXVECTOR3( 1.0, -1.0, 1.0);
...
</code></pre>
<p>I've not touched C++ for a while - hence the topic but this bit of code is confusing myself. After the m_pVB->Lock is called the array is initialized. </p>
<p>This is great and all but the problem I'm having is how this happens. The code underneath uses nine elements, but another function (pretty much copy/paste) of the code I'm working with only access say four elements.</p>
<p>CUSTOMVERTEX is a struct, but I was under the impression that this matters not and that an array of structs/objects need to be initialized to a fixed size.</p>
<p>Can anyone clear this up? </p>
<p><strong>Edit:</strong></p>
<p>Given the replies, how does it know that I require nine elements in the array, or four etc...?</p>
<p>So as long as the buffer is big enough, the elements are legal. If so, this code is setting the buffer size if I'm not mistaken.</p>
<pre><code>if( FAILED( m_pd3dDevice-&gt;CreateVertexBuffer( vertexCount * sizeof(CUSTOMVERTEX), 0, D3DFVF_CUSTOMVERTEX, D3DPOOL_DEFAULT, &amp;m_pVB, NULL ) ) ) {
return E_FAIL;
}
</code></pre>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862847/version-control-of-uploaded-images-to-file-system</id>
<re:rank scheme="http://stackoverflow.com">3</re:rank>
<title type="text">Version control of uploaded images to file system</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="version-control"/><category scheme="http://stackoverflow.com/feeds/tags" term="images"/>
<author><name>orjan</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862847/version-control-of-uploaded-images-to-file-system" />
<published>2009-12-07T20:58:32Z</published>
<updated>2009-12-07T21:07:49Z</updated>
<summary type="html">
<p>After reading <a href="http://stackoverflow.com/questions/3748/storing-images-in-db-yea-or-nay">http://stackoverflow.com/questions/3748/storing-images-in-db-yea-or-nay</a> I think that the file system is the right place for storing images. But I would like to know how you handle backup/version control of uploaded images in your different environments (dev/stage/prod) and for network load balancing?</p>
<p>These problems is pretty easy to handle when working with a database e.g. to make a backup from the production environment and restore the DB in the development environment.</p>
<p>What do you think of using for example git to handle version control of uploaded files e.g?</p>
<p>Production Environment:</p>
<ul>
<li>A image is uploaded to a shared folder at the web server.</li>
<li>Meta data is stored in the database</li>
<li>The image is automatically added to a git repository</li>
</ul>
<p>Developer at work:</p>
<ul>
<li>Checks out the source code.</li>
<li>Runs a script to restore the database.</li>
<li>Runs a script to get the the latest images.</li>
</ul>
<p>I think the solution above is pretty smooth for the developer, the images will be under version control and the environments can be isolated from each other.</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862889/visual-studio-2008-professional-vs-vs-2008-team-system</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Visual Studio 2008 Professional vs VS 2008 Team System</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="visual-studio"/><category scheme="http://stackoverflow.com/feeds/tags" term="visual-studio-team-system"/>
<author><name>Ryan</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862889/visual-studio-2008-professional-vs-vs-2008-team-system" />
<published>2009-12-07T21:07:39Z</published>
<updated>2009-12-07T21:07:39Z</updated>
<summary type="html">
<p>I've been using the trial edition of Visual Studio 2008 Team System to develop projects and work with my client's Team Foundation Server. I am using the Team Explorer integration / source control plugin. My trial is expiring and I'm having trouble finding information on what exactly I need to purchase. I don't need to actually run a TFS server myself, but I do need the ability to connect to my clients and get/put files, and the integration with Team Explorer in VS is really nice, hence I'd rather not have to use an external 3rd party tool. Do I need Team System to accomplish this or does Visual Studio 2008 Professional have the same TFS Plugin, and if so does it work the same? I can't believe I'm having such a hard time finding the differences between the versions... if anyone has a good resource that'd be nice before I shell out $3,000 on something I don't need. I develop mainly ASP.NET Solutions if that matters. Thanks!</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1862888/is-there-any-way-to-change-the-name-of-the-top-level-output-directory-with-bsdtar</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">is there any way to change the name of the top-level output directory with bsdtar?</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="archive"/><category scheme="http://stackoverflow.com/feeds/tags" term="tar"/><category scheme="http://stackoverflow.com/feeds/tags" term="configuration"/>
<author><name>dreftymac</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1862888/is-there-any-way-to-change-the-name-of-the-top-level-output-directory-with-bsdtar" />
<published>2009-12-07T21:07:38Z</published>
<updated>2009-12-07T21:07:38Z</updated>
<summary type="html">
<p>When untarring an archive with bsdtar, I would like to not use the top-level directory name that occurs in the archive, and instead use my own. Is there a way to do this automatically?</p>
</summary>
</entry>
<entry>
<id>http://stackoverflow.com/questions/1861686/pdo-update-after-select-problem</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">pdo update after select problem</title>
<category scheme="http://stackoverflow.com/feeds/tags" term="pdo"/><category scheme="http://stackoverflow.com/feeds/tags" term="execute"/><category scheme="http://stackoverflow.com/feeds/tags" term="mysql"/><category scheme="http://stackoverflow.com/feeds/tags" term="select"/><category scheme="http://stackoverflow.com/feeds/tags" term="update"/>
<author><name>Richard</name></author>
<link rel="alternate" href="http://stackoverflow.com/questions/1861686/pdo-update-after-select-problem" />
<published>2009-12-07T17:50:20Z</published>
<updated>2009-12-07T21:07:23Z</updated>
<summary type="html">
<p>Hello, </p>
<p>My problem is the following</p>
<p>Y have two functions that are called from inside a function(method)</p>
<p>If the outcome of the first function is TRUE, the second function runs a select and an update query.</p>
<p>The second function runs a select with the query($sql) command
The update query uses: </p>
<pre><code>$stmt = $db-&gt;prepare($sql);
$stmt-&gt;execute();
</code></pre>