unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Why won't my submit from Knockout bind to my MVC Model === I have a knockout model that is feeding my page and on a save the following code is executed client side. self.save = function() { var tirerun = ko.mapping.toJSON(self.data()); $.ajax({ type: 'post', url: "@Url.Action("SaveTireRunModel", "Events")", data: tirerun, success: function(result) { if (!result.success) { alert(result.error); } else {} } }); }; It then posts the following JSON to my server (From fiddler and cropped for brevity) ![enter image description here][1] But when it goes into my action the model is completely null. public JsonResult SaveTireRunModel(TireRunViewModel tirerun) { tirerun.Save(); return Json(new { success = true }); } What can I do to further troubleshoot this and figure out why my model isn't binding? [1]: http://i.stack.imgur.com/QrxQM.png
0
[ 2, 483, 230, 22, 38, 51, 12298, 37, 11676, 10193, 20, 51, 307, 8990, 1061, 800, 3726, 3726, 31, 57, 21, 11676, 1061, 30, 25, 8524, 51, 2478, 17, 27, 21, 2079, 14, 249, 1797, 25, 5557, 6819, 270, 9, 1119, 9, 19863, 800, 1990, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How insert data manually in sqlite in android === I'm trying to retrieve data from sqlite and put it into a spinner[like having provinces and cities so i want a selected province to populate its Cities] so i manage to do DBAdapter.. 1) I want to put province and cities into a database, i tried but my last option is to put it manually..so can anyone help me..HOW TO INSERT DATA MANUAL INTO DATABASE and I dont have a database yet. So here what I have tried since in the morning... db.execSQL("CREATE TABLE " + ProvinceTable + " ("+ COLUMN_PID + " INTEGER PRIMARY KEY AUTOINCREMENT , " + COLUMN_PName + "TEXT)" ); db.execSQL("CREATE TABLE " + Cities_TABLE + " ("+COLUMN_CID + " INTEGER PRIMARY KEY AUTOINCREMENT , " +COLUMN_CityNames+" TEXT," + ""+ COLUMN_Lat +" INTEGER, "+COLUMN_Long + " INTEGER , " + COLUMN_PID + " INTEGER NOT NULL , FOREIGN KEY ("+ COLUMN_PID +") REFERENCES " + ProvinceTable + "("+COLUMN_PID + "));"); I've tried using [this][1] solution but i'm lost I dont understand the steps [1]: http://stackoverflow.com/questions/5307769/how-to-insert-data-manual-in-sqlite-database
0
[ 2, 184, 14692, 1054, 23671, 19, 4444, 10601, 19, 13005, 800, 3726, 3726, 31, 22, 79, 749, 20, 11917, 1054, 37, 4444, 10601, 17, 442, 32, 77, 21, 3310, 1031, 2558, 1403, 452, 6590, 17, 1920, 86, 31, 259, 21, 1704, 971, 20, 1675, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Css overlap horizontal menus === I am using two menus and one floating right while other floating left. Both of them using percentages for size issues but when I try to minimize my browser left and right menu overlaps. I just want both to minimize acording to those percentage values. Or just dont want my navigation menu to be overlapped by right gridview menu Both sharing two pictures to make problem more understandable Left menu <div id="sol" class="sola"> Left menu related css code .sola {float:left;display:inline;} #sol {width:15%;} Right menu <div id="orta" class="saga"> Right menu related css code .orta {text-align:center;} .saga {float:right;display:inline;} Left and right before minimizing browser http://g1206.hizliresim.com/y/h/7yxdg.jpg Left and right after minimizing browser http://g1206.hizliresim.com/y/h/7yxks.jpg
0
[ 2, 272, 18, 18, 15406, 10095, 11379, 18, 800, 3726, 3726, 31, 589, 568, 81, 11379, 18, 17, 53, 8319, 193, 133, 89, 8319, 225, 9, 156, 16, 105, 568, 5780, 18, 26, 1072, 1549, 47, 76, 31, 1131, 20, 16713, 51, 16495, 225, 17, 193...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2 asyncTask called in an activity and result generate dynamic content === i'm generating dynamic TextView in an Activity loaded just after the user is logged. I use a webservice to retrieve some data (all user names) and a textView is created for each one. As i have http requests, it is performed in another thread (Asynctask). Before items are created, i wait the query's result and return it in "OnPostExecute". I have my list of user and each item is clickable, and i want now to display some information when i click on it but i don't know how to do it. Here is my code : operation.java public class operation extends AsyncTask<String, Void, ArrayList<String>> { public ArrayList<String> doLogin(AndroidHttpClient client, String userName, String userAccessKey) { ..} public ArrayList<String> doQuery(AndroidHttpClient client, String sessionName, String query) { ...} @Override protected ArrayList<String> doInBackground(String... params) { final AndroidHttpClient client = AndroidHttpClient .newInstance("Android"); if (params[2] == "login") { ArrayList<String> sessionName = doLogin(client, params[0], params[1]); return sessionName; } else if (params[2] == "query") { return doQuery(client, params[3], "select accountname from Accounts;"); } return null; } QueryActivityClass : public class QueryActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.query); Button back = (Button) findViewById(R.id.back); // Display users' name when the activity is launched // creating dynamic TextView items for each user // and allows the user to click on it to display more information. // It calls the function "doInBackGround" to make http requests // (queries) in another thread and retrieve the result to generate a // dynamic page new operation() { @Override public void onPostExecute(ArrayList<String> result) { LinearLayout dynamicWindow = (LinearLayout) findViewById(R.id.windowLayout); dynamicWindow.removeAllViewsInLayout(); // create a dynamic LinearLayout which will contain our // TextViews LinearLayout dynamicContent = new LinearLayout( QueryActivity.this); dynamicContent.setOrientation(LinearLayout.VERTICAL); dynamicContent.setBackgroundColor(0xFF007AAD); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT); params.gravity = Gravity.CENTER_HORIZONTAL; dynamicWindow.addView(dynamicContent); // retrieve every name returned from the query and create a // TextView for each one int nbTextView = result.size(); TextView[] textViewArray = new TextView[nbTextView]; for (int i = 0; i < nbTextView; i++) { Log.i("Contenu ArrayList", "item n°" + i + " = " + result.get(i)); textViewArray[i] = new TextView(QueryActivity.this); textViewArray[i].setText(result.get(i)); textViewArray[i].setTextColor(0xFFFFFFFF); textViewArray[i].setVisibility(View.VISIBLE); textViewArray[i].setGravity(2); textViewArray[i].setId(+i); textViewArray[i].setLeft(10 + (i * 2)); final int test = i; // makes the TextView clickable textViewArray[i].setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { /* HERE IS THE PART I DON'T KNOW HOW TO DOW */ } }); // add the TextView to the linearLayout dynamicContent.addView(textViewArray[i], new LinearLayout.LayoutParams( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.FILL_PARENT)); } } }.execute(null, null, "query", sessionName); // When the "back" button is clicked, the activity is destroyed and the // previous activity on the stack is loaded back.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { finish(); } }); } } So i want to display information in the middle of the screen when i click on a user name, but i would have to do another http request to retrieve his information. it involves that i call doInBackground again by making new Operation().execute(...) and add another case in the doInbackground function in the class operation. I'm a little bit lost, please somebody have an idea ? PS : if you find something in my code that can be improved ... :) Thx
0
[ 2, 172, 21, 9507, 20255, 3656, 227, 19, 40, 2358, 17, 829, 7920, 7782, 2331, 800, 3726, 3726, 31, 22, 79, 13500, 7782, 1854, 4725, 19, 40, 2358, 8572, 114, 75, 14, 4155, 25, 13, 19287, 9, 31, 275, 21, 2741, 11449, 20, 11917, 109...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using MediaView and MP4 videos on an iPad === I am trying to display MP4 videos through Cake's MediaView class. I have it working fine in Chrome & Firefox, the problem is when trying to view the video on an iPad. All I get is the play icon with a line through the middle of it. The video is able to be viewed if you access the URL of the video directly, however I need this layer in between as videos are restricted on who is able to view them. I Google'd the problem and found that the iPad uses RangeRequests (Not fully sure on how all that works) when displaying video content, and found my way to [this][1] article. I then implemented my own View class that incorporated the code in Appendix A (Obviously with a few changes made to suit Cake). I also took a look at Cakes source code for the MediaView class and to me it seemed that it already had code to support range requests. However I have had no luck in getting the videos to work. I am just wondering if there was anything else that might be causing the problem as I realise that the article linked to is over 4 years old now. Thanks, [1]: http://mobiforge.com/developing/story/content-delivery-mobile-devices
0
[ 2, 568, 941, 4725, 17, 4628, 300, 6610, 27, 40, 31, 8240, 800, 3726, 3726, 31, 589, 749, 20, 3042, 4628, 300, 6610, 120, 8390, 22, 18, 941, 4725, 718, 9, 31, 57, 32, 638, 1123, 19, 13, 12985, 279, 535, 18219, 15, 14, 1448, 25,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CakePHP Search Pagination Issues, losing values to the next page === i got this view ?php echo $this->Form->create('Search', array('id' => 'Search', 'url' => array('controller' => 'mycontroller', 'action' => 'index'))); ?> <?php echo $this->Form->input('usuario_id', array('label' => __('Vendedores', true), 'options' => $vendedores, 'empty' => true)); ?> <?php echo $this->Form->input('cliente_id', array('label' => __('Cliente', true), 'options' => $clientes, 'empty' => true)); ?> <?php echo $this->Location->estados(); ?> <?php echo $this->Location->municipios(); ?> <?php echo $this->Location->bairros(); ?> <?php echo $this->Form->input('equipe_id', array('label' => __('Equipe', true), 'options' => $equipe, 'empty' => true)); ?> <?php echo $this->Form->input('veiculo_id', array('label' => __('Modelo', true), 'options' => $veiculos, 'empty' => true)); ?> <?php echo $this->Form->input('status', array('label' => __('Status', true), 'options' => $status, 'empty' => true,'multiple' => true )); ?> <?php echo $this->Utils->data('date_from', array('input' => array('label' => 'De'))); ?> <?php echo $this->Utils->data('date_to', array('input' => array('label' => 'a'))); ?> <?php echo $this->Form->hidden('Search.search'); ?> <?php echo $this->Form->end('Buscar'); ?> and my controller paginations conditions like this if(!empty($this->data['Search']['myvar_id'];)) $this->paginate['conditions']['myModel.myvar_id'] = $this->data['Search']['myvar_id']; all search fields are working fine, and in the #1 page, it's ok, but when i paginate to the #2 page, the values are cleaned. as you can see, i using post method on form, so using this scenario, how can i be sure that when i paginate the values will not be lost? thanks in advanced!
0
[ 2, 8390, 26120, 2122, 19006, 108, 857, 1549, 15, 2281, 4070, 20, 14, 328, 2478, 800, 3726, 3726, 31, 330, 48, 1418, 13, 60, 26120, 8117, 5579, 1565, 8, 1, 4190, 8, 1, 6037, 1373, 5, 22, 25136, 22, 15, 7718, 5, 22, 1340, 22, 80...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
OpenGL - Buffer, shader === Every time I search on Google about OpenGL programming I found articles but it seems that all are mentioning shaders and buffers. What are those? Can you explain some of them: - Depth buffer - Stencil buffer - Pixel shader - Frame buffer - ...? I heard for few of them but couldn't find whole list. What are shaders in OpenGL, and what are buffers? Can somebody provide examples when we are using them?
0
[ 2, 368, 8430, 13, 8, 17497, 15, 7546, 139, 800, 3726, 3726, 352, 85, 31, 2122, 27, 8144, 88, 368, 8430, 3143, 31, 216, 3376, 47, 32, 2206, 30, 65, 50, 21215, 7546, 1224, 17, 17497, 18, 9, 98, 50, 273, 60, 92, 42, 3271, 109, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WIN32OLERuntimeError: occurs while accessing a hidden textbox using Watir Script.how to overcome it? === This is the error I get when I try to access a hidden textfield in the webpage. I am navigating through the page using irb(main):184:0> browser.text_fields[1].set "Hey man" `WIN32OLERuntimeError: (in OLE method 'focus': ) OLE error code:800A083E in htmlfile Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. HRESULT error code:0x80020009 Exception occurred. from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/input_elements.rb:294:in 'method_missing' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/input_elements.rb:294:in 'set' from (irb):184 from C:/Ruby193/bin/irb:12:in 'main>'` Thanks in advance!!!
0
[ 2, 628, 3125, 6069, 3169, 891, 29992, 45, 3690, 133, 1381, 68, 21, 3689, 1854, 5309, 568, 15553, 1523, 3884, 9, 1544, 20, 9059, 32, 60, 800, 3726, 3726, 48, 25, 14, 7019, 31, 164, 76, 31, 1131, 20, 1381, 21, 3689, 1854, 1109, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Google Analytics on Android gives avg site duration: 00:00:00 === this is how I designed my Google Analytics to work on my app: Every activity extends TrackedFragmentActivity or any other fragmentActivity which extends TrackedFragmentActivity. TrackedFragmentActivity is: public class TrackedFragmentActivity extends SherlockFragmentActivity { GoogleAnalyticsTracker tracker; public void startAnalytics(String pageName) { tracker = GoogleAnalyticsTracker.getInstance(); tracker.startNewSession("UA-CODE-HERE", this); tracker.trackPageView(pageName); tracker.dispatch(); } } and every activity has a super.startAnalytics("pagenameHere") call in the onCreate. Now, every activity gets properly tracked and everything, but duration-related data are completely messed up: Pages / Visit: 1.07 Avg. Visit Duration: 00:00:00 Bounce Rate: 94.63% I was calling stopTracker() onDestroy and I though it was its fault for this behavior, therefore I tried to remove it, but I get exactly the same problem. Any idea what could be causing this?
0
[ 2, 8144, 26320, 27, 13005, 2352, 21, 22955, 689, 9403, 45, 13, 2032, 45, 2032, 45, 2032, 800, 3726, 3726, 48, 25, 184, 31, 1006, 51, 8144, 26320, 20, 170, 27, 51, 4865, 45, 352, 2358, 9073, 15535, 22133, 1130, 19348, 54, 186, 89, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Native Windows Application Development Options === Long winded title, short question: If one wants to develop for Windows but not have to rely on any external dependency (no runtime, thus ruling out .net), what supported, alive and fully functioning* alternatives are there? Visual Basic 6 is dead, Visual C++ is obvious and Delphi seems to be the prime choice for that, but I wonder if there are any other alternatives? *as in: Being able to use all the Windows Features like putting an icon in the Notification Area, making the Taskbar Icon flash etc.
0
[ 2, 1275, 1936, 3010, 522, 6368, 800, 3726, 3726, 175, 1511, 69, 581, 15, 502, 1301, 45, 100, 53, 2846, 20, 2803, 26, 1936, 47, 52, 57, 20, 12139, 27, 186, 4886, 26835, 13, 5, 251, 485, 891, 15, 1086, 5716, 70, 13, 9, 2328, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can you change Network settings (IP Address, DNS, WINS, Host Name) with code in C# === I am developing a wizard for a machine that is to be used as a backup of other machines. When it replaces an existing machine, it needs to set its IP address, DNS, WINS, and host name to match the machine being replaced. Is there a library in .net (C#) which allows me to do this programatically? There are multiple NICs, each which need to be set individually.
0
[ 2, 184, 92, 42, 753, 982, 12410, 13, 5, 4307, 3218, 15, 13, 43, 2172, 15, 4041, 15, 2015, 204, 6, 29, 1797, 19, 272, 5910, 800, 3726, 3726, 31, 589, 3561, 21, 10276, 26, 21, 1940, 30, 25, 20, 44, 147, 28, 21, 10119, 16, 89, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Different spring XML files for development environment vs. deployment when using maven === **Summary** We have a central LDAP server that our deployed Java web app should connect to. Our JUnit tests depend on specific data in the LDAP repository, so they need to connect to an embedded ApacheDS LDAP server, primed with a sample data set. How do we make sure that the ApacheDS server doesn't start up when we deploy our webapp? **Details** We are using Spring security, and have the following line in ldap-context.xml to start up the embedded LDAP server: <security:ldap-server root="dc=test,dc=com" port="33389" ldif="classpath:EmbeddedServerRoot.ldif" /> Currently, our web.xml references both this test context file and our top-level application-context.xml: <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:ldap-context.xml classpath:application-context.xml </param-value> </context-param> We need to make sure that ldap-context.xml is included when we run our JUnit tests, and when we run the webapp directly from eclipse (via WTP), but excluded when we package the war and deploy it to a server. We're using maven as the build tool. We can fairly easily take care of this situation for our JUnit tests by making sure they include both spring context files in the context configuration: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "classpath:ldap-context.xml", "classpath:application-context.xml" }) public class TestStuff { } Then, our web.xml would only include application-context.xml, except for one thing - this doesn't work when running from WTP - we need the embedded server to start up in that case as well. Any suggestions?
0
[ 2, 421, 1573, 23504, 6488, 26, 522, 2307, 4611, 9, 10475, 76, 568, 1216, 3124, 800, 3726, 3726, 13, 1409, 18, 723, 17396, 1409, 95, 57, 21, 521, 644, 20472, 8128, 30, 318, 6698, 8247, 2741, 4865, 378, 6379, 20, 9, 318, 7446, 242, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Starting Eclipse w/ Specific Workspace === Is there a way to start an instance of eclipse, passing it some sort of parameter telling it to use a specific workspace? The problem I'm trying to solve is that I have a workspace for work projects and one for personal projects. I'd like to be able to tie these to workspaces to separate shortcuts that I could launch independently.
0
[ 2, 1422, 11652, 619, 118, 1903, 170, 5582, 800, 3726, 3726, 25, 80, 21, 161, 20, 799, 40, 4851, 16, 11652, 15, 2848, 32, 109, 2058, 16, 18906, 2497, 32, 20, 275, 21, 1903, 170, 5582, 60, 14, 1448, 31, 22, 79, 749, 20, 8402, 25...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a good freeware clone of the VMS editor EDT for unix or the pc? === I would like to have the same editor available on all of the platforms I frequent. Emacs and Vi are not desired solutions.
0
[ 2, 25, 80, 21, 254, 551, 5011, 13871, 16, 14, 13, 20147, 18, 1835, 13, 69, 38, 26, 22540, 54, 14, 5168, 60, 800, 3726, 3726, 31, 83, 101, 20, 57, 14, 205, 1835, 904, 27, 65, 16, 14, 6843, 31, 5408, 9, 13, 62, 6893, 18, 17,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Any way to cast with class operator only? === Kinda a random question... What I'm looking for is a way to express a cast operation which uses a defined operator of the class instance I'm casting from, and generates a compile-time error if there is not a defined cast operator for the type. So, for example, what I'm looking for is something like: template< typename RESULT_TYPE, typename INPUT_TYPE > RESULT_TYPE operator_cast( const INPUT_TYPE& tValue ) { return tValue.operator RESULT_TYPE(); } // Should work... CString sString; LPCTSTR pcszString = operator_cast< LPCTSTR >( sString ); // Should fail... int iValue = 42; DWORD dwValue = operator_cast< DWORD >( iValue ); Interesting side-note: The above code crashes the VS2005 C++ compiler, and doesn't compile correctly in the VS2008 C++ compiler due to what I'm guessing is a compiler bug, but hopefully demonstrates the idea. Anybody know of any way to achieve this effect?
0
[ 2, 186, 161, 20, 1325, 29, 718, 6022, 104, 60, 800, 3726, 3726, 21096, 21, 5477, 1301, 9, 9, 9, 98, 31, 22, 79, 699, 26, 25, 21, 161, 20, 2999, 21, 1325, 1453, 56, 2027, 21, 2811, 6022, 16, 14, 718, 4851, 31, 22, 79, 9087, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What reason is there for C# or Java having lambdas? === What reason is there for C# or java having lambdas? Neither language is based around them, it appears to be another coding method to do the same thing that C# already did. I'm not being confrontational, if there is a reason I would like to know the reason why. For the purpose of full disclosure I am a Java programmer with a C++ background with no lisp experience, I may just be missing the point.
0
[ 2, 98, 1215, 25, 80, 26, 272, 5910, 54, 8247, 452, 13, 24187, 18, 60, 800, 3726, 3726, 98, 1215, 25, 80, 26, 272, 5910, 54, 8247, 452, 13, 24187, 18, 60, 3028, 816, 25, 432, 140, 105, 15, 32, 1780, 20, 44, 226, 13, 15458, 21...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to determine if .NET code is running in an ASP.NET process? === I have an instance of a general purpose class that will be executed both under ASP.NET and a stand alone program. This code is sensative to the process where it is being run - that is, there are certin methods that should not called if running under ASP.NET. How do you determine if the code is executing in an ASP.NET process? The solution I am currently using is answered below.
0
[ 2, 184, 20, 3746, 100, 13, 9, 2328, 1797, 25, 946, 19, 40, 28, 306, 9, 2328, 953, 60, 800, 3726, 3726, 31, 57, 40, 4851, 16, 21, 297, 2131, 718, 30, 129, 44, 5557, 156, 131, 28, 306, 9, 2328, 17, 21, 1261, 1056, 625, 9, 48...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I change the default application icon in Java? === I'm using NetBeans, trying to change the familiar Java coffee cup icon to a png file that I have saved in a resources directory in the jar file. I've found many different web pages that claim they have a solution, but so far none of them work. Here's what I have at the moment (leaving out the try-catch block): URL url = new URL("com/xyz/resources/camera.png"); Toolkit kit = Toolkit.getDefaultToolkit(); Image img = kit.createImage(url); getFrame().setIconImage(img); The class that contains this code is in the **com.xyz** package, if that makes any difference. That class also extends JFrame. This code is throwing a MalformedUrlException on the first line. Anyone have a solution that works?
0
[ 2, 184, 107, 31, 753, 14, 12838, 3010, 9801, 19, 8247, 60, 800, 3726, 3726, 31, 22, 79, 568, 4275, 863, 5950, 15, 749, 20, 753, 14, 3694, 8247, 2364, 480, 9801, 20, 21, 351, 2723, 3893, 30, 31, 57, 4377, 19, 21, 2566, 16755, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the difference between game development and business development? === Like most developers, I'm a business developer, which in essence consists of slapping a UI onto some back-end data store. (We all know there's a lot more to it than that, but that's usually what it boils down to.) I understand that game development is very different from business development, but I'm having a hard time explaining it to a friend of mine. I was hoping the SO community could help me out here. To me, modern game developers deal a lot with manipulating 3-dimensional graphics. In gaming code (and I'm guessing here), you're assembling polygons (or something like that), rotating 'em, etc. This involves a different way of thinking from manipulating relational data (for instance). I don't know, really. I just know it's different. Thanks!
0
[ 2, 98, 22, 18, 14, 2841, 128, 250, 522, 17, 508, 522, 60, 800, 3726, 3726, 101, 127, 10168, 15, 31, 22, 79, 21, 508, 10058, 15, 56, 19, 11887, 2043, 16, 25433, 21, 13, 5661, 1204, 109, 97, 8, 2451, 1054, 1718, 9, 13, 5, 458,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Algorithm to order 'tag line' campaigns based on resulting sales === I want to be able to introduce new 'tag lines' into a database that are shown 'randomly' to users. (These tag lines are shown as an introduction as animated text.) Based upon the number of sales that result from those taglines I'd like the good ones to trickle to the top, but still show the others less frequently. I could come up with a basic algorithm quite easily but I want something thats a little more 'statistically accurate'. I dont really know where to start. Its been a while since I've done anything more than basic statistics. My model would need to be sensitive to tolerances, but obviously it doesnt need to be worthy of a PHD.
0
[ 2, 9083, 20, 389, 13, 22, 8628, 293, 22, 8433, 432, 27, 2927, 2598, 800, 3726, 3726, 31, 259, 20, 44, 777, 20, 8500, 78, 13, 22, 8628, 1560, 22, 77, 21, 6018, 30, 50, 1721, 13, 22, 2195, 5555, 102, 22, 20, 3878, 9, 13, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP.NET localization with Page Methods/Web Services via AJAX === That's a mouthful... Here's the issue, we're doing some client-side validation via AJAX calls to page methods (which are essentially web services). We've also added a drop-down on the page to choose your language and have created a class that inherits from Page that initializes localization based on the drop-down selection. When page methods are getting called via AJAX though, the page isn't instantiated normally and therefore the initialization of localization isn't taking place. I've considered saving language choice to the session, but that doesn't solve the problem as every page method would have to re-initialize localization in order to get the proper language files loaded. Any thoughts on how to deal with dynamic localization in Page Methods or Web Services? This is our first foray into localization so I'm hoping I'm missing something obvious...
0
[ 2, 28, 306, 9, 2328, 375, 1829, 29, 2478, 3195, 118, 14113, 687, 1197, 20624, 800, 3726, 3726, 30, 22, 18, 21, 26934, 9, 9, 9, 235, 22, 18, 14, 1513, 15, 95, 22, 99, 845, 109, 6819, 8, 1416, 27999, 1197, 20624, 3029, 20, 2478,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Map two lists into a dictionary in Python === Imagine that you have: keys = ('name', 'age', 'food') values = ('Monty', 42, 'spam') What is the simplest way to produce the following dictionary ? dict = {'name' : 'Monty', 'age' : 42, 'food' : 'spam'} This code works, but I'm not really proud of it : dict = {} junk = map(lambda k, v: dict.update({k: v}), keys, values)
0
[ 2, 2942, 81, 7227, 77, 21, 9186, 19, 20059, 800, 3726, 3726, 4382, 30, 42, 57, 45, 5534, 800, 13, 5, 22, 7259, 22, 15, 13, 22, 1303, 22, 15, 13, 22, 20652, 22, 6, 4070, 800, 13, 5, 22, 3984, 93, 22, 15, 4162, 15, 13, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you move visual studio DataTip window === The window pops up below the variable, and obscures the code I want to look at. Can I move the window without loosing my place in it? I seem to remember there is a way to do it.
0
[ 2, 184, 107, 42, 780, 3458, 1120, 1054, 10169, 1463, 800, 3726, 3726, 14, 1463, 1675, 18, 71, 1021, 14, 7612, 15, 17, 15472, 18, 14, 1797, 31, 259, 20, 361, 35, 9, 92, 31, 780, 14, 1463, 366, 13, 10165, 18, 68, 51, 209, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
jQuery and jVal Validation Plug-in. Adding an attribute to an element. === I'm trying to add the jVal attribute to a textbox that I created in the HTML. <input id="subJobName" type="text" jval="{valid:function (val) { return validateSubJobName(val); }, message:'Name already exists or is longer than 14 characters.', styleType:'cover'}" /> I would let to add /set the jVal in the javascript instead. 2 reasons - 1st : I will not need to search the HTML to see how each item is validated 2nd : We are using a jqGrid and I would like to add this validation to each text box as its dynamically created. I thought I would be able to removed the jVal from the HTMl to leave me with plain old text box. <input id="subJobName" type="text" /> Then in the Doc.Ready function I'd add the jVal to the SubJobName element like so: $("#subJobName").attr({ jval: { valid: function(val) { return validateSubJobName(val); }, message: "Nam", styleType: "cover"} }); This doesn't work. I'm not sure if I can even do this ? Anyone have any ideas? Thanks
0
[ 2, 487, 8190, 93, 17, 487, 3377, 27999, 10922, 8, 108, 9, 4721, 40, 35, 14755, 20, 40, 4520, 9, 800, 3726, 3726, 31, 22, 79, 749, 20, 3547, 14, 487, 3377, 35, 14755, 20, 21, 1854, 5309, 30, 31, 679, 19, 14, 13, 15895, 9, 13,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Setting HTML page vertical position with JavaScript === I have an HTML page that scrolls up and down (not a lot, but it does scroll). I'd like to set the scroll position in the page after executing some JavaScript. Can I do that? I'm using jQuery to inject some additional HTML at the bottom of the page and I'd like to programmatically scroll to the position of that new content after it's added. Thank you rp
0
[ 2, 2697, 13, 15895, 2478, 7035, 649, 29, 8247, 8741, 800, 3726, 3726, 31, 57, 40, 13, 15895, 2478, 30, 12159, 18, 71, 17, 125, 13, 5, 1270, 21, 865, 15, 47, 32, 630, 12159, 6, 9, 31, 22, 43, 101, 20, 309, 14, 12159, 649, 19,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to make this site work in non-firefox browsers? === This page displays beautifully in firefox but i get all kinds of problems when testing the site in opera or internet explorer, mostly with the menu. I would like to know what techniques have caused this and how to avoid them. Thank you!
0
[ 2, 184, 20, 233, 48, 689, 170, 19, 538, 8, 5929, 18219, 16495, 18, 60, 800, 3726, 3726, 48, 2478, 9412, 21202, 19, 535, 18219, 47, 31, 164, 65, 8623, 16, 1716, 76, 4431, 14, 689, 19, 1877, 54, 2620, 8520, 15, 1555, 29, 14, 113...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the accepted way to send 64-bit values over JSON? === Some of my data are 64-bit integers. I would like to send these to a JavaScript program running on a page. However, as far as I can tell, integers in most JavaScript implementations are 32-bit signed quantities. My two options seem to be: 1. Send the values as strings 2. Send the values as 64-bit floating point numbers Option (1) isn't perfect, but option (2) seems far less perfect (loss of data). How have you handled this situation?
0
[ 2, 98, 25, 14, 2217, 161, 20, 2660, 4384, 8, 3326, 4070, 84, 487, 528, 60, 800, 3726, 3726, 109, 16, 51, 1054, 50, 4384, 8, 3326, 13820, 18, 9, 31, 83, 101, 20, 2660, 158, 20, 21, 8247, 8741, 625, 946, 27, 21, 2478, 9, 207, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jQuery multiple radio buttons === New to javascript/jquery and having a hard time with using "this" or "$(this)" to get the current object. I have a table with a set of radio buttons on each row, each named 's_<rowindex>'. None of the radio buttons are checked by default: <tr> <td align="left" style="width: 300px"> <div id="div_s_0"> <input type="radio" name="s_0" value="1" />Public <input type="radio" name="s_0" value="2" />Not Public <input type="radio" name="s_0" value="3" />Confidential </div> </td> </tr> <tr> <td align="left" style="width: 300px"> <div id="div_s_1"> <input type="radio" name="s_1" value="1" />Public <input type="radio" name="s_1" value="2" />Not Public <input type="radio" name="s_1" value="3" />Confidential </div> </td> </tr> I'm trying to write a jQuery function to add a new row to the table whenever the user selects a radio button, but only if they are currently on the last row of the table. What I'd like to do is get the name attribute of the clicked radio button, parse it to get the row index (i.e. the part after the '_') and compare it to the number of rows in the table. If they are equal, add a new row, otherwise, do nothing. My question is twofold, depending on how I should attack this: 1) How do I return the name attribute of a radio button, OR 2) How do I return the row index of the row I am currently in?
0
[ 2, 487, 8190, 93, 1886, 603, 12861, 800, 3726, 3726, 78, 20, 8247, 8741, 118, 728, 8190, 93, 17, 452, 21, 552, 85, 29, 568, 13, 7, 1565, 7, 54, 13, 7, 4403, 5, 1565, 6, 7, 20, 164, 14, 866, 3095, 9, 31, 57, 21, 859, 29, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
From what Linux kernel/libc version is Java Runtime.exec() safe with regards to memory? === At work one of our target platforms is a resource constrained mini-server running Linux (kernel 2.6.13, custom distribution based on an old Fedora Core). The application is written in Java (Sun JDK 1.6_04). The Linux OOM killer is configured to kill processes when memory usage exceeds 160MB. Even during high load our application never go over 120MB and together with some other native processes that are active we stay well within the OOM limit. However, it turns out that the Java Runtime.getRuntime().exec() method, the canonical way to execute external processes from Java, has a [particularly unfortunate implementation on Linux][1] that causes spawned child processes to (temporarily) require the same amount of memory as the parent process since the address space is copied. The net result is that our application gets killed by the OOM killer as soon as we do Runtime.getRuntime().exec(). We currently work around this by having a separate native program do all external command execution and we communicate with that program over a socket. This is less than optimal. After [posting about this problem online][2] I got some feedback indicating that this should not occur on "newer" versions of Linux since they implement the posix fork() method using copy-on-write, presumably meaning it will only copy pages that it needs to modify when it is required instead of the entire address space immediately. My questions are: * Is this true? * Is this something in the kernel, the libc implementation or somewhere else entirely? * From what version of the kernel/libc/whatever is copy-on-write for fork() available? [1]: http://developers.sun.com/solaris/articles/subprocess/subprocess.html [2]: http://aggregat4.net/2008/06/java-runtimeexec-dangerous-on-linux/
0
[ 2, 37, 98, 13024, 17007, 118, 8326, 150, 615, 25, 8247, 485, 891, 9, 1706, 3319, 5, 6, 1834, 29, 14179, 20, 1912, 60, 800, 3726, 3726, 35, 170, 53, 16, 318, 2935, 6843, 25, 21, 6577, 28751, 4236, 8, 10321, 106, 946, 13024, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Tutorial for Python - Should I use 2.x or 3.0? === Python 3.0 is in beta with a final release coming shortly. Obviously it will take some significant time for general adoption and for it to eventually replace 2.x. I am writing a tutorial about certain aspects of programming Python. I'm wondering if I should do it in Python 2.x or 3.0? (not that the difference is huge) a 2.x tutorial is probably more useful now, but it would be nice to start producing 3.0 tutorials. anyone have thoughts? (of course I could do both, but I would prefer to do one or the other)
0
[ 2, 29724, 26, 20059, 13, 8, 378, 31, 275, 172, 9, 396, 54, 203, 9, 387, 60, 800, 3726, 3726, 20059, 203, 9, 387, 25, 19, 8434, 29, 21, 426, 830, 880, 2100, 9, 4409, 32, 129, 247, 109, 1505, 85, 26, 297, 10004, 17, 26, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Regex for pulling data out of quotes? === I'm looking for a regex that can pull out quoted sections in a string, both single and double quotes. IE: "This is 'an example', \"of an input string\"" Matches: * an example * of an input string I wrote up this: [\"|'][A-Za-z0-9]+[\"|'] It works but does anyone see any flaws with it? EDIT: The main issue I see is that it can't handle nested quotes.
0
[ 2, 7953, 1706, 26, 3303, 1054, 70, 16, 18901, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 7953, 1706, 30, 92, 2201, 70, 9591, 4501, 19, 21, 3724, 15, 156, 345, 17, 1494, 18901, 9, 13, 660, 45, 13, 7, 1565, 25, 13, 22, 210,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
REST and SOAP === Can somebody explain what is REST and what is SOAP in plain english? And how Web Services work?
0
[ 2, 760, 17, 6447, 800, 3726, 3726, 92, 8861, 3271, 98, 25, 760, 17, 98, 25, 6447, 19, 3748, 486, 60, 17, 184, 2741, 687, 170, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Compile regex in PHP === Is there a way in PHP to compile a regular expression, so that it can then be compared to multiple strings without repeating the compilation process? Other major languages can do this -- Java, C#, Python, Javascript, etc.
0
[ 2, 26561, 7953, 1706, 19, 13, 26120, 800, 3726, 3726, 25, 80, 21, 161, 19, 13, 26120, 20, 26561, 21, 1290, 1803, 15, 86, 30, 32, 92, 94, 44, 2428, 20, 1886, 7887, 366, 17389, 14, 4868, 953, 60, 89, 394, 2556, 92, 107, 48, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
Reading Guitar Hero or Rock Band Controllers from a PC === The "instruments" that are used with Guitar Hero and Rock Band have USB connections. Is there any documentation or reverse-engineering info out there about how to read the messages they generate?
0
[ 2, 1876, 984, 4702, 54, 629, 323, 9919, 18, 37, 21, 5168, 800, 3726, 3726, 14, 13, 7, 108, 11602, 6601, 7, 30, 50, 147, 29, 984, 4702, 17, 629, 323, 57, 182, 220, 6760, 9, 25, 80, 186, 13945, 54, 7006, 8, 19153, 68, 15404, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
SQL Server 2005 - Restoring an encrypted DB on a different server === I have backed up an encrypted DB (symmetric key/certificate) and restored it on a different server. Unfortuantely we're having problems with the decryption... hoping someone can help. In the restored db, I can see the Symmetric Key and the Certificate in SSMS, but when I try to Open the key using the cert ( open symmetric key KeyA decryption by certificate CertB )I get the following *very descriptive* error: Msg 15466, Level 16, State 1, Line 1 An error occurred during decryption. Any ideas? Thanks in advance.
0
[ 2, 4444, 255, 8128, 812, 13, 8, 19144, 40, 29403, 13, 9007, 27, 21, 421, 8128, 800, 3726, 3726, 31, 57, 6334, 71, 40, 29403, 13, 9007, 13, 5, 16367, 1246, 118, 17580, 24831, 591, 6, 17, 4617, 32, 27, 21, 421, 8128, 9, 367, 646...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Giving a custom UserControl an ID in rendered HTML === When I use a ASP:Calendar control, and give it an ID: `<asp:Calendar runat="server" ID="MyCal" />` It looks like this in the rendered html: `<table id="NameMangled_MyCal"... />` And I can access the element by ID in javascript like this: `var cal= document.getElementById("<%= MyCal.ClientID%>")` **However,** When I make a custom user control that has-a calendar: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="WeeklyEventsCalendar.ascx.cs" Inherits="WeeklyEventsCalendar" %> <div> <asp:Calendar runat="server" ID="InnerCal" Width="100%" OnDayRender="RenderCell" OnVisibleMonthChanged="ChangeMonth" Height="480px" /> </div> And then give it an ID when I add it to my page... ` <mvs:WeeklyEventsCalendar ID="WeeklyCal" runat="server" />` That ID doesn't show up anywhere in the rendered HTML. all I get is `<div> stuff </div>` When I want `<div id="NameMangled_WeeklyCal"> stuff <div>` What am I doing wrong?
0
[ 2, 1438, 21, 5816, 4155, 12898, 40, 4924, 19, 10877, 13, 15895, 800, 3726, 3726, 76, 31, 275, 21, 28, 306, 45, 3430, 219, 2542, 569, 15, 17, 590, 32, 40, 4924, 45, 13, 1, 472, 306, 45, 3430, 219, 2542, 485, 721, 3726, 7, 10321...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Organisation of routes in Rails -- restful_authentication, session and /login === I am struggling with the route setup for a Rails application. I have installed restful_authentication and mostly followed the instructions. I have set up the routes this way: map.login '/login', :controller => 'sessions', :action => 'new' map.logout '/logout', :controller => 'sessions', :action => 'destroy' map.resource :session If you're not logged in, you're redirected to [http://localhost:3000/session/new][1]. It makes some kind of sense, as the code in lib/authenticated_system.rb says `redirect_to new_session_path`. But I thought the routes mapping was supposed to work both ways (code to URL and URL to code). Can someone explain? Thanks [1]: http://localhost:3000/session/new
0
[ 2, 4080, 16, 5050, 19, 2240, 18, 13, 8, 8, 760, 1566, 1, 1346, 2504, 1786, 857, 15, 3723, 17, 13, 118, 5567, 108, 800, 3726, 3726, 31, 589, 7587, 29, 14, 858, 18161, 26, 21, 2240, 18, 3010, 9, 31, 57, 4066, 760, 1566, 1, 134...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Finding entries in one MySQL table based on conditions on another table === I've got a table of hardware and a table of incidents. Each hardware has a unique tag, and the incidents are tied to the tag. How can I select all the hardware which has at least one incident listed as unresolved? I can't just do a join, because then if one piece of hardware had multiple unresolved issues, it would show up multiple times.
0
[ 2, 3007, 11399, 19, 53, 51, 18, 22402, 859, 432, 27, 2039, 27, 226, 859, 800, 3726, 3726, 31, 22, 195, 330, 21, 859, 16, 7610, 17, 21, 859, 16, 11516, 9, 206, 7610, 63, 21, 2619, 3383, 15, 17, 14, 11516, 50, 3802, 20, 14, 33...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Managing multiple persistence mechanisms === I have a set of business objects that potentially can be persisted in different ways, although for any given configuration of the application, only one persistence mechanism will be active. Persistence is handled via interfaces. The obvious architecture, it seems to me, is to put all the persistence objects for one configuration into one package, and all the objects for a different configuration in another package. But it seems that this plan may end up with a lot of different packages and a package management issue instead. Are there any other good solutions to this problem?
0
[ 2, 5616, 1886, 28584, 11626, 800, 3726, 3726, 31, 57, 21, 309, 16, 508, 3916, 30, 9465, 92, 44, 22125, 19, 421, 2847, 15, 419, 26, 186, 504, 8091, 16, 14, 3010, 15, 104, 53, 28584, 6534, 129, 44, 1348, 9, 28584, 25, 9006, 1197, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Programmatically Inject JavaScript in PDF files? === How to Programmatically Inject JavaScript in PDF files? Can it be done without Adobe Professional? ---------- My goal is: I want to show up the print dialog immediately when I open the PDF. I know that this can be done with JavaScript code embedded int the document. But, how to embed it?
0
[ 2, 184, 20, 625, 6732, 1326, 20316, 8247, 8741, 19, 13, 11124, 6488, 60, 800, 3726, 3726, 184, 20, 625, 6732, 1326, 20316, 8247, 8741, 19, 13, 11124, 6488, 60, 92, 32, 44, 677, 366, 20299, 736, 60, 13, 8, 8, 8, 8, 8, 8, 8, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is Semantic and Syntax the same thing? === I don't understand the meaning of semantic and the meaning of syntax! What are they? And what's the difference between things like "semantic website vs. normal website", "semantic social networking vs. normal social networking" etc... I don't get it! HELP!
0
[ 2, 25, 17220, 17, 22649, 14, 205, 584, 60, 800, 3726, 3726, 31, 221, 22, 38, 1369, 14, 1813, 16, 17220, 17, 14, 1813, 16, 22649, 187, 98, 50, 59, 60, 17, 98, 22, 18, 14, 2841, 128, 564, 101, 13, 7, 18, 12955, 1786, 2271, 461...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I give each li it's own bullet image? === I have tried <ul id="contact_list"> <li id="phone">Local 604-555-5555</li> <li id="i18l_phone">Toll-Free 1-800-555-5555</li> </ul> with #contact_list { list-style: disc none inside; } #contact_list #phone { list-style-image: url(images/small_wood_phone.png); } #contact_list #i18l_phone { list-style-image: url(images/i18l_wood_phone.png); } to no avail. Only a disc appears. If I want each individual list item to have it's own bullet, how can I accomplish this with css?
0
[ 2, 184, 92, 31, 590, 206, 2093, 32, 22, 18, 258, 6812, 1961, 60, 800, 3726, 3726, 31, 57, 794, 13, 1, 1287, 4924, 3726, 7, 29912, 1, 5739, 7, 1, 13, 1, 1210, 4924, 3726, 7, 7709, 7, 1, 15580, 2083, 300, 8, 22779, 8, 264, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Code / template generator for Java === For C#, I have often used [CodeSmith](http://www.codesmithtools.com/) and lately the [T4 generator](http://www.hanselman.com/blog/) which is part of Visual Studio. I'm looking for something similar for Java, in particular an Eclipse add-in since I do all my Java development using the Eclipse IDE.
0
[ 2, 1797, 13, 118, 22894, 15286, 26, 8247, 800, 3726, 3726, 26, 272, 5910, 15, 31, 57, 478, 147, 636, 9375, 7017, 500, 5, 21127, 6903, 6483, 9, 9375, 7017, 20799, 18, 9, 960, 118, 6, 17, 10434, 14, 636, 38, 300, 15286, 500, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jquery disable registartion button if mail or username is taken === I have this code that works excellent: $("form.register").change(function() { $.post("check.php", $("form.register").serialize(), function( data ) { if( data.username == "inuse" ) $("p#username_error").slideDown(); else $("p#username_error").hide(); if( data.password == "missmatch" ) $("p#password_error").slideDown(); else $("p#password_error").hide(); if( data.email == "notvalid" ) $("p#email_error").slideDown(); else $("p#email_error").hide(); }, "json"); }); But this code doesn't work for some reason if(data.username == "inuse" || data.password == "missmatch" || data.email == "notvalid") $("input#register_user").attr("disabled","disabled"); else $('input#register_user').removeAttr("disabled"); I know that the `$("input#register_user").attr("disabled","disabled");` and `$('input#register_user').removeAttr("disabled");` works so whats wrong with my code??
0
[ 2, 487, 8190, 93, 1460, 579, 20263, 3958, 3309, 5167, 100, 4216, 54, 4155, 7259, 25, 658, 800, 3726, 3726, 31, 57, 48, 1797, 30, 693, 5977, 45, 5579, 5, 7, 4190, 9, 12463, 9959, 7, 6, 9, 16229, 5, 22359, 5, 6, 13, 1, 5579, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jQuery is not finding elements loaded with AJAX === I have a page like this: <html> <head> <script language="javascript" type="text/javascript" src="jquery-1.4.2.min.js"></script> <script language="javascript" type="text/javascript" src="jqtouch.js"></script> <script language="javascript" type="text/javascript" src="myfunctions.js"></script> [...] </head> <body> [...] <div id="jqt"> <div id="home" class="current"> <div class="toolbar"> TITLE </div> <div class="s-scrollwrapper"> <div class="content"> <div class="container" > <a href="/thepage.php">LOAD ME 1</a><a href="/thepage.php">LOAD ME 2</a> </div> </div> </div> </div> </div> [...] </body> </html> The contents of the loaded page is like this, for example: <div id="AG3456AF002347634"> <div class="toolbar"> TITLE 1 </div> <div class="s-scrollwrapper"> <div class="content"> <div class="container" > <div style="display:none" id="myItemId"></div><button onclick="javascript: showItem();"/> </div> </div> </div> </div> showItem is a function located in myfunctions.js and the contents is, for example this: function showItem() {jQuery(jQT.hist[0].hash + ' #myItemId').show();} so when i click on the button, after the page is loaded, jQT.hist[0].hash value is #AG3456AFGG2347634. This works fine the first time that i load a page with AJAX (well, when jQTouch does it). But if i load another page with same content (but the main identifier is different) it doesn't work. After two AJAX calls, the page dom is simmilar to this: <html> <head> <script language="javascript" type="text/javascript" src="jquery-1.4.2.min.js"></script> <script language="javascript" type="text/javascript" src="jqtouch.js"></script> <script language="javascript" type="text/javascript" src="myfunctions.js"></script> [...] </head> <body> [...] <div id="jqt"> <div id="home"> <div class="toolbar"> TITLE </div> <div class="s-scrollwrapper"> <div class="content"> <div class="container" > <a href="/thepage.php">LOAD ME 1</a><a href="/thepage.php">LOAD ME 2</a> </div> </div> </div> </div> <div id="AG3456AF002347634"> <div class="toolbar"> TITLE 1 </div> <div class="s-scrollwrapper"> <div class="content"> <div class="container" > <div style="display:none" id="myItemId"></div><button onclick="javascript: showItem();"/> </div> </div> </div> </div> <div id="FC00A83473BE33457" class="current"> <div class="toolbar"> TITLE 2 </div> <div class="s-scrollwrapper"> <div class="content"> <div class="container" > <div style="display:none" id="myItemId"></div><button onclick="javascript: showItem();"/> </div> </div> </div> </div> </div> [...] </body> </html> so when i click the button on the second loaded page it doesn't works cause jQuery is not finding the item. the value of jQT.hist[0].hash is correct, that is #FC00A83473BE33457. The item id #myItemId is the same on both pages, that's the reason to use the wrapper div id that it's unique, to locate each loaded item. Why this is working on the first page but it's not when i load additional pages into the DOM??
0
[ 2, 487, 8190, 93, 25, 52, 3007, 2065, 8572, 29, 20624, 800, 3726, 3726, 31, 57, 21, 2478, 101, 48, 45, 13, 1, 15895, 1, 13, 1, 1743, 1, 13, 1, 8741, 816, 3726, 7, 1004, 1385, 8741, 7, 1001, 3726, 7, 11969, 118, 1004, 1385, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Issues with custom font in iOS === I followed the steps outlined in various locations using the `UIAppFonts` property list key. I'm using the Aller Light font. I've added it as a resource, added the font name correctly in the info property list, and am now attempting to use it, however every attempt to do so results in the default font being displayed. So far I've tried: [leader setFont:[UIFont fontWithName:@"Aller Light" size:20.0]]; [leader setFont:[UIFont fontWithName:@"AllerLight" size:20.0]]; [leader setFont:[UIFont fontWithName:@"Aller-Light" size:20.0]]; [leader setFont:[UIFont fontWithName:@"Aller-Lt.ttf" size:20.0]]; leader.font = [UIFont fontWithName:@"Aller Light" size:20.0]; ... with all the variants listed above None of them work. Running `NSLog(@"Available fonts: %@", [UIFont familyNames]);` returns: Available fonts: ( ... "Aller Light", ... ) Thoughts or solutions? Installing the font on my mac and looking in Font Book, the name of the font is Aller Light. Verifying the font in Font Book indicates that the font name is in fact simply Aller Light.
0
[ 2, 1549, 29, 5816, 9978, 19, 13, 7760, 800, 3726, 3726, 31, 709, 14, 2382, 16978, 19, 617, 4095, 568, 14, 13, 1, 5661, 7753, 21931, 18, 1, 1354, 968, 1246, 9, 31, 22, 79, 568, 14, 65, 106, 471, 9978, 9, 31, 22, 195, 905, 32,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Resources for Kids Learning C# === My 11 year old son is very interested in programming. He has been working with [Scratch][1] for a couple years but has now outgrown it. I recently helped him install Visual C# Express Edition and he is very excited to work with it, but we're having a hard time finding good resources for him online. He learns best by looking at sample programs, dissecting them, altering them, etc. Searching around I wasn't able to find many good samples for him to download and try in C# Express Edition. Can anyone point me in the direction of a good set of sample programs for a kid learning C#, or any other resources you think might be good for him? BTW I'm a programmer myself but I've been almost exclusively working with Linux for a long time, so when it comes to Microsoft I'm pretty lost! [1]: http://scratch.mit.edu
0
[ 2, 2566, 26, 2627, 2477, 272, 5910, 800, 3726, 3726, 51, 547, 159, 315, 433, 25, 253, 3158, 19, 3143, 9, 24, 63, 74, 638, 29, 636, 18, 7519, 9744, 500, 2558, 165, 500, 26, 21, 1335, 122, 47, 63, 130, 70, 16347, 32, 9, 31, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Suspending and notifying threads when there is work to do === I have multiple threads (C# application running on IIS) running that all need to communicate with the same MQ backend. To minimize network traffic, I need to only send a backend request when there is work to be done. There will be one thread to monitor if there is work to be done, and it needs to notify the other threads that they should also begin processing. The current solution involves the monitor thread setting a global variable and having the other threads loop and check that, ie in the monitor thread: CheckIfWorkAvailable() { while(true) { if (queue.Empty != true) { workToBeDone = true; } }//end while loop } and then in the worker threads: DoWork() { while(true) { if (workToBeDone == true) { //do work... } else { Thread.Sleep(x seconds) } }//end while loop } Can the monitor thread notify the worker threads when there is work to do instead of having them just loop and sleep? The worker threads also set a counter indicating they are working and the decrement it when their work is done so the workToBeDone flag can be set to false.
0
[ 2, 25082, 68, 17, 52, 10874, 20396, 76, 80, 25, 170, 20, 107, 800, 3726, 3726, 31, 57, 1886, 20396, 13, 5, 150, 5910, 3010, 946, 27, 595, 18, 6, 946, 30, 65, 376, 20, 8709, 29, 14, 205, 307, 1251, 97, 2451, 9, 20, 16713, 982...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dynamically Positioned Flex Components === I have a requirement on my current project (a Flex app which will be run in Flash player) to hide/display a subset of the components on a form given certain criteria from the user's session. I'm trying to decide what the best way to approach this problem is. Should I create a Canvas (or other container) with all of the needed controls on it and then just set visible = false on the ones I don't need? The problem then becomes making sure the layout looks decent. I don't want there to be gaps where the hidden controls would have been. The other option I've thought about is just having a mechanism that could dynamically instantiate the TextInput or CheckBox etc. component and then call container.addChild(control) in order to build up the components and not have to worry about the gap issue. This seems like a problem that has an idiomatic solution in flex, but I don't know what it is. Neither of these ideas seem great so I'm wondering if anyone else has a better idea.
0
[ 2, 7782, 1326, 12125, 14409, 5090, 800, 3726, 3726, 31, 57, 21, 8981, 27, 51, 866, 669, 13, 5, 58, 14409, 4865, 56, 129, 44, 485, 19, 4433, 517, 6, 20, 3077, 118, 2906, 5438, 21, 16622, 16, 14, 5090, 27, 21, 505, 504, 1200, 91...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Doxygen wont index my C++ source - why not? === I have some C++ source code with templates maybe like this - doxygen runs without errors but none of the documentation is added to the output, what is going on? /// /// A class /// class A { /// /// A typedef /// typedef B<C<D>> SomeTypedefOfTemplates; };
0
[ 2, 107, 15161, 1863, 7290, 4348, 51, 272, 20512, 1267, 13, 8, 483, 52, 60, 800, 3726, 3726, 31, 57, 109, 272, 20512, 1267, 1797, 29, 22894, 18, 913, 101, 48, 13, 8, 107, 15161, 1863, 1461, 366, 11908, 47, 2369, 16, 14, 13945, 25...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PDF Libraries === Can you guys list available PDF libraries to manipulate PDF files? - Is it freeware and/or open-source? - What language(s) it is available for?
0
[ 2, 13, 11124, 8649, 800, 3726, 3726, 92, 42, 2776, 968, 904, 13, 11124, 8649, 20, 18468, 13, 11124, 6488, 60, 13, 8, 25, 32, 551, 5011, 17, 118, 248, 368, 8, 12097, 60, 13, 8, 98, 816, 5, 18, 6, 32, 25, 904, 26, 60, 3, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
PowerBuilder Runtime Packager error: Linking Msi for PowerBuilder.NET runtime get an error. === I've just installed PowerBuilder 11.5. I'm trying to use the PowerBuilder Runtime Packager that comes with it to create an MSI with the PowerBuilder runtime DLLs. But when I hit create, about a third of the way through I get the error "Linking Msi for PowerBuilder.NET runtime get an error." (The poor English is verbatim.) This happens both when I select "PowerBuilder Standard Components" and when I select "PowerBuilder .NET Components" Does anyone know how to fix this? As an aside, if XML is selected, I get an error about APACHE_LICENSE.TXT is missing. But I'm not worried about that right now.
0
[ 2, 414, 20904, 485, 891, 6030, 139, 7019, 45, 12585, 4235, 49, 26, 414, 20904, 9, 2328, 485, 891, 164, 40, 7019, 9, 800, 3726, 3726, 31, 22, 195, 114, 4066, 414, 20904, 547, 9, 264, 9, 31, 22, 79, 749, 20, 275, 14, 414, 20904,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Advanced Python FTP - can I control how ftplib talks to a server? === I need to send a very specific (non-standard) string to an FTP server: dir "SYS:\IC.ICAMA." The case is critical, as are the style of quotes and their content. Unfortunately, ftplib.dir() seems to use the 'LIST' command rather than 'dir' (and it uses the wrong case for this application). The FTP server is actually a telephone switch and it's a very non-standard implementation. I tried using ftplib.sendcmd(), but it also sends 'pasv' as part of the command sequence. Is there an easy way of issuing specific commands to an FTP server?
0
[ 2, 2255, 20059, 1187, 306, 13, 8, 92, 31, 569, 184, 1187, 306, 8326, 7837, 20, 21, 8128, 60, 800, 3726, 3726, 31, 376, 20, 2660, 21, 253, 1903, 13, 5, 3951, 8, 15566, 6, 3724, 20, 40, 1187, 306, 8128, 45, 13, 9035, 13, 7, 49...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Perl code golf === What's the shortest Perl one-liner that print out the first 9 powers of a hard-coded 2 digit decimal (say, for example, .37), each on its own line? The output would look something like: 1 0.37 0.1369 [etc.]
0
[ 2, 416, 255, 1797, 4034, 800, 3726, 3726, 98, 22, 18, 14, 23576, 416, 255, 53, 8, 14813, 30, 4793, 70, 14, 64, 561, 2737, 16, 21, 552, 8, 22254, 172, 15611, 26380, 13, 5, 6366, 15, 26, 823, 15, 13, 9, 3555, 6, 15, 206, 27, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the best way to implement different views for a website based on role? === In ASP.NET what's the best way to do the following: 1. Show certain controls based on your rights? 2. For a gridview control, how do you show certain columns based on your role? I'm thinking for number 2, have the data come from a role specific view on the database.
0
[ 2, 98, 22, 18, 14, 246, 161, 20, 8713, 421, 4146, 26, 21, 2271, 432, 27, 597, 60, 800, 3726, 3726, 19, 28, 306, 9, 2328, 98, 22, 18, 14, 246, 161, 20, 107, 14, 249, 45, 137, 9, 298, 1200, 8671, 432, 27, 154, 1096, 60, 172,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WAV file auto repeat in C# === I have a 10 second sound effect wave file. What I would like to do is take that file and repeat it n number of times and then save the longer WAV file to disk. This way I can create a much longer background effect rather than auto-repeat on the media player which is a bit stuttered between repeats. I am trying to do this in C#.
0
[ 2, 3142, 710, 3893, 3108, 6830, 19, 272, 5910, 800, 3726, 3726, 31, 57, 21, 332, 153, 646, 1590, 2367, 3893, 9, 98, 31, 83, 101, 20, 107, 25, 247, 30, 3893, 17, 6830, 32, 13, 103, 234, 16, 436, 17, 94, 2079, 14, 1045, 3142, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Regex greedy issue === I'm sure this one is easy but I've tried a ton of variations and still cant match what I need. The thing is being to greedy and I cant get it to stop being greedy. Given the text: test=this=that=more text follows I want to just select: text= I've tried the following regex (\S+)=(\S.*) (\S+)?= [^=]{1} ... Thanks all.
0
[ 2, 7953, 1706, 23833, 1513, 800, 3726, 3726, 31, 22, 79, 562, 48, 53, 25, 2010, 47, 31, 22, 195, 794, 21, 13, 444, 16, 8194, 17, 174, 2973, 730, 98, 31, 376, 9, 14, 584, 25, 142, 20, 23833, 17, 31, 2973, 164, 32, 20, 747, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What IIS 6.0 setting determines how a path is resolved? === I have a website that is deployed between 3 different environments - Dev, Stage, and Prod. For Stage and Prod, the site can resolve local paths to images with just the base url to the file, such as /SiteImages/banner.png. However, on the Dev server I have to hard code the full URL of the image path for the image to be resolved, such as http://server/folder/SiteImages/banner.png. Is there a setting I can flip to make the Dev server behave in the same manner as the other 2? I am using IIS 6.0 on a Win 2003 server.
0
[ 2, 98, 595, 18, 400, 9, 387, 2697, 3746, 18, 184, 21, 2013, 25, 11052, 60, 800, 3726, 3726, 31, 57, 21, 2271, 30, 25, 6698, 128, 203, 421, 11246, 13, 8, 9664, 15, 876, 15, 17, 895, 43, 9, 26, 876, 17, 895, 43, 15, 14, 689,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why or How does FREETEXTTABLE give a rank value higher then others. === There is a store procedure that uses FREETEXTTABLE twice on two tables and then merges the results and returns the top 50. The problem is if I do a search on "Women of Brewster", the results returns "Confession of an ex doofus motha" with a rank of 143 from table A and second "Women of Brewster Place" with a rank of 102 from table B. Is this because of the count? (Table A return results total is 2399. Table B return results total is 3445.)
0
[ 2, 483, 54, 184, 630, 551, 11969, 5924, 590, 21, 2839, 1923, 1184, 94, 654, 9, 800, 3726, 3726, 80, 25, 21, 1718, 7004, 30, 2027, 551, 11969, 5924, 2088, 27, 81, 7484, 17, 94, 12666, 18, 14, 1736, 17, 4815, 14, 371, 1222, 9, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sql Triggers === I have a table that has an insert trigger on it. If I insert in 6000 records into this table in one insert statement from a stored procedure, will the stored procedure return before the insert trigger completes? Just to make sure that I'm thinking correctly, the trigger should only be called (i know 'called' isn't the right word) once because there was only 1 insert statement, right? My main question is: will the sproc finish even if the trigger hasn't completed?
0
[ 2, 4444, 255, 7286, 18, 800, 3726, 3726, 31, 57, 21, 859, 30, 63, 40, 14692, 7286, 27, 32, 9, 100, 31, 14692, 19, 400, 3993, 742, 77, 48, 859, 19, 53, 14692, 3331, 37, 21, 8214, 7004, 15, 129, 14, 8214, 7004, 788, 115, 14, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Remove a symlink to a directory === I have a symlink to an important directory. I want top get rid of that symlink, while keeping the directory behind it. I tried 'rm' and get back "rm: cannot remove `foo'". I tried 'rmdir' and got back "rmdir: failed to remove `foo': Directory not empty" I then progressed through 'rm -f', 'rm -rf' and 'sudo rm -rf' Then I went to find my back-ups. Is there a way to get rid of the symlink with out throwing away the baby with the bathwater?
0
[ 2, 4681, 21, 13, 7261, 6258, 20, 21, 16755, 800, 3726, 3726, 31, 57, 21, 13, 7261, 6258, 20, 40, 681, 16755, 9, 31, 259, 371, 164, 6681, 16, 30, 13, 7261, 6258, 15, 133, 2882, 14, 16755, 439, 32, 9, 31, 794, 13, 22, 6538, 22...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a tool to automatically fetch build dependencies under Debian or Ubuntu? === I recently downloaded the source tarball for a GTK application that I'd like to improve. It uses the standard `./configure` and `make` build sequence. The first time through, `configure` reported a bunch of unmet build dependencies, such as `libgnomeui-2.0`. As I usually do, I had to manually go through and find the Debian `*-dev` package names corresponding to these dependencies... of course the names never match up quite the same, so it gets to be a real hassle. So what occurred to me is... **are there any helper tools to automatically install the build dependencies listed by the `automake`/`autoconf` configuration files???** (I already know about the `dpkg-buildpackage` tools, but in this case I am interested in building from a raw distribution-independent source tarball, **not** from the Debian package source.)
0
[ 2, 25, 80, 21, 5607, 20, 7499, 18312, 1895, 29411, 131, 121, 10035, 54, 287, 12968, 2473, 60, 800, 3726, 3726, 31, 1989, 23887, 14, 1267, 2475, 3610, 26, 21, 9509, 197, 3010, 30, 31, 22, 43, 101, 20, 3545, 9, 32, 2027, 14, 1236,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
For a typical Web 2.0 Social Application - Java vs C# === For a product in long run (may be 0.5-1 million users) is it good to use java instead of .net from the cost/profitability perspective. To elaborate more..consider web farm scenario in which one will have to purchase windows + Sql server + some antivirus licenses for .net applications. But for java it's almost free. What points should I consider? PS: I am a .net person by heart
0
[ 2, 26, 21, 3874, 2741, 172, 9, 387, 668, 3010, 13, 8, 8247, 4611, 272, 5910, 800, 3726, 3726, 26, 21, 2374, 19, 175, 485, 13, 5, 3904, 44, 713, 9, 264, 8, 165, 507, 3878, 6, 25, 32, 254, 20, 275, 8247, 700, 16, 13, 9, 2328...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is a Swamp Diagram? === Someone told me about swamp diagrams explaning that they were useful to predict code quality by measuring the rate of incoming defects and outgoing fixes on a given product. Unfortunately, I am unable to find additional information on those diagrams and I am wondering if it is a jargon term specific to one company. Can you explain what a swamp diagram is?
0
[ 2, 98, 25, 21, 8695, 14161, 60, 800, 3726, 3726, 737, 470, 55, 88, 8695, 14161, 18, 1396, 9863, 68, 30, 59, 46, 4811, 20, 9584, 1797, 2190, 34, 9937, 14, 1684, 16, 17126, 21747, 17, 25193, 6098, 160, 27, 21, 504, 2374, 9, 6200, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to port from Drupal to Django? === What would be the best way to port an existing Drupal site to a Django application? I have around 500 pages (mostly books module) and around 50 blog posts. I'm not using any 3rd party modules. I would like to keep the current URLS (for SEO purposes) and migrate database to Django. I will create a simple blog application, so migrating blog posts should be ok. What would be the best way to serve 500+ pages with Django? I would like to use Admin to edit/add new pages.
0
[ 2, 184, 20, 1295, 37, 15708, 6720, 20, 3857, 14541, 60, 800, 3726, 3726, 98, 83, 44, 14, 246, 161, 20, 1295, 40, 3149, 15708, 6720, 689, 20, 21, 3857, 14541, 3010, 60, 31, 57, 140, 3033, 4434, 13, 5, 18397, 964, 12613, 6, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Effect of NOLOCK hint in SELECT statements === I guess the real question is: If I don't care about dirty reads, will adding the **with (NOLOCK)** hint to a SELECT statement affect the performance of: 1. the current SELECT statement 2. other transactions against the given table Example: Select * from aTable with (NOLOCK)
0
[ 2, 1590, 16, 90, 3966, 6382, 19, 5407, 9015, 800, 3726, 3726, 31, 2321, 14, 683, 1301, 25, 45, 100, 31, 221, 22, 38, 781, 88, 6121, 11137, 15, 129, 4721, 14, 13, 1409, 1410, 13, 5, 251, 3966, 6, 1409, 6382, 20, 21, 5407, 3331,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
In LINQ how to find a distinct item that is joining 2 tables? === Given the Below Tables. How do I get the Distinct name given the other ID of 76 in LINQ? **Table S** SID OtherID ------------------------------ 1 77 2 76 **Table Q** QID SID HighLevelNAme LoweLevelName --------------------------------------- 10 1 Name1 Engine 11 1 Name1 SparkPlus 12 1 Name2 Seat 13 1 Name2 Belt 14 1 Name1 Oil I want to return a list of Name1 Name2 The SQL to do this is SELECT DISTINCT Q.HighLevelNAme FROM S JOIN Q ON Q.SID = S.SID WHERE S.OtherID = 76 I also have Objects that represents each table. An answer in VB or C# is acceptable.
0
[ 2, 19, 6294, 1251, 184, 20, 477, 21, 4421, 9101, 30, 25, 3765, 172, 7484, 60, 800, 3726, 3726, 504, 14, 1021, 7484, 9, 184, 107, 31, 164, 14, 4421, 204, 504, 14, 89, 4924, 16, 6914, 19, 6294, 1251, 60, 13, 1409, 5924, 13, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why so many web pages contain such a strange code snippet in header === I've noticed for quite a long time that strange domains such like jsev.com, cssxx.com appered in my firefox status bar from time to time, I always wonder why so many web pages contains resources from these strange domains. I googled it, but found nothing. I guess it's some kind of virus which infect the servers and insert the code. Here is a sample taken from page header of http://www.eflorenzano.com/threadexample/blog/: <script language="javascript" src="http://i.jsev.com./base.2032621946.js"> </script> <body onmousemove="return fz3824();"> <LINK REL="stylesheet" TYPE="text/css" HREF="http://i.cssxx.com./base2032621947.css"> <A HREF = "http://i.html.com./base2032621947.html"></A> <SCRIPT LANGUAGE="JAVASCRIPT" SRC="http://i.js.com./base2032621947.js"></SCRIPT> <SCRIPT LANGUAGE="JAVASCRIPT"> function getuseragnt() { var agt = navigator.userAgent.toLowerCase(); agt = agt.replace(/ /g, ""); return agt; } document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='http://i.css2js.com./base.css" + getuseragnt() + "_2032621947'>") </SCRIPT>
0
[ 2, 483, 86, 151, 2741, 4434, 3717, 145, 21, 2578, 1797, 13, 29061, 19, 157, 106, 800, 3726, 3726, 31, 22, 195, 2711, 26, 1450, 21, 175, 85, 30, 2578, 15544, 145, 101, 487, 18, 2443, 9, 960, 15, 272, 18, 18, 8962, 9, 960, 4865,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can anyone figure out how to update to flash_switcher.xpi to include Flash Player 10 === I don't know anything about XPIs but I've searched through the install.rdf, *.js, and *.xul files and found no reference to an array of flash versions, so I cannot clearly see where the version list comes from.
0
[ 2, 92, 1276, 1465, 70, 184, 20, 11100, 20, 4433, 1, 18, 15915, 106, 9, 396, 2159, 20, 468, 4433, 517, 332, 800, 3726, 3726, 31, 221, 22, 38, 143, 602, 88, 993, 8954, 47, 31, 22, 195, 9036, 120, 14, 16146, 9, 897, 410, 15, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to create empty text file from a batch file? === Can somebody remember what was the command to create an empty file in MSDOS using BAT file?
0
[ 2, 184, 20, 1600, 2424, 1854, 3893, 37, 21, 13064, 3893, 60, 800, 3726, 3726, 92, 8861, 1518, 98, 23, 14, 1202, 20, 1600, 40, 2424, 3893, 19, 4235, 8609, 568, 3570, 3893, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Regex in .Net question === I have this regex I built and tested in regex buddy. "_ [ 0-9]{10}+ {1}+[ 0-9]{10}+ {2}+[ 0-9]{6}+ {2}[ 0-9]{2}" When I use this in .Net C# I receive the exception "parsing \"_ [ 0-9]{10}+ +[ 0-9]{10}+ +[ 0-9]{6}+ [ 0-9]{2}\" - Nested quantifier +." What does this error mean? Apparently .net doesn't like the expression. Here is the regex buddy so u can understand my intention with the regex... _ [ 0-9]{10}+ {1}+[ 0-9]{10}+ {2}+[ 0-9]{6}+ {2}[ 0-9]{2} Match the characters "_ " literally «_ » Match a single character present in the list below «[ 0-9]{10}+» Exactly 10 times «{10}+» The character " " « » A character in the range between "0" and "9" «0-9» Match the character " " literally « {1}+» Exactly 1 times «{1}+» Match a single character present in the list below «[ 0-9]{10}+» Exactly 10 times «{10}+» The character " " « » A character in the range between "0" and "9" «0-9» Match the character " " literally « {2}+» Exactly 2 times «{2}+» Match a single character present in the list below «[ 0-9]{6}+» Exactly 6 times «{6}+» The character " " « » A character in the range between "0" and "9" «0-9» Match the character " " literally « {2}» Exactly 2 times «{2}» Match a single character present in the list below «[ 0-9]{2}» Exactly 2 times «{2}» The character " " « » A character in the range between "0" and "9" «0-9»
0
[ 2, 7953, 1706, 19, 13, 9, 2328, 1301, 800, 3726, 3726, 31, 57, 48, 7953, 1706, 31, 392, 17, 7631, 19, 7953, 1706, 9065, 9, 13, 7, 1, 636, 713, 8, 518, 500, 1, 1036, 1, 2430, 13, 1, 165, 1, 2430, 2558, 713, 8, 518, 500, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Learning Java Swing? === I am a veteran C/C++ programmer who has used Win32, MFC and WTL to write Windows apps for many years. I have some very basic Java experience, but haven't done anything with a UI. I want to start learning how to write desktop apps in Java and from what I can gather, Swing is the way to go. My question is: where do I start? Can anyone recommend any decent books? (I do like a good programming book). I've played with Netbeans a little in the past (and was impressed with what I saw) so I'd like to use that as my Java IDE of choice if that makes any difference.
0
[ 2, 2477, 8247, 5587, 60, 800, 3726, 3726, 31, 589, 21, 7441, 272, 118, 150, 20512, 17968, 72, 63, 147, 628, 3125, 15, 307, 7061, 17, 619, 7786, 20, 2757, 1936, 4865, 18, 26, 151, 122, 9, 31, 57, 109, 253, 2125, 8247, 1496, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I set up my environment for ESC/Java2 in Windows and build/run with ESC/Java2? === How do I set up my execution environment for ESC/Java2 in WindowsXP? And furthermore, how do I build and run, in WindowsXP, projects with ESC/Java2. It is hard to tell from their specifications/readme and documentation, specially considering the fact that they seem to be talking more about Unix based operating systems.
0
[ 2, 184, 107, 31, 309, 71, 51, 2307, 26, 17689, 118, 1004, 1385, 135, 19, 1936, 17, 1895, 118, 3169, 29, 17689, 118, 1004, 1385, 135, 60, 800, 3726, 3726, 184, 107, 31, 309, 71, 51, 5769, 2307, 26, 17689, 118, 1004, 1385, 135, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why does my OpenGL ES iPhone game flicker when I first turn on the phone? === I made a simple game for the iPhone using OpenGL ES. Everything works fine except for this problem: I turn the phone completely off, then back on, then launch my app and I get this wierd flickering! Every other frame is correct... the incorrect frames are just the same frame over and over again. If I quit the app, launch it again everything is fine. If I quit and restart 10 times in a row everything is fine every time. But if I turn the phone off, then back on, then launch the app I get the same flickering the first time I launch the app. Why is this happening?! Has anyone else had this problem? Cheers!
0
[ 2, 483, 630, 51, 368, 8430, 13, 160, 21024, 250, 18709, 76, 31, 64, 805, 27, 14, 1132, 60, 800, 3726, 3726, 31, 117, 21, 1935, 250, 26, 14, 21024, 568, 368, 8430, 13, 160, 9, 796, 693, 1123, 1613, 26, 48, 1448, 45, 31, 805, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating a web app, then adding AJAX to it? === I imagine there are many of you out there who have developed an app online which automates a lot of processes and saves people at your company time and money. The question is, what are your experiences with developing that app, having it all set in place, then "spicing" it up with some AJAX, so it makes for a better user experience? Also, what libraries would you suggest using when adding AJAX to an already developed web app ? Lastly, what are some common processes you see in web apps that AJAX does well with? For example...auto-populating the search box as you type.
0
[ 2, 2936, 21, 2741, 4865, 15, 94, 4721, 20624, 20, 32, 60, 800, 3726, 3726, 31, 4382, 80, 50, 151, 16, 42, 70, 80, 72, 57, 885, 40, 4865, 2087, 56, 3108, 8977, 21, 865, 16, 5102, 17, 16815, 148, 35, 154, 237, 85, 17, 875, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual studio problem headers without .h === I am using a library that has headers without the .h This defeats visual studio's intellisense (declaration/definition lookup) Anyone know how to tell VS2008 that a file is a header?
0
[ 2, 3458, 1120, 1448, 157, 445, 366, 13, 9, 252, 800, 3726, 3726, 31, 589, 568, 21, 1248, 30, 63, 157, 445, 366, 14, 13, 9, 252, 48, 2143, 18, 3458, 1120, 22, 18, 14635, 3159, 6498, 13, 5, 546, 12078, 857, 118, 28643, 361, 576,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
What is the best way to roll-back a change set using Subversion? === I've been using various source control systems for a while, but when it comes to reverting changes I'm not yet an expert. Can someone help given this scenario: ## Scenario ## - Given a bug was introduced in revision #5 - And 3 files were changed in revision #5 - And changes in 2 files were responsible for the bug - When the customer discovers the bug in a release of revision #9 (HEAD) - Then 2 of the files causing the bug from revision #5 must be reverted to revision #4 - And changes from revision #6 to HEAD must be applied to the two files I expect there must be a way to compare revisions #4 and #5 of the two files and generate a patch that undoes the changes in revision #5, which can then be applied to the HEAD revision to roll-back the defect.
0
[ 2, 98, 25, 14, 246, 161, 20, 3001, 8, 1958, 21, 753, 309, 568, 972, 10898, 60, 800, 3726, 3726, 31, 22, 195, 74, 568, 617, 1267, 569, 1242, 26, 21, 133, 15, 47, 76, 32, 1624, 20, 24156, 68, 1693, 31, 22, 79, 52, 768, 40, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I attach the debugger to IIS instead of ASP.NET Development Server? === I have an ASP.NET website and when I press F5 it automatically attaches to the ASP.NET Development Server, how do I attach to IIS worker process instead when I press F5?
0
[ 2, 184, 107, 31, 19514, 14, 121, 2345, 11356, 20, 595, 18, 700, 16, 28, 306, 9, 2328, 522, 8128, 60, 800, 3726, 3726, 31, 57, 40, 28, 306, 9, 2328, 2271, 17, 76, 31, 901, 398, 264, 32, 7499, 23453, 18, 20, 14, 28, 306, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Flash AS2.0 - Read <li> tags from XML === I have an XML document, and contained within one of the nodes, I have `<li>` tags. I don't need `<ul></ul>` tags for Flash because it only accepts `<li>` tags anyway. For example, here's part of the XML doc: <node> <li>item1</li> <li>item2</li> </node> I want to put all the data within the `<node>` tags, _with bullets_, into a TextArea component in Flash 8. Note that my textArea is set to accept HTML, and that textArea.text = "<li>This is bulleted text</li>"; works just fine. However, the `<li>` tags within the XML document are being interpreted as a completely different node, which I obviously do not want. I tried using a CDATA tag within the XML, and it inputted everything between the `<node>` tags, _including_ the `<li>` tags with all their brackets. It does that because `<li>`'s brackets are being interpreted with the equivalent "& lt;" and "& gt;" for the left/right brackets. So now I'm stuck with an unordered list in my XML file that I can't read into Flash. Unless, of course, somebody here can help me out?
0
[ 2, 4433, 28, 135, 9, 387, 13, 8, 1302, 13, 1, 1210, 1, 3383, 18, 37, 23504, 800, 3726, 3726, 31, 57, 40, 23504, 4492, 15, 17, 3437, 363, 53, 16, 14, 16272, 15, 31, 57, 13, 1, 1210, 1, 3383, 18, 9, 31, 221, 22, 38, 376, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you start debugging a Cocoa app with a URL? === I'm debugging a Cocoa application that can act as a handler to a custom URL protocol. The application works fine when I click on a link after the application has launched, but something is causing the app to crash if it has not launched at the time the link is clicked. Is there any way that I can start the app in the debugger and "fool" it into thinking that I had just clicked on a link?
0
[ 2, 184, 107, 42, 799, 121, 16254, 2762, 21, 24507, 4865, 29, 21, 287, 6362, 60, 800, 3726, 3726, 31, 22, 79, 121, 16254, 2762, 21, 24507, 3010, 30, 92, 601, 28, 21, 24641, 20, 21, 5816, 287, 6362, 8494, 9, 14, 3010, 693, 1123, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Software patents or Can I write a RSVP program for my mobile device? === I wanted to write a small [Rapid Serial Visual Presentation (RSVP)][1] program for my mobile device but I realized that there are some patent issues associated with that technique ([exhibit 1][2] and [exhibit 2][3]). Can I write such program and try to make money with it? Would it be legal to give such program for free? [1]: http://en.wikipedia.org/wiki/Rapid_Serial_Visual_Presentation [2]: http://www.freepatentsonline.com/EP1275051.html [3]: http://patft.uspto.gov/netacgi/nph-Parser?Sect2=PTO1&Sect2=HITOFF&p=1&u=%2Fnetahtml%2Fsearch-bool.html&r=1&f=G&l=50&d=PALL&RefSrch=yes&Query=PN%2F6056551
0
[ 2, 2306, 16676, 54, 92, 31, 2757, 21, 13, 1224, 10924, 625, 26, 51, 3241, 3646, 60, 800, 3726, 3726, 31, 417, 20, 2757, 21, 284, 636, 525, 11031, 5956, 3458, 6364, 13, 5, 1224, 10924, 6, 500, 2558, 165, 500, 625, 26, 51, 3241, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.Net 2.0 ServiceController.GetServices() === I've got a website that has windows authentication enable on it. From a page in the website, the users have the ability to start a service that does some stuff with the database. It works fine for me to start the service because I'm a local admin on the server. But I just had a user test it and they can't get the service started. My question is: ---------- **Does anyone know of a way to get a list of services on a specified computer by name using a different windows account than the one they are currently logged in with?** ---------- I really don't want to add all the users that need to start the service into a windows group and set them all to a local admin on my IIS server..... Here's some of the code I've got: public static ServiceControllerStatus FindService() { ServiceControllerStatus status = ServiceControllerStatus.Stopped; try { string machineName = ConfigurationManager.AppSettings["ServiceMachineName"]; ServiceController[] services = ServiceController.GetServices(machineName); string serviceName = ConfigurationManager.AppSettings["ServiceName"].ToLower(); foreach (ServiceController service in services) { if (service.ServiceName.ToLower() == serviceName) { status = service.Status; break; } } } catch(Exception ex) { status = ServiceControllerStatus.Stopped; SaveError(ex, "Utilities - FindService()"); } return status; } My exception comes from the second line in the try block. Here's the error: > System.InvalidOperationException: > Cannot open Service Control Manager on > computer 'server.domain.com'. This > operation might require other > privileges. ---> > System.ComponentModel.Win32Exception: > Access is denied --- End of inner > exception stack trace --- at > System.ServiceProcess.ServiceController.GetDataBaseHandleWithAccess(String > machineName, Int32 > serviceControlManaqerAccess) at > System.ServiceProcess.ServiceController.GetServicesOfType(String > machineName, Int32 serviceType) at > TelemarketingWebSite.Utilities.StartService() Thanks for the help/info
0
[ 2, 13, 9, 2328, 172, 9, 387, 365, 12898, 1252, 9, 3060, 11449, 18, 5, 6, 800, 3726, 3726, 31, 22, 195, 330, 21, 2271, 30, 63, 1936, 27963, 9240, 27, 32, 9, 37, 21, 2478, 19, 14, 2271, 15, 14, 3878, 57, 14, 2165, 20, 799, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Nice Labels with X in To Field of Compose Message? === In Facebook's Compose Message, each name that appears in the TO field uses a nice LABEL with an X. Click on the X, and you remove name from the To sender field. I see this same feature again in other web2.0 social networking apps. Are there open source tools that let me make those nice X LABELS after you click on the autocomplete list?
0
[ 2, 2210, 13173, 29, 993, 19, 20, 575, 16, 18217, 2802, 60, 800, 3726, 3726, 19, 9090, 22, 18, 18217, 2802, 15, 206, 204, 30, 1780, 19, 14, 20, 575, 2027, 21, 2210, 1899, 29, 40, 993, 9, 10840, 27, 14, 993, 15, 17, 42, 4681, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I stop FCKeditor reverting html entities back to their unicode characters === I am having a problem with FCKeditor reverting html entities entered in the source view back to their original unicode representations. For example when I enter `&euro;` into the source view, switch to html and then back to source view, the entity is replaced by an actual € symbol. The bigger problem, as a result, is that this unicode character is then sent back to the server on submit causing character encoding issues with the underlying database table. Anyone else come across this? I have tried many combinations of config settings but all to no avail.
0
[ 2, 184, 107, 31, 747, 2644, 197, 13401, 24156, 68, 13, 15895, 12549, 97, 20, 66, 28010, 1766, 800, 3726, 3726, 31, 589, 452, 21, 1448, 29, 2644, 197, 13401, 24156, 68, 13, 15895, 12549, 1297, 19, 14, 1267, 1418, 97, 20, 66, 501, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to determine if cookies are enabled in ASP.NET? === What is the best method for determining if a users browser has cookies enabled in ASP.NET
0
[ 2, 246, 161, 20, 3746, 100, 19396, 50, 9338, 19, 28, 306, 9, 2328, 60, 800, 3726, 3726, 98, 25, 14, 246, 2109, 26, 13521, 100, 21, 3878, 16495, 63, 19396, 9338, 19, 28, 306, 9, 2328, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What is the easiest way to add a Visual Studio 2008 Context Menu Item? === I would like to add a custom menu item when you right-click a certain file extension in Visual Studio. There seem to be some helper open source projects to accomplish this, but I'd like to ask if anyone has ever used them, and how easy were they - and can you help me and provide a starting point? One I've researched is: [http://www.codeplex.com/ManagedMenuExtension][1] [1]: http://www.codeplex.com/ManagedMenuExtension
0
[ 2, 98, 25, 14, 27237, 161, 20, 3547, 21, 3458, 1120, 570, 4141, 11379, 9101, 60, 800, 3726, 3726, 31, 83, 101, 20, 3547, 21, 5816, 11379, 9101, 76, 42, 193, 8, 150, 10129, 21, 1200, 3893, 3896, 19, 3458, 1120, 9, 80, 2260, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Help documenting Javascript in Visual Studio? === I'm trying to get my Javascript documentation in order so that my [comments can be used by Intellisense](http://weblogs.asp.net/bleroy/archive/2007/04/23/the-format-for-javascript-doc-comments.aspx)), for example displayResults = function(msg, filterParams) { /// <summary> /// Gathers inputs and refreshes the grid and map /// </summary> /// <param name="msg">JSON data returned by GetConcessions ajax call</param> /// <param name="filterParams">JSON parameters that were originally passed to GetConcessions ajax call</param> ... } In VB, I use [GhostDoc](http://www.roland-weigelt.de/ghostdoc/) to make the process of adding structured comments easier. Is there anything like that to make my life easier in Javascript?
0
[ 2, 448, 4492, 68, 8247, 8741, 19, 3458, 1120, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 164, 51, 8247, 8741, 13945, 19, 389, 86, 30, 51, 636, 960, 6601, 92, 44, 147, 34, 14635, 3159, 6498, 500, 5, 21127, 6903, 14113, 5567, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
py3k RC-1: "LookupError: unknown encoding: uft-8" === I just installed the first release candidate of Python 3.0 and got this error after typing: >>> help('modules foo') <pre>[...] LookupError: unknown encoding: uft-8</pre> Notice that it says **uft**-8 and not **utf**-8 Is this a py3k specific bug or a misconfiguration on my part? I do not have any other versions of Python installed on this French locale Windows XP SP3 machine.
0
[ 2, 7103, 240, 197, 16462, 8, 165, 45, 13, 7, 5810, 576, 29992, 45, 2562, 19608, 45, 287, 3072, 8, 457, 7, 800, 3726, 3726, 31, 114, 4066, 14, 64, 830, 2316, 16, 20059, 203, 9, 387, 17, 330, 48, 7019, 75, 25266, 45, 13, 1, 44...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Remove repetitive, hard coded loops and conditions in C# === I have a class that compares 2 instances of the same objects, and generates a list of their differences. This is done by looping through the key collections and filling a set of other collections with a list of what has changed (this may make more sense after viewing the code below). This works, and generates an object that lets me know what exactly has been added and removed between the "old" object and the "new" one. My question/concern is this...it is really ugly, with tons of loops and conditions. Is there a better way to store/approach this, without having to rely so heavily on endless groups of hard-coded conditions? public void DiffSteps() { try { //Confirm that there are 2 populated objects to compare if (NewStep.Id != Guid.Empty && SavedStep.Id != Guid.Empty) { //<TODO> Find a good way to compare quickly if the objects are exactly the same...hash? //Compare the StepDoc collections: OldDocs = SavedStep.StepDocs; NewDocs = NewStep.StepDocs; Collection<StepDoc> docstoDelete = new Collection<StepDoc>(); foreach (StepDoc oldDoc in OldDocs) { bool delete = false; foreach (StepDoc newDoc in NewDocs) { if (newDoc.DocId == oldDoc.DocId) { delete = true; } } if (delete) docstoDelete.Add(oldDoc); } foreach (StepDoc doc in docstoDelete) { OldDocs.Remove(doc); NewDocs.Remove(doc); } //Same loop(s) for StepUsers...omitted for brevity //This is a collection of users to delete; it is the collection //of users that has not changed. So, this collection also needs to be checked //to see if the permisssions (or any other future properties) have changed. foreach (StepUser user in userstoDelete) { //Compare the two StepUser oldUser = null; StepUser newUser = null; foreach(StepUser oldie in OldUsers) { if (user.UserId == oldie.UserId) oldUser = oldie; } foreach (StepUser newie in NewUsers) { if (user.UserId == newie.UserId) newUser = newie; } if(oldUser != null && newUser != null) { if (oldUser.Role != newUser.Role) UpdatedRoles.Add(newUser.Name, newUser.Role); } OldUsers.Remove(user); NewUsers.Remove(user); } } } catch(Exception ex) { string errorMessage = String.Format("Error generating diff between Step objects {0} and {1}", NewStep.Id, SavedStep.Id); log.Error(errorMessage,ex); throw; } }
0
[ 2, 4681, 24935, 15, 552, 13, 22254, 19661, 17, 2039, 19, 272, 5910, 800, 3726, 3726, 31, 57, 21, 718, 30, 11590, 18, 172, 13946, 16, 14, 205, 3916, 15, 17, 7920, 18, 21, 968, 16, 66, 4921, 9, 48, 25, 677, 34, 5293, 68, 120, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Capturing data from .net web-service that fails with http 500 === I have a .net web-service hosted in IIS 6.0 that periodically fails with an http 500 because a client connects to it with data that does not match the wsdl. Things like having an element specified in a method as being of type int and the inbound xml element contains a decimal number. wsdl element definition: &lt;s:element minOccurs="1" maxOccurs="1" form="unqualified" name="ItemCount" type="s:int" /&gt; provided element: &lt;ItemCount&gt;1.0&lt;/ItemCount&gt; This leaves a 500 error in the iis logs but no information of the soap fault returned or the input data that caused the error. Currently I have diagnosed several problems with data provided by capturing everything using wireshark but I'd like to know of other options that a perhaps less intrusive. Is there any way of capturing the data being sent that is causing the 500 errors (hopefully ONLY capturing the data when the 500 occurs)? Possibly by: - Configuring IIS - Configuring the web-service - Changing the code of the web-service
0
[ 2, 12859, 1054, 37, 13, 9, 2328, 2741, 8, 11449, 30, 13614, 29, 7775, 3033, 800, 3726, 3726, 31, 57, 21, 13, 9, 2328, 2741, 8, 11449, 2812, 19, 595, 18, 400, 9, 387, 30, 19886, 13614, 29, 40, 7775, 3033, 185, 21, 6819, 8534, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Word press - Changed directory and images do not appear === I changed the folder that my wordpress installation was in. However, this worked fine, except now all my images are not showing up. The problem is that each post has the full url of the image in it. (not my doing, this seems to be the default setting) Is there a tool or a quick fix available for this?
0
[ 2, 833, 901, 13, 8, 1015, 16755, 17, 3502, 107, 52, 1893, 800, 3726, 3726, 31, 1015, 14, 19294, 30, 51, 833, 5890, 7758, 23, 19, 9, 207, 15, 48, 577, 1123, 15, 1613, 130, 65, 51, 3502, 50, 52, 3187, 71, 9, 14, 1448, 25, 30, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I cancel postback when user presses return in a textbox? === I have a `textbox` whose input is being handled by jQuery. $('input.Search').bind("keyup", updateSearchTextbox); When I press `Enter` in the textbox, I get a postback, which messes everything up. How can I trap that Enter and ignore it? (Just to preempt one possible suggestion: The textbox has to be an `<asp:textbox ... />` - I can't replace it with an `<input ... />`.)
0
[ 2, 92, 31, 14815, 678, 1958, 76, 4155, 16527, 788, 19, 21, 1854, 5309, 60, 800, 3726, 3726, 31, 57, 21, 13, 1, 11969, 5309, 1, 1196, 6367, 25, 142, 9006, 34, 487, 8190, 93, 9, 5579, 5, 22, 108, 4881, 9, 25136, 22, 6, 9, 4772...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
View need to go Winform to Webform, what is your advice === Our application is well structured (well we did our best!) and we have split the Model from the View, Now, we need to let some information to our client with a web access. We would like to build something small with IIS and some webform. Here some information you might think are useful: 1. Our controller have Thread of database queries 2. Our database is PostGresql 3. All is build with C#2.0 4. We used a lot of databinding between our View and Controller in Winform. 5. Winform will stay for internal purpose, only a small part will be available on the Internet. What are your suggestions for this kind of move?
0
[ 2, 1418, 376, 20, 162, 628, 4190, 20, 2741, 4190, 15, 98, 25, 154, 4978, 800, 3726, 3726, 318, 3010, 25, 134, 17784, 13, 5, 854, 95, 144, 318, 246, 187, 6, 17, 95, 57, 2132, 14, 1061, 37, 14, 1418, 15, 130, 15, 95, 376, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
LuaSocket FTP always times out === I've had success with [LuaSocket][1]'s TCP facility, but I'm having trouble with its FTP module. I always get a timeout when trying to retrieve a (small) file. I can download the file just fine using Firefox or ftp in passive mode (on Ubuntu Dapper Linux). I thought it might be that I need LuaSocket to use passive FTP, but then I found that it seems to do that by default. The file I'm trying to retrieve via FTP can be accessed with passive FTP via other programs on my machine, but not via active mode. I found [some talk][2] about "hacking" passive mode support into LuaSocket, and that discussion implies that later versions stopped using passive mode, but my version seems to use passive anyway (I'm using 2.0.1; newest is 2.0.2 and does not appear to have any changes relevant to my use case). I'm a little confused about how that post may relate to my situation, partly because it's very old and LuaSocket's source now bears little resemblance to the code in that discussion). I've boiled my code down to this: local ftp = require "socket.ftp" print(ftp.get("ftp://ftp.us.dell.com/app/dpart.txt")) This gives me a timeout. I ran it under `strace` on Linux (same as `ptrace` on Solaris). Here's an abridged transcript: socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3 fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 recv(3, "230-Welcome to the Dell FTP site."..., 8192, 0) = 971 send(3, "pasv\r\n", 6, 0) = 6 recv(3, 0x8089a58, 8192, 0) = -1 EAGAIN (Resource temporarily unavailable) select(4, [3], NULL, NULL, {9, 999934}) = 0 (Timeout) There's another site I tried connecting to, but it has a password which I can't post here, but in that case the results were slightly different...I got trace like the above but with `select()` succeeding at the end, then this: recv(3, "227 Entering Passive Mode (123,456,789,0,12,34)\r\n", 8192, 0) = 49 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4 fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(4, {sa_family=AF_INET, sin_port=htons(12345), sin_addr=inet_addr("123.456.789.0")}, 16) = -1 EINPROGRESS (Operation now in progress) select(5, [4], [4], NULL, {9, 999694}) = 0 (Timeout) Compare this to the trace of my "ftp" program in passive mode (which works fine, though note that it does not set the sockets to nonblocking like LuaSocket does): socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 6 write(5, "PASV\r\n", 6) = 6 read(3, "227 Entering Passive Mode (123,456,789,0,12,34)\r\n", 1024) = 51 connect(6, {sa_family=AF_INET, sin_port=htons(12345), sin_addr=inet_addr("123.456.789.0")}, 16) = 0 So I've tried LuaSocket against these two different FTP sites with different but similar failures. I also tried it from another machine where active FTP works, and it didn't have any better luck there (presumably because LuaSocket is always using passive mode, from what I can tell by reading the source in `socket/ftp.lua`). So can anyone here make the LuaSocket two-liner at the top work? Note that on my machine, active FTP to Dell's site doesn't work (I can connect but as soon as I do `ls` it disconnects), so if you get LuaSocket to work please also note whether active FTP to Dell's site from another program works on your machine. [1]: http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/ [2]: http://lua-users.org/lists/lua-l/2003-09/msg00217.html
0
[ 2, 1612, 472, 5668, 1198, 1187, 306, 550, 436, 70, 800, 3726, 3726, 31, 22, 195, 41, 1280, 29, 636, 2377, 472, 5668, 1198, 500, 2558, 165, 500, 22, 18, 13, 38, 7439, 2646, 15, 47, 31, 22, 79, 452, 2572, 29, 82, 1187, 306, 1261...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Problems Reading RSS with C# and .net 3.5 === I have been attempting to write some routines to read RSS and ATOM feeds using the new routines available in System.ServiceModel.Syndication, but unfortunately the Rss20FeedFormatter bombs out on about half the feeds I try with the following exception: > An error was encountered when parsing a DateTime value in the XML. This seems to occur whenever the RSS feed expresses the publish date in the following format: > Thu, 16 Oct 08 14:23:26 -0700 If the feed expresses the publish date as GMT, things go fine: > Thu, 16 Oct 08 21:23:26 GMT If there's some way to work around this with XMLReaderSettings, I have not found it. Can anyone assist?
0
[ 2, 1716, 1876, 13, 1224, 18, 29, 272, 5910, 17, 13, 9, 2328, 203, 9, 264, 800, 3726, 3726, 31, 57, 74, 6314, 20, 2757, 109, 8275, 18, 20, 1302, 13, 1224, 18, 17, 14571, 17058, 568, 14, 78, 8275, 18, 904, 19, 329, 9, 11449, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get All Elements in an HTML document with a specific CSS Class === What's the best way to get an array of all elements in an html document with a specific CSS class using javascript?
0
[ 2, 164, 65, 2065, 19, 40, 13, 15895, 4492, 29, 21, 1903, 272, 18, 18, 718, 800, 3726, 3726, 98, 22, 18, 14, 246, 161, 20, 164, 40, 7718, 16, 65, 2065, 19, 40, 13, 15895, 4492, 29, 21, 1903, 272, 18, 18, 718, 568, 8247, 8741,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Host C# winforms in VB6 applications === I have a VB 6 application and we are starting to port it over to C#. We have finished one of the screens and wanted to see if there was an incremental way of hosting the winform within VB to start to have the existing users get used to new screens. This is a migration strategy.. Any thoughts.
0
[ 2, 2015, 272, 5910, 628, 4190, 18, 19, 13, 20468, 379, 3767, 800, 3726, 3726, 31, 57, 21, 13, 20468, 400, 3010, 17, 95, 50, 1422, 20, 1295, 32, 84, 20, 272, 5910, 9, 95, 57, 842, 53, 16, 14, 14236, 17, 417, 20, 196, 100, 80,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get other process' argv === I want to get other process' argv like ps. I'm using Mac OS X 10.4.11 running on Intel or PowerPC. First, I read code of ps and man kvm, then I wrote some C code. #include <kvm.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <sys/sysctl.h> #include <paths.h> int main(void) { char errbuf[1024]; kvm_t *kd = kvm_openfiles(_PATH_DEVNULL, NULL, _PATH_DEVNULL, O_RDONLY, errbuf); int num_procs; if (!kd) { fprintf(stderr, "kvm_openfiles failed : %s\n", errbuf); return 0; } struct kinfo_proc *proc_table = kvm_getprocs(kd, KERN_PROC_ALL, 0, &num_procs); for (int i = 0; i < num_procs; i++) { struct kinfo_proc *pproc = &proc_table[i]; char **proc_argv = kvm_getargv(kd, pproc, 0); printf("%p\n", proc_argv); } kvm_close(kd); return 0; } When ran on PowerPC, `kvm_getargv()` always returned NULL. When ran on Intel, `kvm_openfiles()` failed with error `/dev/mem: No such file or directory`. Of cource, I know about permission. Second, I tried sysctl. #include <sys/sysctl.h> #include <stdio.h> #include <stdlib.h> #define pid_of(pproc) pproc->kp_proc.p_pid int main(void) { int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_ALL, 0 }; int buffer_size; sysctl(mib, 4, NULL, &buffer_size, NULL, 0); struct kinfo_proc *result = malloc(buffer_size); sysctl(mib, 4, result, &buffer_size, NULL, 0); int num_procs = buffer_size / sizeof(struct kinfo_proc); for (int i = 0; i < num_procs; i++) { struct kinfo_proc *pproc = result + i; int mib[3] = { CTL_KERN, KERN_PROCARGS, pid_of(pproc) }; // KERN_PROC_ARGS is not defined char *proc_argv; int argv_len; sysctl(mib, 3, NULL, &argv_len, NULL, 0); proc_argv = malloc(sizeof(char) * argv_len); sysctl(mib, 3, proc_argv, &argv_len, NULL, 0); fwrite(proc_argv, sizeof(char), argv_len, stdout); printf("\n"); free(proc_argv); } return 0; } By fwrite, I got argv[0] but argv[1..] are not (environment variables are printed out.) There is no more way to do it?
0
[ 2, 164, 89, 953, 22, 13, 10663, 710, 800, 3726, 3726, 31, 259, 20, 164, 89, 953, 22, 13, 10663, 710, 101, 8613, 9, 31, 22, 79, 568, 1572, 13, 759, 993, 332, 9, 300, 9, 1306, 946, 27, 14635, 54, 414, 5779, 9, 64, 15, 31, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you get people to value abstraction and flexibility over "just getting it done"? === I sometimes have difficulties with other people who wish to solve a problem when they wish to skip the official interfaces and access underlying implementation details directly. They argue that doing so will allow them to solve the problem more quickly. I argue that doing so will cause our architecture to become more tightly coupled and difficult to change as new requirements emerge. I point out all of the work that went into the current design and the philosophy of the design and the value of flexibility, the cost of trying to maintain and change brittle code, the value of encapsulation and data hiding and layered architectures and being robust so that small changes in the specification lead to small changes in the code. And they say "But this would be easier." How do you handle these people?
0
[ 2, 184, 107, 42, 164, 148, 20, 1923, 23907, 17, 19401, 84, 13, 7, 2759, 1017, 32, 677, 7, 60, 800, 3726, 3726, 31, 1030, 57, 8075, 29, 89, 148, 72, 2536, 20, 8402, 21, 1448, 76, 59, 2536, 20, 12532, 14, 989, 6573, 18, 17, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Are immutable arrays possible in .NET? === Is it possible to somehow mark a `System.Array` as immutable. When put behind a public-get/private-set they can't be added to, since it requires re-allocation and re-assignment, but a consumer can still set any subscript they wish: public class Immy { public string[] { get; private set; } } I thought the `readonly` keyword might do the trick, but no such luck.
0
[ 2, 50, 797, 7903, 579, 7718, 18, 938, 19, 13, 9, 2328, 60, 800, 3726, 3726, 25, 32, 938, 20, 3625, 943, 21, 13, 1, 10724, 9, 8576, 93, 1, 28, 797, 7903, 579, 9, 76, 442, 439, 21, 317, 8, 3060, 118, 20181, 8, 3554, 59, 92, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...