unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
.htaccess file to nginx configuration file === I really need to convert this .htaccess code to nginx configuration. I have never worked with nginx, so I am pretty new to this kind of stuff. My .htaccess is not that big. If anyone could convert it to a nginx configuration file, it would be great! <Files file.swf> ForceType application/x-httpd-php </Files> (I have tried to use the converters which have been previously posted, but none of them seemed to work.) Thanks in advance, Zoorah.
0
[ 2, 13, 9, 9020, 20604, 3893, 20, 13, 2723, 108, 396, 8091, 3893, 800, 3726, 3726, 31, 510, 376, 20, 8406, 48, 13, 9, 9020, 20604, 1797, 20, 13, 2723, 108, 396, 8091, 9, 31, 57, 243, 577, 29, 13, 2723, 108, 396, 15, 86, 31, 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 to use matlab linprog with an implicit equation that isa function of both the objective and constraint? === I am trying to use linprog as shown in the code below where: PV_supply, WT_supply and Diesel_supply are 24x1. As you can see, the "diesel_cost" which is a part of the objective function "f" is a function of the "Diesel_supply" which I am trying to vary per hour of the 24 hour data set. However, at the same time this diesel cost is related to the "Diesel_supply" that is in the inequality constraint "A". Diesel_generator_energy = sum(Diesel_supply); Diesel_cost = Diesel_generator_energy*Diesel_cost_per_kWh; A = [-PV_supply -WT_supply -Diesel_supply]; b = [-Demand;]; f = [CRF_PV*CC_PV; CRF_WT*CC_WT; CRF_Diesel_generator*CC_Diesel+Diesel_cost]; [x,fval,exitflag] = linprog(f,A,b,[],[],lb,ub) I am struggling to understand, if first of all, it is possible to do such a programme and what the technique will be i.e if the "Diesel_supply" values are completely unknown (only the size is known) can I formulate for minimising the objective function, meeting the constraints with an unknown vector? If this can be done with more input information, what will this be? I do know the following equation which I am not sure if it can be used: Diesel_cost = diesel_cost_litres*( b*diesel_generator_capacity + a*diesel_supply) where a and b and diesel_cost_litres are constants. for example, the "diesel_supply" is what I am looking for, but if I was to predetermine the "diesel_generator_capacity" to a scalar value then I might be able to minimize "Diesel_cost" in the function "f" somehow? thank you
0
[ 2, 184, 20, 275, 4277, 9086, 6294, 2740, 263, 29, 40, 20290, 8020, 30, 25, 58, 1990, 16, 156, 14, 7038, 17, 28804, 60, 800, 3726, 3726, 31, 589, 749, 20, 275, 6294, 2740, 263, 28, 1721, 19, 14, 1797, 1021, 113, 45, 13, 10166, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
use of Parametrized Stored Procedure in C# === I am trying to invoke the stored procedure in my C# application but it is not really invoking I tried so much tried call it ExecuteReader, NonRedaer, Scalar etc. but still it not getting executed I am dispalying my whole code below including sql commands which ever I used Please check out that what really is the problem in my code Thanks in Advance Stock Table Create Table Stock ( --S_ID int Primary Key identity (1,1), Date_of_Added Datetime Default (getdate()), EnvType nvarchar(10), TypeSize nvarchar(10), Size nvarchar(10), [Description] sql_variant, Qty int, Quality int, ) New Product Table Create Table NewProduct ( MS nvarchar(30), Date_of_Added Datetime Default (getdate()), Invoice_No nvarchar(20), Challan_No nvarchar(20), EnvType nvarchar(10), TypeSize nvarchar(10), Size nvarchar(10), Description sql_variant, Qty int, Quality int, PayState nvarchar(10), Balanace_Amount money, PaymentMode nvarchar(6), Cheque_No int, BankDetails nvarchar(30), P_UnitPrice money, P_Price money ) --Creating Trigger of above Stored Procedure to Update or insert the Stock as Needed Create Procedure StockProc (@EnvType nvarchar(50),@TypeSize nvarchar(50),@Size nvarchar(50),@Desc Sql_variant,@Qty int,@Quality int) As Begin if exists (select S.EnvType, S.TypeSize, S.Size, S.[Description], S.Qty, S.Quality from NewProduct NP Full Join Stock S on(NP.Size=NP.Size) where NP.Size=@Size and NP.TypeSize=@TypeSize and NP.EnvType=@EnvType and NP.Quality=@Quality) --Print 'Record Found'; --If Record will found then ut will update the quantity Begin update Stock set Qty=NP.Qty+S.Qty from NewProduct NP, Stock S --have not used IN Operator here as IN works as OR Clause where S.EnvType=NP.EnvType and S.TypeSize=NP.TypeSize and S.Size=NP.Size End Else --If no record will match with the enterd data, New Record will be added on Stock Table Begin --Print 'No Record Found' insert into Stock (EnvType, TypeSize, Size, [Description], Qty, Quality) values(@EnvType,@TypeSize,@Size,@Desc,@Qty,@Quality) --Below Lines will slow down the performance so we are using the above query --Truncate Table Stock --insert into Stock (Date_of_Added, EnvType, TypeSize, Size, [Description], Qty, Quality) --select Date_of_Added, EnvType, TypeSize, Size, [Description], Qty, Quality from NewProduct End End --while testing in sql it works fine you can test it by below exec code exec StockProc 'fdfdf','sdf','dsfs','sdf',4,5 private void cmdSave_Click(object sender, EventArgs e) { try { SqlCommand cmd = null; //Will check the connection state if got open then will close the connection if (ObjCon.con.State == ConnectionState.Open) ObjCon.con.Close(); ObjCon.con.Open(); string Query = "INSERT INTO NewProduct ([MS], [Date_of_Added], [Invoice_No], [Challan_No], [EnvType], [TypeSize], [Size],[Description], [Qty], [Quality], [PayState], [Balanace_Amount], [PaymentMode], [Cheque_No], [BankDetails], [P_UnitPrice], [P_Price]) VALUES ('" + txtMs.Text + "','" + dtpNewProduct.Value + "','" + txtInvoiceNo.Text + "','" + txtChallanNo.Text + "','" + cboType.Text + "','" + txtTypeSize1.Text + "X" + txtTypeSize2.Text + "','" + txtSize1.Text + "X" + txtSize2.Text + "','" + txtDesc.Text + "','" + nudQty.Value + "','" + nudQuality.Value + "','" + cboPayState.Text + "','" + txtBalAmt.Text + "','" + cboPayMode.Text + "','" + txtChequeNo.Text + "','" + txtBankNameBranch.Text + "','" + txtPUPrice.Text + "','" + txtPPrice.Text + "')"; cmd = new SqlCommand(Query, ObjCon.con); cmd.ExecuteNonQuery(); SqlCommand cmd2 = new SqlCommand("StockProc", ObjCon.con); //SqlCommand cmd2 = new SqlCommand("exec StockProc '" + cboType.Text + "','" + txtTypeSize1.Text + "X" + txtTypeSize2.Text + "','" + txtSize1.Text + "X" + txtSize2.Text + "','" + txtDesc.Text + "','" + nudQty.Value + "','" + nudQuality.Value + "'", ObjCon.con); cmd2.CommandType = CommandType.StoredProcedure; //cmd2.Parameters.Add(new SqlParameter("@Date_of_Added", dtpNewProduct.Value)); cmd2.Parameters.Add(new SqlParameter("@EnvType", cboType.Text)); cmd2.Parameters.Add(new SqlParameter("@TypeSize", txtTypeSize1.Text + "X" + txtTypeSize2.Text)); cmd2.Parameters.Add(new SqlParameter("@Size", txtSize1.Text + "X" + txtSize2.Text)); cmd2.Parameters.Add(new SqlParameter("@Desc", txtDesc.Text)); cmd2.Parameters.Add(new SqlParameter("@Qty", nudQty.Value)); cmd2.Parameters.Add(new SqlParameter("@Quality", nudQuality.Value)); //http://www.java2s.com/Tutorial/CSharp/0560__ADO.Net/Callstoredprocedureandpassintheparameter.htm //cmd2.Parameters.Add(new SqlParameter("@EnvType", SqlDbType.NVarChar)).Value = cboType.Text; //cmd2.Parameters.Add(new SqlParameter("@TypeSize", SqlDbType.NVarChar)).Value = txtTypeSize1.Text + "X" + txtTypeSize2.Text; //cmd2.Parameters.Add(new SqlParameter("@Size", SqlDbType.NVarChar )).Value=txtSize1.Text + "X" + txtSize2.Text; //cmd2.Parameters.Add(new SqlParameter("@Desc", SqlDbType.Variant)).Value=txtDesc.Text; //cmd2.Parameters.Add(new SqlParameter("@Qty",SqlDbType.Int)).Value= nudQty.Value; //cmd2.Parameters.Add(new SqlParameter("@Quality", SqlDbType.Int)).Value = nudQuality.Value; //SqlDataReader dr = cmd2.ExecuteReader(); //if (dr.HasRows) // MessageBox.Show("FOUND") //if (dr.IsClosed == false) //{ // dr.Close(); //} //dr.Read(); //cmd2.ExecuteScalar(); //cmd2.ExecuteNonQuery(); //set Asynchronous Processing=true in conneciton String in order to use BeginExecureNonQuery Method //cmd2.BeginExecuteNonQuery(); //if (cmd2.ExecuteNonQuery() > 0) // MessageBox.Show("FOUND"); //dr.Close(); ObjCon.con.Close(); MessageBox.Show("Your Details has been Saved\rThank You", "Save", MessageBoxButtons.OK, MessageBoxIcon.Information); this.Close(); } catch (Exception ex) { MessageBox.Show("The Following Error Occur" + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); this.Close(); } } Please Help...... or Do you think that I should use UDF instead of Stored Procedure
0
[ 2, 275, 16, 2258, 5909, 139, 1333, 8214, 7004, 19, 272, 5910, 800, 3726, 3726, 31, 589, 749, 20, 28371, 14, 8214, 7004, 19, 51, 272, 5910, 3010, 47, 32, 25, 52, 510, 19, 2625, 1581, 31, 794, 86, 212, 794, 645, 32, 15644, 10647, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
nested resources and parameters to form_for === I'm currently reading Beginning Rails 3. The tutorial creates a blog. There Users can post Articles as well as Comments to the Articles. An Article has_many Comments and a Comment belongs_to an Article. Inside routes.rb we have: resources :articles do resources :comments end Now in the 'comments/new.html.erb' file the first line looks like this: <%= form_for([@article, @article.comments.new]) do |f| %> Can someone explain to me why two parameters are needed in the array? What is the second parameter's relationship with a form and especially why is a new instance of a comment being created? thanks, mike
0
[ 2, 5618, 69, 2566, 17, 12905, 20, 505, 1, 1106, 800, 3726, 3726, 31, 22, 79, 871, 1876, 997, 2240, 18, 203, 9, 14, 29724, 9695, 21, 8146, 9, 80, 3878, 92, 678, 3376, 28, 134, 28, 7534, 20, 14, 3376, 9, 40, 2002, 63, 1, 14842...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Sharing RegistrationController for two devise models === I have two devise models, Individual and Group. I'm trying to share similar behavior for Registrations/Confirmations (send users to a page that informs them that an email has been sent, or send them to the edit page after confirmation, etc.) My issue is that this works for Individuals, only. It has yet to work for Groups. config/outes.rb: devise_for :individuals, :controllers => {:confirmations => "Confirmation", :registrations => "Registrations"} devise_for :groups, :controllers => {:confirmations => "Confirmation", :registrations => "Registrations"} app/controllers/registrations_controller.rb: class RegistrationsController < Devise::RegistrationsController def after_inactive_sign_up_path_for(item) "/post_sign_up?email=#{item.email}" end end app/controllers/confirmation_controller.rb: class ConfirmationController < Devise::ConfirmationsController def after_confirmation_path_for(name, resource) case resource.class when Individual then edit_individual_path resource when Group then edit_group_path resource else super name, resource end end end The above code works for individuals, only. Can't figure out why though.
0
[ 2, 6126, 8587, 12898, 1252, 26, 81, 29276, 2761, 800, 3726, 3726, 31, 57, 81, 29276, 2761, 15, 1359, 17, 214, 9, 31, 22, 79, 749, 20, 1891, 835, 3257, 26, 8587, 18, 118, 1126, 20590, 7504, 13, 5, 18, 2451, 3878, 20, 21, 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...
VS 2010 .dll.refresh is in TFS but not .dll === I have a Web site project open from TFS. When I expand the files related to one dll, it shows that the .dll.refresh is under source control, but the plain .dll is not. If I right-click on the .dll there is no option to "Add to Source Control". How can I add it? Thanks
0
[ 2, 4611, 498, 13, 9, 43, 211, 9, 99, 22373, 25, 19, 13, 11720, 18, 47, 52, 13, 9, 43, 211, 800, 3726, 3726, 31, 57, 21, 2741, 689, 669, 368, 37, 13, 11720, 18, 9, 76, 31, 6073, 14, 6488, 1597, 20, 53, 13, 43, 211, 15, 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...
Where do I find the python standard library code? === I wanted to try and look up the source of some of the modules in the Python standard library, but wasn't able to find them. I tried looking in the modules directory after downloading the python tarball, but it has mainly .c files. I also tried looking at the directory where the python that already comes with the OS (mac osx) has it's modules, and there it seems to have mainly .pyc and .pyo files. Would really appreciate it if someone can help me out. (I tried what was suggested in the question http://stackoverflow.com/questions/269795/how-do-i-find-the-location-of-python-module-sources with no luck)
0
[ 2, 113, 107, 31, 477, 14, 20059, 1236, 1248, 1797, 60, 800, 3726, 3726, 31, 417, 20, 1131, 17, 361, 71, 14, 1267, 16, 109, 16, 14, 17113, 19, 14, 20059, 1236, 1248, 15, 47, 526, 22, 38, 777, 20, 477, 105, 9, 31, 794, 699, 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 fix resolution problems with dual monitor cutting of images on res-change? === It's not really a programming question, more a problem, but this is the issue: So, I have a Radeon Mobility HD 5470 512 MB GDDR3. It is a laptop with a main display, a VGA and a HDMI output. When I connect a display to the VGA or HDMI it works nice, on the secondary screen i put something on full-screen but then when I launch a game which is not the same resolution as the primary display, on the secondary display, it seems like most windows move to the second display, which is very annoying. Sepecially when parents watch a movie on the second display and I want to play a game on the primary.. then it, like, very weird image cutting. Is there any solution to this problem? (except setting the games resilution to the displays resolution, my laptop isn' t the stronest one). Here are two images visualizing the problem: (Red vertical line is where the displays split) BAD: http://img210.imageshack.us/img210/1381/69932176.png GOOD: http://img171.imageshack.us/img171/2383/85450517.png
0
[ 2, 184, 20, 6098, 4302, 1716, 29, 5747, 7626, 5378, 16, 3502, 27, 10719, 8, 16229, 60, 800, 3726, 3726, 32, 22, 18, 52, 510, 21, 3143, 1301, 15, 91, 21, 1448, 15, 47, 48, 25, 14, 1513, 45, 86, 15, 31, 57, 21, 13, 13065, 218,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Java - Print document with dialog? === How do I open up a print dialog box where you select your printer, page details, etc to print A SPECIFIED DOCUMENT OR JTEXTPANE? Please help! note: getDesktop().print gives me an error about printer setup, how to open the native print dialog?
0
[ 2, 8247, 13, 8, 4793, 4492, 29, 28223, 60, 800, 3726, 3726, 184, 107, 31, 368, 71, 21, 4793, 28223, 1649, 113, 42, 5407, 154, 12925, 15, 2478, 3289, 15, 2722, 20, 4793, 21, 9931, 4492, 54, 487, 11969, 16660, 60, 2247, 448, 187, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 an example of a game with a good design for an IAP "store"? === I'm working on an iOS board game and want to include in-app purchase for two consumable items. Could somebody point me to a game or two that you think has a well designed IAP store for consumables? I'd like to see an example of something that works well so I can get an idea of how to do it. And the same question for how to deliver the consumables after they are purchased. I'd like to do something slicker than just suddenly increase the available quantity of the item.
4
[ 2, 98, 25, 40, 823, 16, 21, 250, 29, 21, 254, 704, 26, 40, 31, 2552, 13, 7, 16828, 7, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 40, 13, 7760, 686, 250, 17, 259, 20, 468, 19, 8, 7753, 3301, 26, 81, 11608, 723, 579, 3755, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Writing data back to Microsoft Project with (TimeScaleData function),getting exception Hresult = -2146827187. === Writing data back to Microsoft Project with (TimeScaleData function),getting exception Hresult = -2146827187. Can some one help in this,its urgent.Thank you
0
[ 2, 1174, 1054, 97, 20, 7099, 669, 29, 13, 5, 891, 5093, 18768, 1990, 6, 15, 27380, 5391, 746, 29955, 800, 13, 8, 19029, 4279, 2567, 21027, 9, 800, 3726, 3726, 1174, 1054, 97, 20, 7099, 669, 29, 13, 5, 891, 5093, 18768, 1990, 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...
What is the name of MFC component? === What is the name of MFC component (like CButton, CDialog) where we have list(not tree) of folders or labels. So, after click on one of those labels we see drop list under this label with different type components(labels,pictures). If we click another label(in previous level) this list will down and new list will be dropped. Everything happened in ONE window. Do you know such component in MFC. Basicly, what is his name? (I have seen it in photoshop CS4-CS5)
0
[ 2, 98, 25, 14, 204, 16, 307, 7061, 5912, 60, 800, 3726, 3726, 98, 25, 14, 204, 16, 307, 7061, 5912, 13, 5, 1403, 272, 811, 444, 15, 1745, 549, 5567, 6, 113, 95, 57, 968, 5, 1270, 1541, 6, 16, 19294, 18, 54, 13173, 9, 86, 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 to scrape image in Bing's image search? === Are there any API or tools that I can use to scrape images in Bing based on an inputted "keyword"? Since Bing shows its pictures in a dynamic way, I have no idea.
0
[ 2, 184, 20, 23855, 1961, 19, 18080, 22, 18, 1961, 2122, 60, 800, 3726, 3726, 50, 80, 186, 21, 2159, 54, 4672, 30, 31, 92, 275, 20, 23855, 3502, 19, 18080, 432, 27, 40, 6367, 1427, 13, 7, 4237, 9587, 7, 60, 179, 18080, 1285, 82...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Transmitting additional data with h.264 frames using RTSP over TCP === In one of my applications i am trying to implement sending and receiving of H.264 frames encapsulated in an object which has other data types in it as well. The requirement is to transmit these frames using RTSP over tcp. On the receiving side these frames need to be extracted along with the additional data and displyed. I have spent considerable time on trying to make this as confirming to the standards as possible but i dont seem to find any specific payload format which talks about passing custom objects in an RTSP session. Is using NAL Units my best bet or is there a better solution to this.
0
[ 2, 25884, 1351, 1054, 29, 746, 9, 20470, 12809, 568, 13, 5256, 3401, 84, 13, 38, 7439, 800, 3726, 3726, 19, 53, 16, 51, 3767, 31, 589, 749, 20, 8713, 4907, 17, 3396, 16, 746, 9, 20470, 12809, 1957, 4666, 18, 13045, 19, 40, 3095,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Xcode png image reference === > I have made a project in xcode 3.2 after some time i upgraded my xcode in 4.2 every thing works fine. now i want to set up my project on another mac laptop having same environment. but during build it give me an error ie >>CpResource ../../Desktop/th_text-field.png error: /Users/gchauhan/Documents/project backup/30july/lisnxios_lisnxios/Lisnx/../../Desktop/th_text-field.png: No such file or directory >>>while this th_text-field.png is not present in my xcode project. i don't how it is happening please some one way out of me from this problem. i will highly thankful
0
[ 2, 993, 9375, 351, 2723, 1961, 2801, 800, 3726, 3726, 13, 1, 31, 57, 117, 21, 669, 19, 993, 9375, 203, 9, 135, 75, 109, 85, 31, 9958, 51, 993, 9375, 19, 268, 9, 135, 352, 584, 693, 1123, 9, 130, 31, 259, 20, 309, 71, 51, 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...
App request notification sending failed on facebook === I am new in Iphone and stuck here in facebook application , In fact I am getting list of all of my facebook friends with their id's in my TableView. When I tab on table view I want to send notification to my friend, dialoge is showing , when i press the send button, facebook dialoge disappear, and my friend don't receive the notification. Can you help me please. Here is my code, - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSString* kAppId = @"317060778330475"; Facebook *faceBook = [[Facebook alloc] initWithAppId:kAppId andDelegate:self]; NSDictionary *dic = [facebookInfoArray objectAtIndex:indexPath.row]; NSString *friendId = [dic valueForKey:@"id"]; NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"Hi check my application, please!", @"message", friendId, @"to", nil]; [faceBook dialog:@"apprequests" andParams:params andDelegate:self]; } #pragma mark - Facebook Delegates - (void)dialogDidComplete:(FBDialog *)dialog { NSLog(@"App Request Sent!"); } - (void)dialogCompleteWithUrl:(NSURL *)url { NSLog(@"Urls is :%@",url); }
0
[ 2, 4865, 3772, 52, 4634, 4907, 1702, 27, 9090, 800, 3726, 3726, 31, 589, 78, 19, 21024, 17, 4549, 235, 19, 9090, 3010, 13, 15, 19, 837, 31, 589, 1017, 968, 16, 65, 16, 51, 9090, 954, 29, 66, 4924, 22, 18, 19, 51, 859, 4725, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Putimagedata alpha value in the Android browser will be questions related issues === Test Equipment: IM-A810K Android 2.3.5 Browser issues: Android embedded browser Symptoms: getImageData () after importing the data into putImageData () If you enter an invalid value for RGBA issue of imagedata A value is supposed to be a problem. Comparing to: Chrome Mobile: No Problem Firefox Mobile: No problem. A solution to this problem or if there was a way to manipulate the other pixels Please answer ~
0
[ 2, 442, 22039, 18768, 5705, 1923, 19, 14, 13005, 16495, 129, 44, 2346, 1597, 1549, 800, 3726, 3726, 1289, 2181, 45, 797, 8, 58, 20219, 197, 13005, 172, 9, 240, 9, 264, 16495, 1549, 45, 13005, 12138, 16495, 7710, 45, 164, 22039, 1876...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 form in different tab android === i have 2 tabs; Report and Profile. I want to have a different form (Textview, spinner, etc) in each of the tabs. For now im trying with a button and it should be different button in different tab. But what i get is i have the same button in both tab. It should show button name ButtonReport in Report Tab and ButtonProfile in Profile Tab. Below is the picture of it. ![enter image description here][1] [1]: http://i.stack.imgur.com/X6HTA.png I am putting the button code in main.xml. <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content"> </TabWidget> <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent"> <!-- Start Interface --> <TableLayout android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/tableLayout1" android:alwaysDrawnWithCache="false"> <TableRow android:layout_height="fill_parent" android:id="@+id/tableRow3"> <TableLayout android:id="@+id/tableLayout2" android:layout_width="wrap_content" android:layout_height="wrap_content"> <Button android:text="Button Report" android:id="@+id/button1" android:layout_width="fill_parent" android:layout_height="wrap_content"></Button> </TableLayout> </TableRow> </TableLayout> <!-- End Interface --> </FrameLayout> </LinearLayout> </TabHost> This is my ReportActivity class and ProfileActivity(same code only different name) package com.tab; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class ReportActivity extends Activity{ public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); TextView text = new TextView(this); text.setText("Artist"); setContentView(text); } } This is my MainActivity class package com.tab; import android.app.TabActivity; import android.content.Intent; import android.content.res.Resources; import android.os.Bundle; import android.widget.TabHost; public class MainActivity extends TabActivity { private TabHost aTab; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Resources res = getResources(); aTab = getTabHost(); TabHost.TabSpec spec; Intent intent; //Report Tab intent = new Intent(this, ReportActivity.class); spec = aTab.newTabSpec("Report") .setIndicator("Report", res.getDrawable(R.drawable.tab_icon)) .setContent(intent); aTab.addTab(spec); //Profile Tab intent = new Intent(this, ProfileActivity.class); spec = aTab.newTabSpec("Profile") .setIndicator("Profile", res.getDrawable(R.drawable.tab_icon)) .setContent(intent); aTab.addTab(spec); aTab.setCurrentTab(1); } } is there a way to have different form in different tab?
0
[ 2, 421, 505, 19, 421, 6523, 13005, 800, 3726, 3726, 31, 57, 172, 6523, 18, 73, 1330, 17, 5296, 9, 31, 259, 20, 57, 21, 421, 505, 13, 5, 11969, 4725, 15, 3310, 1031, 15, 2722, 6, 19, 206, 16, 14, 6523, 18, 9, 26, 130, 797, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
start and stop timer of one view from another view === in my app there are two views. view1 has a function testing -(void) testing { NSLog(@"Testing : %d", (++x)); } and a timer timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(testing) userInfo:nil repeats:YES]; what i want, is to stop and run this timer from view2. How to do that ?
0
[ 2, 799, 17, 747, 85, 139, 16, 53, 1418, 37, 226, 1418, 800, 3726, 3726, 19, 51, 4865, 80, 50, 81, 4146, 9, 1418, 165, 63, 21, 1990, 4431, 13, 8, 5, 2625, 1340, 6, 4431, 13, 1, 13, 2172, 5567, 5, 1, 7, 10543, 68, 13, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
MySQL Iterate through elements of a split string and do things with them === I have a cell in one of my MySQL community edition 5.1 tables. The contents are always certain number(s). If there is more than one number, then it is delimited by an `;` semi-colon. For example: | Column | 1ar8fj 99dkek;adjidk3;dajdid divdae;dadjid; NULL dkadjcud;dasd;adfkvdo dkjfakj ... I need make some code that takes each column value, splits it up by the `;` and then uses each value after it was split up to do another query, and output the results. I know I can do this with PHP but I don't need to make this into a webpage, so I was wondering if this is possible write in MySQL syntax? The PHP code would look something like this: <?php $result = $mysqli->query('select column from table;'); while ($row = $result->fetch_array($result)){ $id_numbers = explode($row[0],';'); foreach($id_numbers as $key => $val){ // do another query $result2 = $mysqli->query('select * from table2 where col_val = "'.$val.'"'); while ($row2 = $result2->fetch_array($result2){ echo $row2[0].'<br>'; } } } ?> Is this possible directly in MySQL syntax? Thanks!!!
0
[ 2, 51, 18, 22402, 32, 106, 1373, 120, 2065, 16, 21, 2132, 3724, 17, 107, 564, 29, 105, 800, 3726, 3726, 31, 57, 21, 1667, 19, 53, 16, 51, 51, 18, 22402, 514, 1322, 331, 9, 165, 7484, 9, 14, 8478, 50, 550, 1200, 234, 5, 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...
How to use XmlReader to read data in a List Part 2 === Okay, it appeared that I had an answer for this question, but I was wrong. Probably because I asked the wrong thing. Here is what I want to do: I want to take an xml document and pull it into memory. Then, at will, I want to run queries on that document and get information out of it. I want to do this whenever I need data WITHOUT loading the document into memory again. After all, the point is to stop hitting up the disk when I need the data. The methods I've been using only work ONCE, and I need to do this multiple times. Here is the code that I tried: public static class GrabFile { public static XDocument configData = XDocument.Load(@"myxml.xml"); public static XmlReader templateReader = configData.CreateReader(); } I thought this would copy the document into memory, and I'd be able to use the templateReader to query the configData any time I wanted to by using this: while (GrabFile.templateReader.Reader()) { //get the data I wanted } I thought I could put that while statement, and create others to do specific queries in a method, and call them whenever I needed the info. But it only works ONCE. As I said, I'm not overly familiar with this, so there's probably a way to do it that's easy. Also, people in the other thread wanted an example of what was in the xml document. That's irrelevant. The point is I want to put the document into memory, then query it as many times as needed with out accessing it from the disk and creating another reader. And yes, I want to use a reader for this. Perhaps I need to move the pointer in the file in memory back to the top so it'll read it again? Thanks for any help.
0
[ 2, 184, 20, 275, 23504, 10647, 106, 20, 1302, 1054, 19, 21, 968, 141, 172, 800, 3726, 3726, 1705, 15, 32, 682, 30, 31, 41, 40, 1623, 26, 48, 1301, 15, 47, 31, 23, 1389, 9, 910, 185, 31, 411, 14, 1389, 584, 9, 235, 25, 98, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Having trouble in removing extra or special chars from a string using javascript === I have a function for removing extra or special chars: function escapeHtml(unsafe) { return unsafe .replace(/\r?\n|\r/g, "") .replace(/(\r\n|\n|\r)/gm," ") .replace(/\s+/g," ") .replace(/&/g, "&amp;") .replace(/</g, "&lt;") .replace(/>/g, "&gt;") .replace(/"/g, "&quot;") .replace(/'/g, "&#039;") .replace(/!/g, ""); } While I am calling it and this part of my code looks like: $(".product_json", data).each(function(){ var thisH = $(this).html(); var myNewString = eval( '('+ thisH +')'); var toBeEscaped = myNewString.item_description; var escapedString = escapeHtml(toBeEscaped); myNewString.item_description = escapedString; myNewString = JSON.stringify(myNewString); console.log(myNewString); //product_json.push( jQuery.parseJSON( myNewString ) ); }); But some how it says in console: [SyntaxError: unterminated string literal][1] [1]: http://bit.ly/Mpy8gy
3
[ 2, 452, 2572, 19, 9096, 2230, 54, 621, 4892, 18, 37, 21, 3724, 568, 8247, 8741, 800, 3726, 3726, 31, 57, 21, 1990, 26, 9096, 2230, 54, 621, 4892, 18, 45, 1990, 2220, 15895, 5, 1020, 18166, 6, 13, 1, 788, 27094, 13, 9, 99, 5119...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Another typedef error with C++ === #ifndef C_H #define C_H #include <memory> class C { public: C(){}; ~C() {}; }; typedef auto_ptr<C> CPtr; #endif The above codes seem fine for me, but when I compile them with VC10, I got the following errors: "error C2143: syntax error : missing ';' before '<'". Any ideas about it will be appreciated.
0
[ 2, 226, 1001, 13862, 7019, 29, 272, 20512, 800, 3726, 3726, 6926, 821, 103, 13862, 272, 1, 252, 6926, 546, 7509, 272, 1, 252, 6926, 22640, 13, 1, 790, 5171, 93, 1, 718, 272, 13, 1, 317, 45, 272, 5, 6, 1, 73, 13, 1, 150, 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 to save object between requests in Django? === I'm developing an internal server-monitoring/management tool in Django, which I'm not very familiar with. The application often needs to connect through SSH to other servers, issue commands and read the response. Currently I do this with paramiko and it works fine. However, right now I'm reconnecting to each server for every request. This feels like bad design and I'd rather have all the SSH connections (very few) persistent throughout the application's life cycle. I know this is possible in for example NodeJS. I.e. what I want to do is to be able to access some kind of "global" variable "ssh_connection1" and issue commands through it instead of creating a new local variable every request. Is this possible in Django? Do you have any better solutions for this? Note: I saw similar questions but they mostly covered saving _data_ between requests not _connections_.
0
[ 2, 184, 20, 2079, 3095, 128, 12279, 19, 3857, 14541, 60, 800, 3726, 3726, 31, 22, 79, 3561, 40, 3117, 8128, 8, 2111, 7478, 2090, 118, 23502, 5607, 19, 3857, 14541, 15, 56, 31, 22, 79, 52, 253, 3694, 29, 9, 14, 3010, 478, 2274, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Auto accept EULA === I have a rpm which has a EULA file. When I install this rpm I need to manually "accpet" the agreement by typing "yes" from console. I want to automate this process. I write a bash script for this. yes | rpm -ivh EULA.rpm yes yes | rpm -ivh EULA.rpm echo "yes" | rpm -ivh EULA.rpm But all these scripts fail to solve the purpose and I get the prompt to read the EULA agrrement and then manually need to enter yes to acceot it. How can I automate this? As the EULA file is long I need to press q (or keep reading the agreement by presssing the returm key) to get the promt where I can type "yes" or "no". Am I suppose to give a 'q' as well in the scipt. I have even tried that and it didn't work. Thanks in advance.
2
[ 2, 3108, 3440, 2898, 531, 800, 3726, 3726, 31, 57, 21, 12936, 56, 63, 21, 2898, 531, 3893, 9, 76, 31, 16146, 48, 12936, 31, 376, 20, 23671, 13, 7, 58, 3384, 6240, 7, 14, 2022, 34, 25266, 13, 7, 1714, 7, 37, 8650, 9, 31, 259,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
animateWithDuration not working === I'm trying to animate a view with some buttons and controllers for my main view into the screen from the right side of the screen. The problem is it doesn't animate, it just goes directly to the finished state. This is my code: UIStoryboard* storyBoard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; options = [storyBoard instantiateViewControllerWithIdentifier:@"OptionsView"]; options.delegate = self; [self.view addSubview:options.view]; options.view.center = CGPointMake(floor(total_width+options.view.frame.size.width/2)+10, floor(total_height/2)); [UIView animateWithDuration:0.5 delay:0.0 options: UIViewAnimationOptionCurveEaseOut animations:^{ options.view.center = CGPointMake(floor(total_width-options.view.frame.size.width/2)+10, floor(total_height/2)); } completion:^(BOOL finished){ NSLog(@"Done!"); }];
0
[ 2, 14487, 591, 1410, 10852, 857, 52, 638, 800, 3726, 3726, 31, 22, 79, 749, 20, 14487, 591, 21, 1418, 29, 109, 12861, 17, 9919, 18, 26, 51, 407, 1418, 77, 14, 2324, 37, 14, 193, 270, 16, 14, 2324, 9, 14, 1448, 25, 32, 1437, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 is Android sending weird symbols at the end of the socket? (�) === Why is Android sending this symbol?(�) What I'm doing is, get a few variables, put them altogether, and then send using Multicast. The symbols occur only in the end of the String, and repeat a lot. byte[] buffer; String temp1 = "temp1=" + "37"; String weight1 = "weight1=" + "68"; String bpm = "bpm=" + "128"; String angBack = "angback=" + "90"; String angLeg = "angleg=" + "90"; String angBed = "angbed=" + "91"; String msg = "status:teste," + temp1 + "," + weight1 + "," + bpm + "," + angBack + "," + angLeg + "," + angBed; buffer = msg.getBytes(); InetAddress group = InetAddress.getByName("230.0.0.1"); DatagramPacket packet = new DatagramPacket(buffer, buffer.length, group, 5556); socket.send(packet); Then on the other side, I get the String, and those symbols appear at the end of the String. byte[] buffer = new byte[256]; DatagramPacket packet = new DatagramPacket(buffer, buffer.length); multicastSocket.receive(packet); String msg = new String(packet.getData()); Why is this happening?
0
[ 2, 483, 25, 13005, 4907, 5455, 9794, 35, 14, 241, 16, 14, 18482, 60, 13, 5, 13, 6, 800, 3726, 3726, 483, 25, 13005, 4907, 48, 4678, 60, 5, 13, 6, 98, 31, 22, 79, 845, 25, 15, 164, 21, 310, 12157, 15, 442, 105, 11206, 15, 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...
set post data python apache === I am trying to, for a login script, set a session ID using POST in python on apache. However, there doesn't appear to be any method to doing it as far as I can see other than just doing a redirect. Also, now that I have a session ID, I can use any method to set a session ID (POST seemed the most obvious). I would also like for it to work between tabs. Cookies seems like it might be a better option, though it would probably take more effort to implement. Any suggestions?
0
[ 2, 309, 678, 1054, 20059, 17140, 800, 3726, 3726, 31, 589, 749, 20, 15, 26, 21, 6738, 108, 3884, 15, 309, 21, 3723, 4924, 568, 678, 19, 20059, 27, 17140, 9, 207, 15, 80, 1437, 22, 38, 1893, 20, 44, 186, 2109, 20, 845, 32, 28, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 renamed Page_load to PageName_load in asp.net === Instead of page_load i want to write PageName_Load, how can i do Recently this question was asked my the one of the company in interview REgards Praveen
0
[ 2, 184, 20, 2433, 2478, 1, 8294, 20, 2478, 7259, 1, 8294, 19, 28, 306, 9, 2328, 800, 3726, 3726, 700, 16, 2478, 1, 8294, 31, 259, 20, 2757, 2478, 7259, 1, 8294, 15, 184, 92, 31, 107, 1989, 48, 1301, 23, 411, 51, 14, 53, 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, 0, 0, 0, 0, 0, 0, 0, 0...
How to access and modify the IE printer settings from VB.NET per application === I am using a [`WebBrowser`][1] control in my application. I am population some content into it and calling its `Print` method. This method uses the default margin settings from IE and printing the document. I would like to programmatically change the margin values before printing it? (The default values in IE should not be modified) I have checked all the properties in the WebBrowser class and could not find any methods that will allow me to change this. [1]: http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx
0
[ 2, 184, 20, 1381, 17, 17579, 14, 13, 660, 12925, 12410, 37, 13, 20468, 9, 2328, 416, 3010, 800, 3726, 3726, 31, 589, 568, 21, 636, 1, 14113, 25699, 4104, 1, 500, 2558, 165, 500, 569, 19, 51, 3010, 9, 31, 589, 350, 109, 2331, 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, 1, 1, 1, 1, 1, 1...
WheelView does not scroll inside a ScrollView === I'm using [android-wheel][1] Everything work well. But when i add a WheelView in a ScrollView. I cant move the WheelView. You can see this issue [here][2] . But in Android 4.0 this is still a bug How can fix this? Thanks you [1]: http://code.google.com/p/android-wheel/ [2]: http://code.google.com/p/android-wheel/issues/detail?id=5&can=1
0
[ 2, 3556, 4725, 630, 52, 12159, 572, 21, 12159, 4725, 800, 3726, 3726, 31, 22, 79, 568, 636, 290, 18524, 8, 8229, 500, 2558, 165, 500, 796, 170, 134, 9, 47, 76, 31, 3547, 21, 3556, 4725, 19, 21, 12159, 4725, 9, 31, 2973, 780, 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...
i am unable to fetch data from servlet in android app === the android code is here json is unable to fetch data from servlet package com.example.prac; public class MainActivity extends Activity implements OnClickListener{ /** Called when the activity is first created. */ TextView resultView; HttpClient client; String Dat; Button btn; EditText name,roll_no; String result=""; StringBuilder sb=null; JSONArray jArray; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); resultView = (TextView) findViewById(R.id.tv1); btn=(Button)findViewById(R.id.btn); submit(); btn.setOnClickListener(this); } public void onClick(View v){ parse(); //method to parse } private String submit() { ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); nameValuePairs.add(new BasicNameValuePair("name", "sss")); //http post try{ HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://10.0.2.2:8081/onlineres /jsonserv"); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = httpclient.execute(httppost); HttpEntity entity = response.getEntity(); is = entity.getContent(); }catch(Exception e){ Log.e("log_tag", "Error in http connection"+e.toString()); } try{ BufferedReader reader = new BufferedReader(new InputStreamReader(is,"iso-8859-1"),8); sb = new StringBuilder(); sb.append(reader.readLine() + "\n"); String line="0"; while ((line = reader.readLine()) != null) { sb.append(line + "\n"); } is.close(); result=sb.toString(); }catch(Exception e){ Log.e("log_tag", "Error converting result "+e.toString()); } return result; } public void parse(){ String roll,name; try{ jArray = new JSONArray(result); JSONObject json_data=null; for(int i=0;i<jArray.length();i++){ json_data = jArray.getJSONObject(i); name=json_data.getString("Name"); // roll =json_data.getString("Roll_no"); } } catch(JSONException e1){ Toast.makeText(getBaseContext(), "No Content Found" ,Toast.LENGTH_LONG).show(); } catch (ParseException e1) { e1.printStackTrace(); } } } here i run simple servlet in apache server to send normal name as response to the json but in json it doesnt get any data.kindly tell my mistake servlet code is public class jsonserv extends HttpServlet { /** * Processes requests for both HTTP * <code>GET</code> and * <code>POST</code> methods. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */ protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { resultbean re=new resultbean(); response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); String user=request.getParameter("name"); // String name=re.getUsername(); response.setContentType("application/json"); JSONObject json_data = (JSONObject) JSONSerializer.toJSON( user ); //System.out.println("El valor de json"+json.toString()); out.println(json_data); try { /* * TODO output your page here. You may use following sample code. */ out.println("<html>"); out.println("<head>"); out.println("<title>Servlet jsonserv</title>"); out.println("</head>"); out.println("<body>"); out.println("<h1>"+user+"</h1>"); out.println("</body>"); out.println("</html>"); } finally { out.close(); } } } please help in parsing json
0
[ 2, 31, 589, 2343, 20, 18312, 1054, 37, 13, 10321, 1336, 19, 13005, 4865, 800, 3726, 3726, 14, 13005, 1797, 25, 235, 487, 528, 25, 2343, 20, 18312, 1054, 37, 13, 10321, 1336, 6030, 13, 960, 9, 29041, 9, 7310, 150, 73, 317, 718, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
vim CTRL-] keys not working === Hi i'm new to vim and stuck. In `:help tag` thay say that one can go to tag definition by `CTRL-]` keystrokes. But i can't get this to work. I thought i messed some mappings by plugins so i cleaned `.vimrc`. But still. I get cursor to a tag word (in help for example) srike 'Ctrl' and ']' simultaneously and nothing happens. Does anybody knows how to fix it? Or maybe i'm reading help wrong?
0
[ 2, 1790, 79, 13, 4812, 6362, 8, 500, 5534, 52, 638, 800, 3726, 3726, 4148, 31, 22, 79, 78, 20, 1790, 79, 17, 4549, 9, 19, 13, 1, 45, 14593, 3383, 1, 10565, 93, 395, 30, 53, 92, 162, 20, 3383, 5465, 34, 13, 1, 4812, 6362, 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...
How can I push an RSS feed to HTML5 notifications? === I want to push out RSS feed updates to HTML5 desktop notifications which the user would receive if they had my site open in Chrome. I gather I need to do the following (somebody much smarter than me explained this in overview) - create a server-side component which will poll the feed for updates; and then perhaps store them in a database (?). Then a client-side component would check for updates and display them using the HTML5 notifications API. Is anyone confirm that, and if possible help me out with more detail so that I can track down the various bits I need to make this work? Much appreciated.
0
[ 2, 184, 92, 31, 3250, 40, 13, 1224, 18, 4063, 20, 13, 15895, 264, 52, 4634, 18, 60, 800, 3726, 3726, 31, 259, 20, 3250, 70, 13, 1224, 18, 4063, 16779, 20, 13, 15895, 264, 17404, 52, 4634, 18, 56, 14, 4155, 83, 2588, 100, 59, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Sencha Touch 1.1 don't load any data with TouchCalendarSimpleEvents === When I use store with data already loaded like the examples it works, but when I try to load the data from my API, displays no error, but the events are not loaded in the calendar link from component: http://www.swarmonline.com/2011/11/ext-ux-touchcalendar/ My controller... Ext.regController('MyControllerController', { index: function(){ var myAction = this; this.calendarView = this.render({ xtype : 'calendarview', listeners : { beforerender: function(){ myAction.loadEvent(); } } }); var calendar = this.calendarView.query('#calendarViewId')[0]; App.views.viewport.setActiveItem(this.calendarView, null); }, loadEvent: function(){ App.stores.Event.getProxy().extraParams.codusu = modelSession.get('authToken'); App.stores.Event.getProxy().extraParams.method = 'mobile.getShedule'; App.stores.Event.load(); /*Ext.util.JSONP.request({ url : API, callbackKey : 'callback', params : { method : 'mobile.getShedule', codusu : modelSession.get('authToken') }, callback: function(data){ console.log(data); App.stores.Event.loadData(data.items); } });*/ } }); My view... Ext.ns('App.views.Events'); App.views.Events.EventView = Ext.extend(Ext.Panel, { layout : 'fit', initComponent : function (){ this.items = this.buildItems(); this.dockedItems = this.buildDockItems(); App.views.Events.EventView.superclass.initComponent.apply(this); }, buildItems: function(){ var calendar = new Ext.ux.TouchCalendarView({ minDate : (new Date()).add(Date.DAY, -60), maxDate : (new Date()).add(Date.DAY, 120), mode : 'month', weekStart : 0, value : new Date(2012, 7, 21), eventStore : App.stores.Event, startEventField : 'start', endEventField : 'end', plugins : [new Ext.ux.TouchCalendarSimpleEvents()], itemId : 'calendarId' }); return calendar; }, buildDockItems: function(){ var dock, toolbar, list, addButton; var addButton = new Ext.Button({ iconCls : 'add', iconMask: true, text : '', itemId : 'addButtonId' }); toolbar = new Ext.Toolbar({ dock : 'top', ui : 'light', items : [ { xtype: 'segmentedbutton', allowMultiple: false, items: [{ text: 'Mês', pressed: true/*, handler: function(){ //calendar.setMode('month'); }*/ }, { text: 'Semana'/*, handler: function(){ //calendar.setMode('week'); }*/ }] }, { xtype: 'spacer' }, addButton] }); list = new Ext.List({ dock : 'bottom', height : 110, itemTpl : '{event}', itemId : 'listEventsId', store: new Ext.data.Store({ model: 'Event', data: [] }) }); dock = [toolbar, list] return dock; } }); Ext.reg('calendarview', App.views.Events.EventView); My Model Stores Ext.regModel('Event', { fields: [{ name: 'event', type: 'string' }, { name: 'location', type: 'string' }, { name: 'start', type: 'date', dateFormat: 'c' }, { name: 'end', type: 'date', dateFormat: 'c' }] }); App.stores.Event = new Ext.data.JsonStore({ model : 'Event', autoLoad : false, proxy : { type : 'scripttag', url : API, reader: { type: 'json', root: 'items' } }, extraParams: { format: 'json' } }); /*App.stores.Event = new Ext.data.Store({ model: 'Event' });*/ API return json ... { "event": "Do Wales 2012", "location": "Cardigan", "start": "2012-8-14", "end": "2012-8-18" }
0
[ 2, 8252, 1651, 1723, 137, 9, 165, 221, 22, 38, 6305, 186, 1054, 29, 1723, 3430, 219, 2542, 24629, 4943, 38, 18, 800, 3726, 3726, 76, 31, 275, 1718, 29, 1054, 614, 8572, 101, 14, 3770, 32, 693, 15, 47, 76, 31, 1131, 20, 6305, 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...
showDialog is not working === i am trying to display a dialog which is not working and i am unable to figure out how. Can someone please help me in this matter. Thanks in advance.My code is given below. The edit text's focusable is true. _loginbtn.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { System.out.println("username and password in the textboxes is: "+username.toString()+" Password: "+password.toString()); showDialog(PROGRESS_DIALOG_LOADING_ID); getusernamepassword(); } }); public void getusernamepassword() { try { username = ""; password = ""; _name = (EditText) findViewById(R.id.username); _name.setHint("User Name"); _password = (EditText) findViewById(R.id.password); _password.setHint("Password"); password = _password.getText().toString(); username = _name.getText().toString(); System.out.println("Username from the methode " + username + "password from the methode" + password); showDialog(PROGRESS_DIALOG_LOADING_ID); InputSource is = new InputSource(new StringReader(login.doLogin(username.toString(), password.toString()))); PC.CommandParser(is); sitesList = MyXMLHandler.sitesList; DataBaseName = sitesList.getLoginresult().toString(); System.out.println("DataBaseName Value in String " + DataBaseName); if(DataBaseName==""||DataBaseName.contains("Invalid username and password")||DataBaseName.contains("Server was unable to process request.")) { dismissDialog(PROGRESS_DIALOG_LOADING_ID); System.out.println("Invalid user name or password"); finishdialog.setTitle("Invalid User Name or Password").setMessage("The username or password you enterd is incorrect. Please try again.") .setPositiveButton("OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }).show(); } else { System.out.println("Valid User name and password"); dismissDialog(PROGRESS_DIALOG_LOADING_ID); Intent i = new Intent(GRIPTechSchedule1Activity.this, ToDoClass.class); i.putExtra("dbname", DataBaseName); startActivity(i); finish(); } }catch(Exception e) { dismissDialog(PROGRESS_DIALOG_LOADING_ID); finishdialog.setTitle("Error").setMessage("Unable to retrieve data. Please check your internet connection") .setPositiveButton("OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }).show(); } } @Override protected Dialog onCreateDialog(int id) { if(id==PROGRESS_DIALOG_LOADING_ID){ ProgressDialog dialog=new ProgressDialog(this); dialog.setTitle("Please wait"); dialog.setIndeterminate(true); dialog.setMessage("Verifying Account"); dialog.show(); return dialog; } return null; }
0
[ 2, 298, 4286, 5567, 25, 52, 638, 800, 3726, 3726, 31, 589, 749, 20, 3042, 21, 28223, 56, 25, 52, 638, 17, 31, 589, 2343, 20, 1465, 70, 184, 9, 92, 737, 2247, 448, 55, 19, 48, 1161, 9, 3669, 19, 3612, 9, 915, 1797, 25, 504, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 most standard way of declaring an array in JavaScript? (beginer) === I'm just learning JavaScript and it seems like there are a number of ways to declare arrays 1. var myArray = new Array() 2. var myArray = new Array(3) 3. var myArray = ["apples", "bananas", "oranges"] 4. var myArray = [3] Are there any difference or preferred ways? According to [this][1] website the two lines are very different var badArray = new Array(10); // Creates an empty Array that's sized for 10 elements. var goodArray= [10]; // Creates an Array with 10 as the first element. > > As you can see these two lines do two very different things. If you > had wanted to add more than one item then badArray would be > initialized correctly since Javascript would then be smart enough to > know that you were initializing the array instead of stating how many > elements you wanted to add. Is what the authors trying to say is Array(10) creates an array with precisely 10 elements and [10] creates an array of undefined size with the 0th element being 10? Or what does this mean? [1]: http://www.hunlock.com/blogs/Mastering_Javascript_Arrays
0
[ 2, 98, 25, 14, 127, 1236, 161, 16, 15594, 40, 7718, 19, 8247, 8741, 60, 13, 5, 17143, 14554, 6, 800, 3726, 3726, 31, 22, 79, 114, 2477, 8247, 8741, 17, 32, 2206, 101, 80, 50, 21, 234, 16, 2847, 20, 10123, 7718, 18, 137, 9, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Set Text Field from another object ios === I am stuck trying to set and retrieve the text in a UITextField object on titleViewController. I have a Journal object that has a reference to the titleViewController object, but I can not seem to set the text value for the UITextField. I have an outlet to the UITextField object in the titleViewController, and Journal can see it, but when I write to code to set the value nothing happens when it is run. There is no errors that pop up in XCode or the Log. I know it should work as the set up works for accessing custom methods in other such viewControllers being managed by the same Journal.
0
[ 2, 309, 1854, 575, 37, 226, 3095, 13, 7760, 800, 3726, 3726, 31, 589, 4549, 749, 20, 309, 17, 11917, 14, 1854, 19, 21, 13, 5661, 11969, 1109, 3095, 27, 581, 4725, 12898, 1252, 9, 31, 57, 21, 1680, 3095, 30, 63, 21, 2801, 20, 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...
Group by Manager Id === I have a table like below Emp_id, Emp_user_id, Emp_Name, Emp_mgr_id Emp_mgr_id will be the Manager's emp_id. So for example I have data like below Emp_id Emp_user_id Emp_Name Emp_mgr_id 1 D021 Joe 6<br /> 2 D024 Kathy 6<br /> 3 D054 Shaun 1<br /> 4 D058 Tippu 2<br /> 5 D059 Paul 4<br /> 6 D070 David 9<br /> 7 D075 Jack 9<br /> Now I need to create a form and when David login with his id D070, I need to pull all the employees reports to David. D021 Joe<br /> -->D054 Shaun<br /><br /> D024 Kathy<br /> -->D058 Tippu<br /> -->D059 Paul<br /> I wanted to group the rows by his direct reports. Anybody have any idea how to write a query to pull the data like this? Input will be Emp_User_id and output I need all the subordinates grouped by direct report. Thanks
0
[ 2, 214, 34, 1382, 4924, 800, 3726, 3726, 31, 57, 21, 859, 101, 1021, 16453, 1, 1340, 15, 16453, 1, 16704, 1, 1340, 15, 16453, 1, 7259, 15, 16453, 1, 79, 8807, 1, 1340, 16453, 1, 79, 8807, 1, 1340, 129, 44, 14, 1382, 22, 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...
iTunes COM Interface - Getting CD Information === Is there a way via the iTunes COM Interface on Windows to ask what the current CD is in the disc drive? I would most likely wrap the COM in a C# wrapper for my current situation. I'm trying to pull the Title, Artist, Publisher, etc... from metadata after the disc is recognized.
0
[ 2, 12952, 13, 960, 6573, 13, 8, 1017, 1745, 676, 800, 3726, 3726, 25, 80, 21, 161, 1197, 14, 12952, 13, 960, 6573, 27, 1936, 20, 1349, 98, 14, 866, 1745, 25, 19, 14, 3626, 1493, 60, 31, 83, 127, 1720, 8118, 14, 13, 960, 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...
Fancybox showActivity() position === I'm using fancybox 1.3.1 and I needed to reposition where the show activity box pops up. I am able to do this via restyling on the page I'm on <style type="text/css"> #fancybox-loading { top: 25%; /* position: fixed; left: 50%; height: 40px; width: 40px; margin-top: -20px; margin-left: -20px; cursor: pointer; overflow: hidden; z-index: 1104; display: none; */ } </style> I plan to remove those other styling points once I've completed development on this page. Is there a way for me to get this to center on the form the user is submitting, or am I stuck with playing the CSS game to get it moved over to where the form is (it's on the right hand side of the page)? I don't have much time to figure this out beyond my solution of fiddling with the top style at this point. Also, could I disable the scrolling with the page functionality as well via css? By the way, this seems a little ham-fisted and inelegant to me, but it does *work*, so I can't complain too much. It looks like a lot of the questions on the site pertain more to the actual fancybox usage and not specifically to the showActivity() function.
0
[ 2, 12251, 5309, 298, 19348, 5, 6, 649, 800, 3726, 3726, 31, 22, 79, 568, 12251, 5309, 137, 9, 240, 9, 165, 17, 31, 851, 20, 302, 9339, 113, 14, 298, 2358, 1649, 1675, 18, 71, 9, 31, 589, 777, 20, 107, 48, 1197, 760, 93, 802,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Unsigned vs signed range guarantees === I've spent some time poring over the standard references, but I've not been able to find an answer to the following: is it technically guaranteed by the C/C++ standard that, given a signed integral type S and its unsigned counterpart U, the absolute value of each possible S is always less than or equal to the maximum value of U? The closest I've gotten is from section 6.2.6.2 of the C99 standard (the wording of the C++ is more arcane to me, I assume they are equivalent on this): > For signed integer types, the bits of the object representation shall be divided into three groups: value bits, padding bits, and the sign bit. (...) Each bit that is a value bit shall have the same value as the same bit in the object representation of the corresponding unsigned type (if there are M value bits in the signed type and Nin the unsigned type, then M≤N). So, in hypothetical 4-bit signed/unsigned integer types, is anything preventing the unsigned type to have 1 padding bit and 3 value bits, and the signed type having 3 value bits and 1 sign bit? In such a case the range of unsigned would be [0,7] and for signed it would be [-8,7] (assuming two's complement). In case anyone is curious, I'm relying at the moment on a technique for extracting the absolute value of a negative integer consisting of first a cast to the unsigned counterpart, and then the application of the unary minus operator (so that for instance -3 becomes 4 via cast and then 3 via unary minus). This would break on the example above for -8, which could not be represented in the unsigned type.
0
[ 2, 28839, 4611, 908, 978, 9120, 18, 800, 3726, 3726, 31, 22, 195, 1111, 109, 85, 5156, 68, 84, 14, 1236, 7231, 15, 47, 31, 22, 195, 52, 74, 777, 20, 477, 40, 1623, 20, 14, 249, 45, 25, 32, 12345, 13572, 34, 14, 272, 118, 150...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 monitor rails mailer activity === I have a mailer(triggered by a rake task) that sends deals to users based on a few different factors (gender, location, age ect). Everything is working great I just need a way to monitor and report how many emails are sent out to report to our customers. Whats the best way to monitor email activity in a rails app? Thanks
0
[ 2, 246, 161, 20, 7626, 2240, 18, 4216, 106, 2358, 800, 3726, 3726, 31, 57, 21, 4216, 106, 5, 3367, 11356, 69, 34, 21, 21009, 3005, 6, 30, 11350, 10342, 20, 3878, 432, 27, 21, 310, 421, 4776, 13, 5, 25465, 15, 1474, 15, 348, 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...
create html elements on the serverside VS get data as JSON and create tags with javascript === I want to create a AJAX search to find and list topics in a forum (just topic link and subject). The question is: Which one of the methods is better and faster? 1. GET threads list as a JSON string and convert it to an object, then loop over items and create a `<li/>` or `<tr>`, write data (link, subject) and append it to threads list. (jQuery Powered) 2. GET threads list which it wrapped in HTML tags and print it (or use `innerHTML` and `$(e).html()`) Thanks...
0
[ 2, 1600, 13, 15895, 2065, 27, 14, 8128, 1416, 4611, 164, 1054, 28, 487, 528, 17, 1600, 3383, 18, 29, 8247, 8741, 800, 3726, 3726, 31, 259, 20, 1600, 21, 20624, 2122, 20, 477, 17, 968, 7569, 19, 21, 5691, 13, 5, 2759, 8303, 3508,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 scope of lock prefix? === It is said an assembly instruction prefixed by "lock" is atomic. I want to know if "lock" can only affect one assembly instruction; Is an assembly instruction itself not atomic?
0
[ 2, 98, 25, 14, 9914, 16, 3991, 14315, 60, 800, 3726, 3726, 32, 25, 87, 40, 1475, 7304, 14315, 69, 34, 13, 7, 3966, 7, 25, 9692, 9, 31, 259, 20, 143, 100, 13, 7, 3966, 7, 92, 104, 6245, 53, 1475, 7304, 73, 25, 40, 1475, 730...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
randomly choose 100 documents under a directory === There are about 2000 documents under the directory. I want to randomly select some documents and copy them to a new directory automatically. Some relevant information about generating one document name under a certain directory. `http://stackoverflow.com/questions/701402/best-way-to-choose-a-random-file-from-a-directory`
0
[ 2, 21324, 3538, 808, 4374, 131, 21, 16755, 800, 3726, 3726, 80, 50, 88, 824, 4374, 131, 14, 16755, 9, 31, 259, 20, 21324, 5407, 109, 4374, 17, 4344, 105, 20, 21, 78, 16755, 7499, 9, 109, 7480, 676, 88, 13500, 53, 4492, 204, 131,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Reading and/or Filtering on MSMQ name using WMI === I am currently trying to read MSMQ information on a remote machine. The main difficulty I experience is getting the name of the queue. The names of the queues are pretty long, some more than 64 characters. Using WMI the names always get truncated to 64 characters, which results for me in queuenames I can't differentiate (similar prefix for first 64 characters). I tried using .NET 3.5 SP1 and WMI Multi Query Tool and no differences. Not only couldn't I read the name, providing the suffix that would make the difference to the WMI query as WHERE didn't help also. Any hints how to make this work?
0
[ 2, 1876, 17, 118, 248, 25272, 27, 4235, 79, 1251, 204, 568, 619, 1435, 800, 3726, 3726, 31, 589, 871, 749, 20, 1302, 4235, 79, 1251, 676, 27, 21, 5388, 1940, 9, 14, 407, 6967, 31, 1496, 25, 1017, 14, 204, 16, 14, 22521, 9, 14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
jad "Version mismatch: major.minor = 49.0, expected = 45.3", what's version of .class file? === I used jad to decompile the class but in AIX system, such error thrown. Version mismatch: major.minor = 49.0, expected = 45.3 I don't know what's the version of .class file, how can I avoid this?
0
[ 2, 3009, 43, 13, 7, 10898, 2462, 12280, 45, 394, 9, 2160, 248, 800, 4648, 9, 387, 15, 1727, 800, 2487, 9, 240, 7, 15, 98, 22, 18, 615, 16, 13, 9, 1898, 3893, 60, 800, 3726, 3726, 31, 147, 3009, 43, 20, 121, 11103, 3599, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Limiting the resultset size on a google spreadsheets/forms list feed === I want to use the list based query interface to google spreadsheets/forms but want to make sure that the number of rows I get back is limited to a specified maximum. Is there a way of doing this? Thanks. Tom.
0
[ 2, 17567, 14, 1736, 1198, 1072, 27, 21, 8144, 1789, 17627, 18, 118, 4190, 18, 968, 4063, 800, 3726, 3726, 31, 259, 20, 275, 14, 968, 432, 25597, 6573, 20, 8144, 1789, 17627, 18, 118, 4190, 18, 47, 259, 20, 233, 562, 30, 14, 234,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Eclipse not recognize the build() method from the Notification.Builder class to return a Notification object? === This is my code: ---------- NotificationManager mNotificationManager = (NotificationManager) c.getSystemService(ns); //Instantiate the notification CharSequence tickerText = "Hello"; long when = System.currentTimeMillis(); Notification.Builder builder = new Notification.Builder(c) .setTicker(tickerText) .setWhen(when) .setContentTitle("Test Notification") .setContentText(arg1.getStringExtra("info")) .setSmallIcon(R.drawable.ic_launcher) .setAutoCancel(true); Notification notification = builder.getNotification(); mNotificationManager.notify(88, notification); It works find, but using `Notification notification = builder.getNotification();` is deprecated. as I should be doing `Notification notification = builder.build();`. Problem is Eclipse isn't recognizing it as such, meaning it won't let me compile. The doc is clear that `build()` exists and its the preferred method, but its not working on my end. I would like to use non-deprecated code, so any help will be much appreciated.
0
[ 2, 483, 630, 11652, 52, 5844, 14, 1895, 5, 6, 2109, 37, 14, 52, 4634, 9, 20904, 718, 20, 788, 21, 52, 4634, 3095, 60, 800, 3726, 3726, 48, 25, 51, 1797, 45, 13, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 52, 4634, 22256, 307, 1270, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
switching tabs resets screen position with scrollview in android === I am having trouble with this problem in android. I have a scrollview covering a linear layout, and the linear layout parents a tabhost. whenever I switch tabs, my screen position sets itself to the middle of the page. Is there a way to NOT have the screen position re-adjusted when changing tabs? Thanks so much in advance!
0
[ 2, 13027, 6523, 18, 23422, 18, 2324, 649, 29, 12159, 4725, 19, 13005, 800, 3726, 3726, 31, 589, 452, 2572, 29, 48, 1448, 19, 13005, 9, 31, 57, 21, 12159, 4725, 3846, 21, 6745, 9106, 15, 17, 14, 6745, 9106, 1144, 21, 6523, 11694, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Web Deploy (MSDeploy) API "postSync:runCommand" === I am trying to deploy a website via the Web Deploy API (Microsoft.Web.Deployment). Using the msdelpoy.exe, I could do as many -postSync:runcommand's (or preSync) as I like, but I can't see how to do that via the API. Here is my deployment script in powershell, but you can see the .net classes being used. [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Web.Deployment") function CallMSDeploy([string]$destinationServer, [string]$destinationIISSiteName, $sourceDirectory) { $destBaseOptions = new-object Microsoft.Web.Deployment.DeploymentBaseOptions $destBaseOptions.UserName = $deployUserName $destBaseOptions.Password = $deployPassword $destBaseOptions.ComputerName = $destinationServer $syncOptions = new-object Microsoft.Web.Deployment.DeploymentSyncOptions $deploymentObject = [Microsoft.Web.Deployment.DeploymentManager]::CreateObject("contentPath", $sourceDirectory) $deploymentObject.SyncTo("contentPath",$destinationIISSiteName,$destBaseOptions,$syncOptions); } I know that I can new up a Microsoft.Web.Deployment.DeploymentObjectProvider using the "runCommand" provider and specifiy a path, but how do I add it to the preSync of the above deployment? Thanks in advance!
0
[ 2, 2741, 17617, 13, 5, 79, 18, 17309, 10892, 6, 21, 2159, 13, 7, 6962, 9507, 150, 45, 3169, 16239, 7, 800, 3726, 3726, 31, 589, 749, 20, 17617, 21, 2271, 1197, 14, 2741, 17617, 21, 2159, 13, 5, 22019, 12980, 9, 14113, 9, 17309, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
vb.net queue that runs every 10 seconds === i have a queue that runs every 10 seconds: Private Sub Form1Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load Dim t As New Timers.Timer(10000) AddHandler t.Elapsed, New ElapsedEventHandler(AddressOf Elapsed) t.Start() End Sub Private Sub Elapsed(ByVal sender As Object, ByVal e As ElapsedEventArgs) Dim timer1 As Timers.Timer = DirectCast(sender, Timers.Timer) Try ' disable temporarily timer1.Stop() _quemanager.StartProcessing() Thread.Sleep(1000) Finally ' make sure that the handler is always reenables timer1.Start() End Try End Sub Namespace Managers Public Class QueueManager Private ReadOnly _items As New Queue Public Sub StartProcessing() For Each x In From i In File.GetAllAccountFolders() From x1 In File.CheckFolderForFiles(i & "\In") Select x1 _items.Enqueue(x) Next Dim t1 As New Threading.Thread(AddressOf Process) t1.Start() End Sub Private Sub Process() Do SyncLock _items.SyncRoot If _items.Count = 0 Then 'No more items. Logger.Log("QueueManager", "Process", "No Items In Queue") Exit Do End If Logger.Log("QueueManager", "Process", "Processing File: " & _items.Peek) FileProcessingManager.ProcessFile(_items.Peek) _items.Dequeue() End SyncLock Loop End Sub End Class End Namespace the logic behind this should be that the timer elapses every 10 seconds stops the timer runs the queue then when the queue has finished it should then start the timer again am i rite in thinking this? and theres no way the timer could restart its self untill the queue has finished? Thanks
0
[ 2, 13, 20468, 9, 2328, 22521, 30, 1461, 352, 332, 2582, 800, 3726, 3726, 31, 57, 21, 22521, 30, 1461, 352, 332, 2582, 45, 932, 972, 505, 165, 8294, 5, 779, 3377, 2660, 106, 28, 3095, 15, 34, 3377, 13, 62, 28, 807, 10663, 18, 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 I strip first X characters from string in shellscript using SED? === I am writing shell script for embedded Linux in a small industrial box. I have a variable containing the text "pid: 1234" and I want to strip first X characters from the line, so only 1234 stays. I have more variables I need to "clean", so I need to cut away X first characters and ${string:5} doesn't work for some reason in my system. The only thing the box seems to have is SED. I am trying to make the following to work: result=`echo "$pid" | sed 's/^.\{4\}//g'` Any ideas?
0
[ 2, 184, 92, 31, 4998, 64, 993, 1766, 37, 3724, 19, 3593, 8741, 568, 13924, 60, 800, 3726, 3726, 31, 589, 1174, 3593, 3884, 26, 12138, 13024, 19, 21, 284, 2163, 1649, 9, 31, 57, 21, 7612, 3503, 14, 1854, 13, 7, 11031, 45, 390, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Getting WSO2 ESB endpoint meta data programatically === I am trying to programatically retrieve the meta data of the end points configured to WSO2 ESB (Eg: ServiceName, WebMethods, Input/Output Parameters with Return types etc). Can someone direct me to some way/docs which could help me fetch this data.
0
[ 2, 1017, 619, 656, 135, 13, 160, 220, 241, 3132, 7618, 1054, 625, 721, 8438, 800, 3726, 3726, 31, 589, 749, 20, 625, 721, 8438, 11917, 14, 7618, 1054, 16, 14, 241, 819, 28895, 20, 619, 656, 135, 13, 160, 220, 13, 5, 5431, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 view POST request after clicking a button in HmltUnit? === In the past I have just been manually crafting the POST request and submitting it to the server, but I would like to be able to "click" the button in HtmlUnit, and get the data from the resulting POST response. How can I get this? And before anyone says webClient.getWebresponse, that's not going to work. I want to be able to view the web response to any exact POST or GET request.
0
[ 2, 184, 20, 1418, 678, 3772, 75, 25590, 21, 5167, 19, 746, 8184, 38, 15464, 60, 800, 3726, 3726, 19, 14, 640, 31, 57, 114, 74, 23671, 6508, 68, 14, 678, 3772, 17, 28848, 32, 20, 14, 8128, 15, 47, 31, 83, 101, 20, 44, 777, 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...
Multiple Dynamic SiteEdit CPs on a Page === I have implemented SiteEdit 2009 SP3 in SDL Tridion 2009 SP1 and its working ok on detail page with one dynamic CP. On list page we have multiple dynamic CPs but it taking the first one only and ignoring all others. Here is my code <xsl:variable name="SE_CP_MarkUP"> <![CDATA[ <!-- Start SiteEdit Component Presentation: {"ID" : "cp_%ID%", "ComponentID" : "%ID%", "ComponentTemplateID" : "tcm:XX-XXXXX-32", "Version" : 0, "IsQueryBased" : true } -->]]> </xsl:variable> I am using this variable in loop <xsl:value-of select="XXXX:RegexStringReplace($SE_CP_MarkUP,'%ID%',@ID)" disable-output-escaping="yes"/> Please suggest what could be the issue? Thanks, Vikas Kumar
0
[ 2, 1886, 7782, 689, 69, 242, 9750, 18, 27, 21, 2478, 800, 3726, 3726, 31, 57, 6807, 689, 69, 242, 588, 3782, 240, 19, 13, 18, 8643, 2286, 43, 872, 588, 3782, 165, 17, 82, 638, 5854, 27, 6110, 2478, 29, 53, 7782, 9750, 9, 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...
XML received from response is out of format === Hi im currently using PHP on a linux server to receive response from a WebService hosted on a Windows server. I am using the following PHP to read the response :- while (!feof($socket)) { $result .= fgets($socket, 4096); } fclose($socket); if ($debug) echo '<pre>',$result,'</pre>'; Apparently when i received the the response it is out of format, with break lines between tags such as the following :- /9j/4AAQSkZJRgABAQEAYABgAAD/4QBaRXhpZgAATU0AKgAAAAgABQMBAAUAAAABAAAASgMDAAEAAAABAAAAAFEQAAEAAAABAQAAAFERAAQAAAABAAAAAFESAAQAAAABAAAAAAAAAAA AAYagAACxj insetead of like these :- </ResponseHdr><ResGetCustAreaSnapshot><cmc:GetCustAreaSnapshot xmlns:cmc="http://tnb.com.my/CGIS/D/cmc_customermgnt"><cmc:MAP_IMAGE_ZOOM1000>/9j/4AAQSkZJRgABAQEAYABgAAD/4QBaRXhpZgAATU0AKgAAAAgABQMBAAUAAAABAAAASgMDAAEAAAABAAAAAFEQAAEAAAABAQAAAFERAAQAAAABAAAAAFESAAQAAAABAAAAAAAAAAAAAYagAACxj//bAEMACAYGBwYFCAcHBwkJCAoMFA0MCwsMGRITDxQdGh8eHRocHCAkLicgIiwjHBwoNyksMDE0NDQfJzk9ODI8LjM0Mv/bAEMBCQkJDAsMGA0NGDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMv/AABEIAp0DigMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/APS9Q1G58WagNL0d9lhDIsk96OjFWBUqfQEAgjliOMKCW62ztIrCzhtYBiOJQo4GT7nHc9T71Fpemw6Vp8VpCq4UfOwGN7d2P1/+t2q5SSsTGNt9woooplBVC4ke7u/sMLssSgm5ljOCvTEYPZmBJJHIA7FlYOvLiVpo7K1bE0nMkgAJhjwfmweMkjaM98nBCkVZt7eK1hWGFdqLnuSSSckknkknJJPJJyaAKX9saLaf6N/aWnw+T+78rz0XZjjbjPGOmKP+Eg0X/oL6f/4Ep/jRof8Ax4S/9fl1/wCj5K0aAM7/AISDRf8AoL6f/wCBKf40f8JBov8A0F9P/wDAlP8AGtGigDO/4SDRf+gvp/8A4Ep/jR/wkGi/9BfT/wDwJT/GtGigDO/4SDRf+gvp/wD4Ep/jUGn3lrfeIL+W0uYbiMWtupaJw4B3zcZHfkVsVnQf8jLff9edv/6HNQBo0UUUAFFFFABRRRQAVlaR/wAhPXv+v5f/AEmgrVrK0j/kJ69/1/L/AOk0Fa0/hn6fqiJ7x9f0Zq0UUVkWFFFFAGdof/HhL/1+XX/o+StGs7Q/+PCX/r8uv/R8laNABRRRQBleIv8AkGQ/9f1n/wClMdatZXifjwrqrjh47SSVG7q6qWVh6EEAg9iAa1a1l/Cj6v8AJEL436L9QooorIsztN/4/wDWP+vxf/REVQX3hPw3qd5JeX/h/Sru6kxvmnso5HbAAGWIJOAAPwqfTf8Aj/1j/r8X/wBERVo0Ac//AMIJ4P8A+hU0P/wXQ/8AxNH/AAgng/8A6FTQ/wDwXQ//ABNdBRQBxmqeCfCceoaKqeGNFVZL1lcLYRAMPs8xwfl5GQD9QK0/+EE8H/8AQqaH/wCC6H/4mrer/wDIT0H/AK/m/wDSaetWtanww9P1ZEd5ev6I5/8A4QTwf/0Kmh/+C6H/AOJqxY+E/DemXkd5YeH9KtLqPOyaCyjjdcgg4YAEZBI/GtiisizO03/j/wBY/wCvxf8A0RFTNS8NaDrNwtxqmiabfTqgRZLq1SVguScAsCcZJOPc0/Tf+P8A1j/r8X/0RFWjQBz/APwgng//AKFTQ/8AwXQ//E0f8IJ4P/6FTQ//AAXQ/wDxNdBRQBxmoeCfCZ1fSLeHwxooYyyTSothEA0SxMpJ+XkB5IuPUg44JGn/AMIJ4P8A+hU0P/wXQ/8AxNW7j/kbdO/68br/ANGW9ata1Phh6fqyI7y9f0Rz/wDwgng//oVND/8ABdD/APE1YsfCfhvTLyO8sPD+lWl1HnZNBZRxuuQQcMACMgkfjWxRWRZnQf8AIy33/Xnb/wDoc1aNZ0H/ACMt9/152/8A6HNWjQAUUUUAFZXhf/kUtG/68YP/AEWtatZXhf8A5FLRv+vGD/0Wtar+FL1X5Mh/GvR/oatFFFZFmdB/yMt9/wBedv8A+hzVo1nQf8jLff8AXnb/APoc1aNABRRRQBU1S9/s3Sb2/wDL8z7NA82zdjdtUnGe3SjS7L+zdJsrDzPM+zQJDv243bVAzjtnFVfFH/Ipaz/14z/+i2rVrV6Ul5t/glb82R9v5f1+QUUUVkWFccdVlW0uLC2LRFbq4M85VvkVrhwAAPmJJ4G35mPypzuaO/q2tlbcGLi3l4iZHIkuOQPkwCVQllG8ZY5ARSzoTzls832WFFHlYRX+0YAAVh5fmKqMTvfBRduOMRwfLmUduGwzmueW35nPWrcvurcybrRli1vR2sY8RWurJcXKZB8oyPDH1X50fe8 apparently even from here i cannot display the tags without using the code block which formats it properly. would really appreciate it if someone could point me in the right direction on what to look for to fix this problem. Thank You.
0
[ 2, 23504, 420, 37, 1627, 25, 70, 16, 2595, 800, 3726, 3726, 4148, 797, 871, 568, 13, 26120, 27, 21, 13024, 8128, 20, 2588, 1627, 37, 21, 2741, 11449, 2812, 27, 21, 1936, 8128, 9, 31, 589, 568, 14, 249, 13, 26120, 20, 1302, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Datatables Collapsible/Expandable Grouping - grouping column as a normal column === I am using Datatables Collapsible/Expandable Grouping: http://jsfiddle.net/nanoquantumtech/RgKPZ/ and I'd like to have this exact style but with the difference to have as a column the "Rendering engine", like all the others. I would appreciate any advice :)
0
[ 2, 1054, 5924, 18, 9470, 2552, 18, 3426, 118, 6899, 290, 579, 19288, 13, 8, 19288, 4698, 28, 21, 1826, 4698, 800, 3726, 3726, 31, 589, 568, 1054, 5924, 18, 9470, 2552, 18, 3426, 118, 6899, 290, 579, 19288, 45, 7775, 6903, 728, 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...
Render pdf with page specific footnotes in ruby === I'm looking for a way to render a pdf document with footnotes that apply to the current page. Being able to link the footnote ref with footnote text is optional. So far I looked at Prawn and PDFKit, but I cannot seem to find any solution. This is a sample of what I'm trying to do: [footnote sample][1] [1]: http://dl.dropbox.com/u/18515331/footnote.pdf
0
[ 2, 16535, 13, 11124, 29, 2478, 1903, 29305, 18, 19, 10811, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 161, 20, 16535, 21, 13, 11124, 4492, 29, 29305, 18, 30, 5645, 20, 14, 866, 2478, 9, 142, 777, 20, 3508, 14, 29305, 13, 14057, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Consume a RESTful Web Service in Lotus Notes === Has anyone written a client in Lotus Notes to consume a RESTful web service? If so, what are some examples of code that you have used? I'm uncertain as to where to start, as there do not seem to be many examples on the web at present. Thanks!
0
[ 2, 184, 20, 16447, 21, 760, 1566, 2741, 365, 19, 15175, 2434, 800, 3726, 3726, 63, 1276, 642, 21, 6819, 19, 15175, 2434, 20, 16447, 21, 760, 1566, 2741, 365, 60, 100, 86, 15, 98, 50, 109, 3770, 16, 1797, 30, 42, 57, 147, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 change Browse button style in fileUpload control? === For fileUpload control, there is a embeded button "Browse" button for looking file on local machine. Is it possible to change the style of this button? for example apply style sheet on it?
0
[ 2, 184, 20, 753, 10175, 62, 5167, 1034, 19, 3893, 576, 8294, 569, 60, 800, 3726, 3726, 26, 3893, 576, 8294, 569, 15, 80, 25, 21, 11911, 69, 69, 5167, 13, 7, 25699, 870, 7, 5167, 26, 699, 3893, 27, 375, 1940, 9, 25, 32, 938, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
jQuery/Javascript: set border of iframe from inside iframe === I have an iframe and I want to set it's border to zero. But I want to do this from *inside* the iframe, using javascript or jQuery. How to do this? Many thanks in advance,
0
[ 2, 487, 8190, 93, 118, 1004, 1385, 8741, 45, 309, 1862, 16, 31, 8361, 37, 572, 31, 8361, 800, 3726, 3726, 31, 57, 40, 31, 8361, 17, 31, 259, 20, 309, 32, 22, 18, 1862, 20, 4606, 9, 47, 31, 259, 20, 107, 48, 37, 1637, 108, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Session sharing across multiple client server requests and among multiple servers === My question is on ASP.net session management. In the current web application we have "sticky sessions" (user is always redirected to server it started talking to). Below is my problem statement. From one of our client there are huge number of request hitting our servers. Somehow requests are sent from 1 or at most 2 IPs. We have 5 servers running to serve those request. Now the problem here is that 1-2 server might be heavily getting hits while other servers might be idle because sticky sessions will not allow request to be processed by **serverB** which was initially answered by **serverA** What we need is exactly the opposite. Any server should be able to process incoming request maintaining the continued conversation. I have put my problem in very plain words. Any pointer will be appreciated.
0
[ 2, 3723, 6126, 464, 1886, 6819, 8128, 12279, 17, 497, 1886, 17595, 800, 3726, 3726, 51, 1301, 25, 27, 28, 306, 9, 2328, 3723, 1097, 9, 19, 14, 866, 2741, 3010, 95, 57, 13, 7, 10277, 93, 5763, 7, 13, 5, 16704, 25, 550, 302, 141...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
MySQL Error 1064 when creating new table === I just started learning how to use MySQL through a tutorial. I'm using the command prompt to create a new table in my database: CREATE TABLE test_timestamp('t1' TIMESTAMP); This is giving me an error saying: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''t1' TIMESTAMP)' at line 1 I have no idea whats going wrong. I tried looking at other similar questions, but I couldnt really figure it out.
0
[ 2, 51, 18, 22402, 7019, 332, 3470, 76, 2936, 78, 859, 800, 3726, 3726, 31, 114, 373, 2477, 184, 20, 275, 51, 18, 22402, 120, 21, 29724, 9, 31, 22, 79, 568, 14, 1202, 11443, 4417, 20, 1600, 21, 78, 859, 19, 51, 6018, 45, 1600, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Excel VBA password cracker === I tried writing a vba password cracker code as: Sub testmacro() ' ' testmacro Macro ' Dim password Dim a, b, c, d, e, f, g, h, i, j, k, l SendKeys "^r" SendKeys "{PGUP}" For a = 65 To 66 For b = 65 To 66 For c = 65 To 66 For d = 65 To 66 For e = 65 To 66 For f = 65 To 66 For g = 65 To 66 For h = 65 To 66 For i = 65 To 66 For j = 0 To 255 password = Chr(a) & Chr(b) & Chr(c) & Chr(d) & Chr(e) & Chr(f) & Chr(g) & Chr(h) & Chr(i) & Chr(j) SendKeys "{Enter}", True MsgBox password SendKeys password, True SendKeys "{Enter}", True On Error GoTo 200 MsgBox password GoTo 300 200 password = "" Next Next Next Next Next Next Next Next Next Next ' 300 MsgBox "exited" End Sub Actually with the similar kind of code i used to crack Excel sheet's password using unprotect method. But here I am not pretty much sure if I am doing correctly or not. When i tried this code it prompted me for password but no password was entered to the text input box. Please suggest where I am doing wrong. Thanks
0
[ 2, 20700, 566, 969, 20884, 13, 17549, 800, 3726, 3726, 31, 794, 1174, 21, 566, 969, 20884, 13, 17549, 1797, 28, 45, 972, 1289, 540, 7638, 5, 6, 13, 22, 13, 22, 1289, 540, 7638, 9069, 13, 22, 5937, 20884, 5937, 21, 15, 334, 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...
Hibernate table per class hierarchy performance === I have used table per class hierarchy for one of my Hibernate application. My class hierarchy has User which is extended by Customer and Partner. In my User table user_id use as the primary_key. object_type column keep the discriminator value. In my actual user database table I have 1 million customers while only 100 partners. When I execute a query against partner (find a partner using primary key) I can see a performance issue. As resolution I am planning to modify my existing query into proposed format. Will be this query change help to get a gain ? or else what will be the better ways overcome performance issue. Current select * from user where user_id = 'badea06e-e071-4931-bca5-15945f13f850' Proposed select * from user where user_id = 'badea06e-e071-4931-bca5-15945f13f850'and object_type='Partner' Thanks
0
[ 2, 4148, 2102, 8820, 859, 416, 718, 14417, 956, 800, 3726, 3726, 31, 57, 147, 859, 416, 718, 14417, 26, 53, 16, 51, 4148, 2102, 8820, 3010, 9, 51, 718, 14417, 63, 4155, 56, 25, 1984, 34, 7705, 17, 2417, 9, 19, 51, 4155, 859, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
android rdp client work with server cursor? === I'm develop with a RDP Client, and I start from rdesktop, get code from http://www.rdesktop.org/. my trouble is that I can't change cursor message like as following code to android code. I have debugging rdesktop in linux, width = height=32,but masklen=datalen=128; I have no idea change the message to bitmap. { in_uint16_le(s, cache_idx); in_uint16_le(s, x); in_uint16_le(s, y); in_uint16_le(s, width); in_uint16_le(s, height); in_uint16_le(s, masklen); in_uint16_le(s, datalen); in_uint8p(s, data, datalen); in_uint8p(s, mask, masklen); if ((width != 32) || (height != 32)) { warning("process_colour_pointer_common: " "width %d height %d\n", width, height); } /* sometimes x or y is out of bounds */ x = MAX(x, 0); x = MIN(x, width - 1); y = MAX(y, 0); y = MIN(y, height - 1); cursor = ui_create_cursor(x, y, width, height, mask, data, bpp); } and I have use code as follows, but it's not work, because xormask is 128 lengths, but pxormask+=3 is out of memory. somebody can help me? public Cursor createCursor(int x, int y, int w, int h, byte[] andmask, byte[] xormask, int cache_idx) { int pxormask = 0; int pandmask = 0; Point p = new Point(x, y); int size = w * h; int scanline = w / 8; int offset = 0; byte[] mask = new byte[size]; int[] cursor = new int[size]; int pcursor = 0, pmask = 0; offset = size; for (int i = 0; i < h; i++) { offset -= w; pmask = offset; for (int j = 0; j < scanline; j++) { for (int bit = 0x80; bit > 0; bit >>= 1) { if ((andmask[pandmask] & bit) != 0) { mask[pmask] = 0; } else { mask[pmask] = 1; } pmask++; } pandmask++; } } offset = size; pcursor = 0; for (int i = 0; i < h; i++) { offset -= w; pcursor = offset; for (int j = 0; j < w; j++) { cursor[pcursor] = ((xormask[pxormask + 2] << 16) & 0x00ff0000) | ((xormask[pxormask + 1] << 8) & 0x0000ff00) | (xormask[pxormask] & 0x000000ff); pxormask += 3; pcursor++; } } offset = size; pmask = 0; pcursor = 0; pxormask = 0; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { if ((mask[pmask] == 0) && (cursor[pcursor] != 0)) { cursor[pcursor] = ~(cursor[pcursor]); cursor[pcursor] |= 0xff000000; } else if ((mask[pmask] == 1) || (cursor[pcursor] != 0)) { cursor[pcursor] |= 0xff000000; } pcursor++; pmask++; } } Image wincursor = this.createImage(new MemoryImageSource(w, h, cursor, 0, w)); return createCustomCursor(wincursor, p, "", cache_idx); }
0
[ 2, 13005, 13, 897, 306, 6819, 170, 29, 8128, 29588, 60, 800, 3726, 3726, 31, 22, 79, 2803, 29, 21, 13, 897, 306, 6819, 15, 17, 31, 799, 37, 13, 897, 160, 197, 3880, 15, 164, 1797, 37, 7775, 6903, 6483, 9, 897, 160, 197, 3880, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 correct way to paginate using Link response header (specifically with JQuery and Jersey) === Just want to run by my method of pagination with Jersey on the server side, and JQuery on the client. On server (assuming the user has just requested /rest/users?page=1): // Hardcoded the page number here, but it would be page-1, page+1 String prevLink = uriInfo.getRequestUri() + "?page=0"; String nextLink = uriInfo.getRequestUri() + "?page=2"; String linkHeader = String.format(LINK_HEADER_TMPL, prevLink, nextLink); return List<User> currentPageResults; This gives me the following header in the response: Link: <http://localhost:8880/rest/users?page=0>; rel="prev", <http://localhost:8880/rest/users?page=2>; rel="next" On client: var xhr = $.getJSON("rest/users", function(allData) { var links = (xhr.getResponseHeader("link")).split(','); var relLinks = []; $.each(links, function(index, value) { var parts = value.split(';'); var url = parts[0].replace(/^.*<(.*)>.*$/m, '$1'); var rel = parts[1].replace(/^.*"(.*)".*$/m, '$1'); relLinks[rel] = url; }); alert(relLinks['prev']); The alert gives me the right thing, and is what I'd use to generate my page links: http://localhost:8880/rest/users?page=2 So questions: 1) Is my link header formatted correctly? 2) Parsing the link header on the client side seems a little convulted 3) Is this a correct/accepted way of doing this? I looked at the Jersey response filter, but that requires adding Jersey-specific annotations on the model class, which I didn't want to do. 4) What about total available pages? Is there a standardised way of giving that in the info? If I had the page total, I could presumably drop the rel links altogether, and just generate them client side? Would that be correct? Incidentally, how did the whole format of link headers come about? The form "url; rel=name,url;rel=name" seems a bit weird to me.
0
[ 2, 98, 22, 18, 14, 4456, 161, 20, 19006, 17939, 568, 3508, 1627, 157, 106, 13, 5, 9219, 1326, 29, 487, 8190, 93, 17, 2134, 6, 800, 3726, 3726, 114, 259, 20, 485, 34, 51, 2109, 16, 19006, 108, 857, 29, 2134, 27, 14, 8128, 270, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 best way to increment invoice ID? === I'm developing a simple invoice system using PHP and MySQL. My initial thought was to use ID (auto incremented) for invoice ID. But that will not work. A temporary invoice is created when user commits an order to my Payment Service Provider. If the transaction fails, I need to delete the temporary invoice. The problem is that the invoice has been created and given and ID - and by law, I'm not allowed to delete any invoices that has been given a invoice number. So I need to add another column 'invoice_id' and add an ID after successful transaction. Multiple users may do a purchase at the same time. My question is, how can I make sure to retrieve the last created invoice ID and increment this? Should I use a `$_SESSION[]`for storing `invoice_id`? Or should I retrieve latest ID from DB? If retrieving from DB, should I lock the table for this transaction? Any guidance much appreciated.
0
[ 2, 98, 25, 14, 246, 161, 20, 13, 28461, 19, 13379, 4924, 60, 800, 3726, 3726, 31, 22, 79, 3561, 21, 1935, 19, 13379, 329, 568, 13, 26120, 17, 51, 18, 22402, 9, 51, 2104, 289, 23, 20, 275, 4924, 13, 5, 18042, 13, 28461, 69, 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 to SEO a site generated mostly by Javascript? === I've made the mistake of generating almost all of my content as it's requested (from XML files), via Javascript. Now I've learned that this is horrible for SEO. I've also since learned about [progressive enhancement][1] and am sad that I missed that boat as well. I've been researching my remaining SEO options and came across Google's [AJAX-crawlable][2] suggestions, but subsequently read a lot of well-founded opinions on why hashbangs are bad. Whatever option I use, deeplinking is also important to me. I'm currently using [JQuery-BBQ][3], and it works well for deeplinking, but offers nothing to search engines. I'm thinking about switching to an option that better supports HTML5 history state, like [History.js][4]. This will help to clean up URLs and avoid hashes, but I'm not sure it will actually make a difference for SEO, since all of my content is generated dynamically from XML files. What options do I have remaining to achieve decent SEO? White-hat only please, no cloaking. Note that my concerns are primarily about SEO, not accessibility -- this is a personal portfolio site and I'm okay with my content being invisible to some humans, but I'm not okay with it being invisible to spiders. [Here's the site][5] (in progress, but mostly there architecturally). **Edit:** yes, I know there are a number of SO questions similar to this one, but most of them have answers that would require significant restructuring. I'm not looking for an answer that I would use if I was starting from scratch, I'm looking for something to patch over my previous ignorance as gracefully as possible... [1]: http://en.wikipedia.org/wiki/Progressive_enhancement [2]: https://developers.google.com/webmasters/ajax-crawling/docs/getting-started [3]: http://benalman.com/projects/jquery-bbq-plugin/ [4]: https://github.com/balupton/history.js [5]: http://transmote.com/lab/v3/
0
[ 2, 184, 20, 13, 18, 3894, 21, 689, 6756, 1555, 34, 8247, 8741, 60, 800, 3726, 3726, 31, 22, 195, 117, 14, 5643, 16, 13500, 557, 65, 16, 51, 2331, 28, 32, 22, 18, 6602, 13, 5, 2665, 23504, 6488, 6, 15, 1197, 8247, 8741, 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...
Using xpath to lookup value === I have this structure, ![XML structure][1] [1]: http://i.stack.imgur.com/2g8fB.jpg Can I use xpath on this to first locate the id W01001 and then get the value for _ on the same level? The xml is the result of a webservice and changes between different questions, input and type of result returned. The only thing we can rely on is the W01001, W01002 and so on so the xpath may only use that. If this cant be done with xpath, what alternative solution would you suggest?
0
[ 2, 568, 993, 8353, 20, 361, 576, 1923, 800, 3726, 3726, 31, 57, 48, 1411, 15, 13, 187, 2558, 396, 8184, 1411, 500, 2558, 165, 500, 636, 165, 500, 45, 7775, 6903, 49, 9, 25325, 9, 1660, 11147, 9, 960, 15718, 263, 457, 13478, 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...
touchesEnded is not calles when table is scrolled === I have a `TTTableViewController` table , with `TTTableLinkedItemCell`cells. In the cell I have `-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;` function. This function is called only when the table is clicked, but not when it is scrolled. Is there some other function that interceps the scrolling?
0
[ 2, 13935, 10726, 25, 52, 645, 160, 76, 859, 25, 12159, 69, 800, 3726, 3726, 31, 57, 21, 13, 1, 38, 38, 5924, 4725, 12898, 1252, 1, 859, 13, 15, 29, 13, 1, 38, 38, 5924, 6258, 69, 2119, 79, 9725, 1, 9725, 18, 9, 19, 14, 166...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Notification center - notification not appearing in notification center when they received on active app === I need that all notification will apear in notification center , and in my app only the notification received from background or when app is closed is presented in notification center. Is that my problem ? How to add a notification to notification center from code ? Thanks!
0
[ 2, 52, 4634, 459, 13, 8, 52, 4634, 52, 4870, 19, 52, 4634, 459, 76, 59, 420, 27, 1348, 4865, 800, 3726, 3726, 31, 376, 30, 65, 52, 4634, 129, 21, 1664, 512, 19, 52, 4634, 459, 13, 15, 17, 19, 51, 4865, 104, 14, 52, 4634, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Winforms logging framework === I'm writing a WinForms application. I need to log information into a file. Usually I use [log4net][1] for logging, but I cannot add the reference, due to a restriction. I **cannot add external** references to my project, because I must deploy a single executable. Is there any built-in **logging framework** in .NET so I will be able to log into a file without adding an external dll? P.S: Of course I don't wanna open a stream and write manually. [1]: http://logging.apache.org/log4net/
0
[ 2, 628, 4190, 18, 13, 13919, 6596, 800, 3726, 3726, 31, 22, 79, 1174, 21, 628, 4190, 18, 3010, 9, 31, 376, 20, 6738, 676, 77, 21, 3893, 9, 951, 31, 275, 636, 5567, 300, 2328, 500, 2558, 165, 500, 26, 13, 13919, 15, 47, 31, 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 can I generate a test report with Chutzpah? === I would like to generate a junit, nunit or mstest report for my QUnit javascript unit tests and because we are mainly developing in Visual Studio (c# MVC server), we currently are using Chutzpah to run the QUnit tests. Now I would like to generate a test report to integrate in Jenkins, but i couldn't find a simple way not involving writing an own report generator. Does somebody know of an alternative to Chutzpah, which can run QUnit tests headless and integrates into Visual Studio **or** a way this can be solved with Chutzpah?
0
[ 2, 184, 92, 31, 7920, 21, 1289, 1330, 29, 4834, 2796, 20445, 60, 800, 3726, 3726, 31, 83, 101, 20, 7920, 21, 7446, 242, 15, 10210, 242, 54, 4235, 10543, 1330, 26, 51, 2593, 15464, 8247, 8741, 1237, 4894, 17, 185, 95, 50, 2011, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
panelAccordion inside panelTabbed does not expand === I have a problem using accordionPanel inside one of tabs, I can't expand accordion item to show its content. Works nicely outside tabbedPanel. Can anybody help? I suppose it might be something with nested showDetailItems, but even when every component has its own Id it still does not work. Here is the code I have problem with: <tr:panelTabbed id="pt1"> <tr:showDetailItem text="Tab 1" id="sdiT1"> <tr:panelHeader text="Header 1" /> <tr:panelAccordion discloseNone="true" id="pa1"> <tr:showDetailItem text="Accordion 1" id="sdiA1"> <tr:panelHeader text="Header 1" /> </tr:showDetailItem> <tr:showDetailItem text="Accordion 2" id="sdiA2"> <tr:panelHeader text="Header 2" /> </tr:showDetailItem> <tr:showDetailItem text="Accordion 3" id="sdiA3"> <tr:panelHeader text="Header 3" /> </tr:showDetailItem> </tr:panelAccordion> </tr:showDetailItem> <tr:showDetailItem text="Tab 2" id="sdiT2"> <tr:panelHeader text="Header 2" /> </tr:showDetailItem> <tr:showDetailItem text="Tab 3" id="sdiT3"> <tr:panelHeader text="Header 3" /> </tr:showDetailItem> <tr:showDetailItem text="Tab 4" id="sdiT4"> <tr:panelHeader text="Header 4" /> </tr:showDetailItem> <tr:showDetailItem text="Tab 5" id="sdiT5"> <tr:panelHeader text="Header 5" /> </tr:showDetailItem> </tr:panelTabbed> Thanks in advance
0
[ 2, 4113, 22301, 897, 872, 572, 4113, 15783, 4283, 630, 52, 6073, 800, 3726, 3726, 31, 57, 21, 1448, 568, 20753, 3206, 532, 572, 53, 16, 6523, 18, 15, 31, 92, 22, 38, 6073, 20753, 9101, 20, 298, 82, 2331, 9, 693, 24050, 719, 6523...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
#lua 5.2 with with integer numbers only === I need to compile Lua 5.2 with int numbers only. I still see some places where double is used? Is there a list of places to change?
0
[ 2, 6926, 2377, 58, 331, 9, 135, 29, 29, 13820, 2116, 104, 800, 3726, 3726, 31, 376, 20, 26561, 1612, 58, 331, 9, 135, 29, 19, 38, 2116, 104, 9, 31, 174, 196, 109, 1489, 113, 1494, 25, 147, 60, 25, 80, 21, 968, 16, 1489, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Using wkhtmltopdf with JBoss form based authentication === I am trying to use wkhtml2pdf in JBoss with Java to create PDF files. I was successful, but it only creates a PDF file from my login-page, rather than from the jsp file. I read that it is possible to add parameters like username or password, and this is what I did: String command = applicationLocation + "wkhtmltopdf.exe " + "--post j_username=" + username +" --post j_password=" + password + " " + reqURL + "?" + reqQuery + " c:/PDF/" + folderName + "/" + id + "/" + folderName + ".pdf"; But that doesn't create a PDF file, not even an error output. This is how my class looks like: public class GeneratePDF { String logUserId = "0"; public String path = "c:/PDF"; String applicationLocation = "C:\\Program Files\\wkhtmltopdf\\"; /** * This method creates a command which calls wkhtmltopdf from Google in order to create a PDF file. * * @param reqURL * @param reqQuery * @param folderName * @param id */ public void genrateCmd(String reqURL, String username, String password, String reqQuery, String folderName, String id) { try { // make sure c:/eGP exists File destFoldereGP = new File("c:/eGP"); if (destFoldereGP.exists() == false) { destFoldereGP.mkdirs(); System.out.println("successfully created c:/eGP"); } // make sure c:/PDF exists File destFolderPDF = new File("c:/PDF/"); if (destFolderPDF.exists() == false) { destFolderPDF.mkdirs(); System.out.println("successfully created c:/PDF"); } // make sure c:/PDF/foldername exists File destFolder = new File("c:/PDF/" + folderName); if (destFolder.exists() == false) { destFolder.mkdirs(); System.out.println("successfully created c:/PDF/foldername"); } // make sure c:/PDF/foldername/id exists File destFolder2 = new File("c:/PDF/" + folderName + "/" + id); if (destFolder2.exists() == false) { destFolder2.mkdirs(); System.out.println("successfully created c:/PDF/foldername/id"); } //For Image change 'wkhtmltopdf.exe' to 'wkhtmltoimage.exe' and '.pdf' to '.jpeg' String command = applicationLocation + "wkhtmltopdf.exe " + "--post j_username=" + username +" --post j_password=" + password + " " + reqURL + "?" + reqQuery + " c:/PDF/" + folderName + "/" + id + "/" + folderName + ".pdf"; System.out.println("Command to create PDF: " + command); Runtime.getRuntime().exec(command); System.out.println("Successfully created a new PDF file."); } catch (IOException e1) { System.out.println("Exception: " + e1); } catch (Exception e) { System.out.println("Exception: " + e); } } } Any idea how to create PDFs with wkhtml2pdf and form based authentication in JBoss? Thanks a lot.
0
[ 2, 568, 619, 197, 15895, 262, 11124, 29, 487, 10349, 18, 505, 432, 27963, 800, 3726, 3726, 31, 589, 749, 20, 275, 619, 197, 15895, 135, 11124, 19, 487, 10349, 18, 29, 8247, 20, 1600, 13, 11124, 6488, 9, 31, 23, 1300, 15, 47, 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...
Simulating rain === I am making a game in java and I want to create a simulation of a cloud that is pouring rain. The cloud is supposed to move to the right while raining. Moving the cloud is no problem. It's the rain that I am struggling with. What I was thinking of doing was with a timer to draw a rectangle, thats supposed to look like falling rain at a random x value inside of the cloud. And then add 1 to the y value of the drop each 100 millisecond. But I don't want to create 100 different rectangles, x variables and y variables for each rain drop. Any idea how I can accomplish this? Suggestions appreciated!
0
[ 2, 4861, 10038, 1938, 800, 3726, 3726, 31, 589, 544, 21, 250, 19, 8247, 17, 31, 259, 20, 1600, 21, 10926, 16, 21, 4005, 30, 25, 14306, 1938, 9, 14, 4005, 25, 2293, 20, 780, 20, 14, 193, 133, 1938, 68, 9, 1219, 14, 4005, 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...
Google Maps API v3 not working === I've been banging my head on the wall after going through the documentation on this several times! I can't seem to get past the API error to get the map to appear on my site. I am getting the following error message from the web page where I want the map to be displayed: ~~~~~~~~~~~ Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API v3 on this site. If you are the owner of this application, you can learn about obtaining a valid key here: https://developers.google.com/maps/documentation/javascript/tutorial#Obtaining_Key ~~~~~~~~~~~ I have (several times now) gone into my account and 1) enabled the Maps v3 API service. 2) Generated a new API key. and 3) added my allowed referrers to the key. (both www.domain.com and domain.com URLs) I have the following <script> added to the head of the web page: < script src="http://maps.googleapis.com/maps/api/js?sensor=false&amp;key=MY_API_KEY_HERE" type="text/JavaScript" language="JavaScript"></script > And... I have the following javascript function that executes when a link is clicked on the page: alert("viewMap()"); var map = new GMap3(document.getElementById("map_canvas")); var geocoder = new GClientGeocoder(); var address = "1600 Amphitheatre Parkway, Mountain View"; alert("Calling getLatLng ..."); geocoder.getLatLng(address, function(point) { var latitude = point.y; var longitude = point.x; // do something with the lat lng alert("Lat:"+latitude+" - Lng:"+longitude); }); The initial 'viewMap' alert is displayed and then is followed by the 'Google has disbled use...' error message. The error console is also showing 'GMap3 is not defined'. Can anyone please assist with showing me the errors of my ways?!?!? Thank you in advance for any help you can provide. -Dennis
0
[ 2, 8144, 6867, 21, 2159, 566, 240, 52, 638, 800, 3726, 3726, 31, 22, 195, 74, 24472, 51, 157, 27, 14, 769, 75, 228, 120, 14, 13945, 27, 48, 238, 436, 187, 31, 92, 22, 38, 2260, 20, 164, 640, 14, 21, 2159, 7019, 20, 164, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
a Prolog function that returns a list without a member === Ello, ive got the Prolog function member which tells us if an element exists in a list. now i should create a function that returns a list without that element. i know more or less how it should look like, but somehow i have no idea how to do it. ideas so far: - return the elements in the list before our element, and concat it with the rest of the list after our element. - use member() in a predicate that goes through the list recursively and builds it. help.
0
[ 2, 21, 895, 5567, 1990, 30, 4815, 21, 968, 366, 21, 322, 800, 3726, 3726, 13, 7523, 15, 5568, 330, 14, 895, 5567, 1990, 322, 56, 2609, 182, 100, 40, 4520, 5636, 19, 21, 968, 9, 130, 31, 378, 1600, 21, 1990, 30, 4815, 21, 968, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
valid-html error === while i tried to validate my php file (write in xhtml and php), I got 2 errors that I can't solve :S the error is: 1 - end tag for "body" omitted, but OMITTAG NO was specified 2 - end tag for "html" omitted, but OMITTAG NO was specified Here I paste the code of my file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <?php require 'include/config.php'; connection(); if(isset($_COOKIE['COOKIE_CHECK']) === FALSE) { setcookie('COOKIE_CHECK', 'ENABLED', time() + 31536000); header('Location: index.php'); } ?> <title>Nome da definire - Homepage</title> <link rel="shortcut icon" href="themes/<?php echo $home_theme; ?>/images/homepage/favicon/favicon.ico" /> <!-- CSS DELLA PAGINA E PLUGIN --> <link rel="stylesheet" type="text/css" href="themes/<?php echo $home_theme; ?>/css/index.css" title="index" /> <link rel="stylesheet" type="text/css" href="themes/<?php echo $home_theme; ?>/css/news.css" title="index" /> <!-- PLUGIN JQUERY --> <script src="include/jquery/jquery-1.4.2.min.js" type="text/javascript"></script> <!--SCRIPT BROWSER AGGIORNATO <script type='text/javascript'> var ba = document.createElement('script'); ba.type = 'text/javascript'; ba.async = true; ba.src = 'http://www.browseraggiornato.it/browser-updated.js?t=a&p=tl'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ba, s); </script>--> <!-- SCRIPT PULSANTI --> <script type="text/javascript"> jQuery.noConflict(); jQuery(function() { jQuery("ul#menu span").css("opacity","0"); jQuery("ul#menu span").hover(function () { jQuery(this).stop().animate({ opacity: 1 }, 'slow'); }, function () { jQuery(this).stop().animate({ opacity: 0 }, 'slow'); }); }); </script> <!-- SCRIPT NEWS --> <script type="text/javascript"> jQuery.noConflict(); jQuery(function() { var ticker = function() { setTimeout(function() { jQuery('#ticker li:first').animate({ marginTop: '-100px' }, 800, function() { jQuery(this).detach().appendTo('ul#ticker').removeAttr('style'); }); ticker(); }, 4000); }; ticker(); }); </script> <?php $login_error = ''; if(isset($_GET['login_error']) === TRUE && $_GET['login_error'] != '') { if($_GET['login_error'] == 'usrpss') { $login_error .= ' alert(\'Devi inserire username e password per poter effettuare il login!\');'; } else if($_GET['login_error'] == 'wrong') { $login_error .= ' alert(\'Hai inserito dei dati errati oppure il tuo account non &egrave; ancora stato attivato!\');'; } } ?> </head> <body<?php if($login_error != '') { echo ' onload="' . $login_error . '"'; } ?>> <?php if(isset($home_theme) === TRUE && $home_theme != '') { if(check_directory('themes/' . $home_theme . '') === TRUE) { if(check_file($path . '/index.php') === TRUE) { require $path . '/index.php'; } else { echo 'Il file dell\'index per questo tema non esiste'; } } else { echo 'La cartella del tema selezionato non esiste'; } } connection_close(); ?> </body> </html> please help me :( thank you
0
[ 2, 7394, 8, 15895, 7019, 800, 3726, 3726, 133, 31, 794, 20, 7394, 1373, 51, 13, 26120, 3893, 13, 5, 23716, 19, 993, 15895, 17, 13, 26120, 6, 15, 31, 330, 172, 11908, 30, 31, 92, 22, 38, 8402, 13, 45, 18, 14, 7019, 25, 45, 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...
update a specific record from the list of array mysql === I have a table `user_instance`. It has three fields: `account_id`, `instance_name`, `host_name`.<br/> For Example, the records are like this. account_id instance_name host_name ------------------------------------------ 1 instance_name1 localhost 1 instance_name1 % 1 instance_name2 localhost 2 instance_name1 localhost And I am getting instance_name and host_name in an array of text boxes. $result=mysql_query("SELECT user_instance.instance_name, user_instance.host_name FROM dba_account, user_instance WHERE dba_account.account_id = user_instance.account_id AND dba_account.account_id = '1'"); while($note = mysql_fetch_array($result)) { <inut type='text' name='instance_name' id='instance_name' disabled='disabled' value='$note[instance_name]' size='25' /> <input type='text' name='host_name' id='host_name' disabled='disabled' value='$note[host_name]' size='25' /> } now when I click on the update button, it should update the specific record that I have made changes to. For example, if I change instance_name `instance_name1` or host_name `localhost` of account_id `1`, then it should update that record. I appreciate any help.
0
[ 2, 11100, 21, 1903, 571, 37, 14, 968, 16, 7718, 51, 18, 22402, 800, 3726, 3726, 31, 57, 21, 859, 13, 1, 16704, 1, 108, 384, 2416, 1, 9, 32, 63, 132, 2861, 45, 13, 1, 29148, 1, 1340, 1, 15, 13, 1, 108, 384, 2416, 1, 7259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Play Framwork ebean configuration === I get this error when I try to save a simple Item to my H2 db: "javax.persistence.PersistenceException: The default EbeanServer has not been defined? This is normally set via the ebean.datasource.default property. Otherwise it should be registered programatically via registerServer()" my play application.conf file # Database configuration # ~~~~~ # You can declare as many datasources as you want. # By convention, the default datasource is named `efault db.default.driver=org.h2.Driver db.default.url="jdbc:h2:mem:play" db.default.jndiName=DefaultDS db.default.user=sa db.default.password="" # JPA configuration # ~~~~~ # You can declare as many Ebean servers as you want. # By convention, the default server is named `default` jpa.default=defaultPersistenceUnit ebean.datasource.default=DefaultDS ebean.default="models.*"
0
[ 2, 418, 8345, 79, 3783, 11817, 5609, 8091, 800, 3726, 3726, 31, 164, 48, 7019, 76, 31, 1131, 20, 2079, 21, 1935, 9101, 20, 51, 746, 135, 13, 9007, 45, 13, 7, 1004, 1385, 396, 9, 7490, 702, 2940, 9, 7490, 702, 2940, 10066, 872, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Windows Phone connect to website === I have a browser based web game and am looking to develop an app that will integrate into the website and act as an additional platform from which people can play the game. It is a text based game so all data i.e. login details, user stats, awards etc are stored in a database. What my question is how would I develop a Windows Phone 7 app that first of all requires the user to connect to the website to login and then to send and retrieve user stats?
0
[ 2, 1936, 1132, 6379, 20, 2271, 800, 3726, 3726, 31, 57, 21, 16495, 432, 2741, 250, 17, 589, 699, 20, 2803, 40, 4865, 30, 129, 18399, 77, 14, 2271, 17, 601, 28, 40, 1351, 2452, 37, 56, 148, 92, 418, 14, 250, 9, 32, 25, 21, 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...
Struggling with rewrite rule === I'm struggling with a particular rewrite rule on apache. More precise, I'm struggling to understand what's wrong with it. I need to rewrite urls like so: http://www.mysite.com/section/venue_info/123/name or http://www.mysite.com/section/venue_info/123/ or http://www.mysite.com/section/venue_info/123 | V http://www.mysite.com/section/venue_info.php?id=123 Note that `section` is a variable in the equation. In live site it can be one of a several values, so whatever section was supplied, I need to use that section. I've got this in my apache config: DocumentRoot /var/www/site/trunk/publish <Directory /var/www/site/publish/trunk/> Options -Indexes +FollowSymLinks AllowOverride None Order allow,deny Allow from all RewriteEngine on RewriteBase / RewriteRule ^\/(\w+)\/venue_info\/(\d+)(\/.+|\/?)$ $1/venue_info.php?id=$2 </Directory> However this doesn't match. I've tried all sorts of variations, but no with no luck. What's the right `RewriteRule` here? Any help is appreciated.
0
[ 2, 7587, 29, 27891, 1828, 800, 3726, 3726, 31, 22, 79, 7587, 29, 21, 1498, 27891, 1828, 27, 17140, 9, 91, 11114, 15, 31, 22, 79, 7587, 20, 1369, 98, 22, 18, 1389, 29, 32, 9, 31, 376, 20, 27891, 13, 911, 7532, 101, 86, 45, 77...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Iterate through class members in order of their declaration === I got this problem writing a little GUI lib that maps classes to simple table views. Every class member of a certain type = column, and order of columns is important. But... class Person(object): name = None date_of_birth = None nationality = None gender = None address = None comment = None for member in Person.__dict__.iteritems(): if not member[1]: print member[0] output: comment date_of_birth name address gender nationality ... ugh, the oder got all mixed up...desired output: name date_of_birth nationality gender address comment Is there a way to do it without maintaining additional `OrderedDict()` of columns?
0
[ 2, 32, 106, 1373, 120, 718, 443, 19, 389, 16, 66, 7098, 800, 3726, 3726, 31, 330, 48, 1448, 1174, 21, 265, 9457, 13, 8326, 30, 6867, 2684, 20, 1935, 859, 4146, 9, 352, 718, 322, 16, 21, 1200, 1001, 800, 4698, 15, 17, 389, 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...
Which checkbox is selected and assigning a value === I am trying to create logic to see what checkbox is selected (of 5 possible checkboxes) and if it is selected assign it a value of 0. if it is not selected I was to assign it a value of 1. The proceeding code snippet highlight this but throws a parse error in my else statement and I cannot fighure out why. //Check to see what checkbox is marked for correct answer //Correct answer variables $chkBox1 = 'unchecked'; $chkBox2 = 'unchecked'; $chkBox3 = 'unchecked'; $chkBox4 = 'unchecked'; $chkBox5 = 'unchecked'; if (isset($_POST['chkBox1'])) { if ($chkBox1 == 'chkBox1Selected') { $chkBox1 = '0'; } else{ $chkBox1 = '1'; } }//End of chkBox1Selected logic
0
[ 2, 56, 2631, 5309, 25, 1704, 17, 13952, 68, 21, 1923, 800, 3726, 3726, 31, 589, 749, 20, 1600, 7085, 20, 196, 98, 2631, 5309, 25, 1704, 13, 5, 1041, 331, 938, 2631, 5309, 160, 6, 17, 100, 32, 25, 1704, 13952, 32, 21, 1923, 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...
AlphaAnimation Class Not Work In CountDownTimer === Actually I write a AlphaAnimation in XML and use it in my activity. When I want to use it onFinish CountDownTime method, it doesn't work. How can I fix it? This is my code: new CountDownTimer(1000, 1000) { @Override public void onTick(long millisUntilFinished) {} // end -> method -> onTick @Override public void onFinish() { googleAccount.startAnimation(loginFadeOut); password.startAnimation(loginFadeOut); login.startAnimation(loginFadeOut); googleAccount.setFocusableInTouchMode(true); password.setFocusableInTouchMode(true); login.setEnabled(true); } // end -> method -> onFinish };
0
[ 2, 5705, 3443, 79, 857, 718, 52, 170, 19, 22566, 891, 139, 800, 3726, 3726, 1121, 31, 2757, 21, 5705, 3443, 79, 857, 19, 23504, 17, 275, 32, 19, 51, 2358, 9, 76, 31, 259, 20, 275, 32, 27, 23858, 22566, 891, 2109, 15, 32, 1437,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Displaying the users information from the database === I am trying to created a way to call information from the database for a user to view. Such as they log in and it has their registered information viewed. I have this session_start(); if($_SESSION['id']) $result = mysql_query("SELECT * FROM User WHERE `id` = $_SESSION[id]") or die(mysql_error()); while($row = mysql_fetch_array( $result )) { echo '<b>First Name:</b>' .$row['fname']; echo '<br>'; echo '<b>Last Name:</b>' .$row['lname']; } but nothing shows up. My database name is megan, table is user, fields i want displayed are first name (fname) and last name (lname). Can someone point me in the right direction. Thank you in advance!
0
[ 2, 17418, 14, 3878, 676, 37, 14, 6018, 800, 3726, 3726, 31, 589, 749, 20, 679, 21, 161, 20, 645, 676, 37, 14, 6018, 26, 21, 4155, 20, 1418, 9, 145, 28, 59, 6738, 19, 17, 32, 63, 66, 3801, 676, 6084, 9, 31, 57, 48, 3723, 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 i generate rating series in php? === How do i generate floating rating series in php<br> Like as: 0.1 0.2 0.3 0.4 ... ... 1 ... 9.8 9.9 10 for($i=10; $i<=1; $i++) { echo $i; $data[] = $i/10; }
0
[ 2, 184, 107, 31, 7920, 4647, 231, 19, 13, 26120, 60, 800, 3726, 3726, 184, 107, 31, 7920, 8319, 4647, 231, 19, 13, 26120, 1, 5145, 1, 101, 28, 45, 713, 9, 165, 713, 9, 135, 713, 9, 240, 713, 9, 300, 13, 9, 9, 9, 13, 9, 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...
Insert variable string into prefix of cell (MIcrosoft Access) === I have a text field with data ranging in length from 3 to 6. All cells need to contain a string that has a length of 6. I would like to insert "0"'s as a prefix, the number of zeros equal to the difference between the cell length and 6. So: 123 1123 11123 111123 Would be: 000123 001123 011123 111123 Thanks for any help you can give!
0
[ 2, 14692, 7612, 3724, 77, 14315, 16, 1667, 13, 5, 22019, 12980, 1381, 6, 800, 3726, 3726, 31, 57, 21, 1854, 575, 29, 1054, 7657, 19, 1476, 37, 203, 20, 400, 9, 65, 2934, 376, 20, 3717, 21, 3724, 30, 63, 21, 1476, 16, 400, 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...
Java applet run on the Apache tomcat server 7 === I have written the program by java applet. I did run the program by JDK7 and i created the jar file from the class after that i created the jarsigner because my program has captured the audio to be created a secure. This program have run on every server and also have worked on my local server that installed on my computer which is Appache/Tomcat 7 but when i want to run on the other server to access by all users but it got this error: ClassNotFoundException and the detail of the error said: Java Plug-in 10.5.1.255 Using JRE version 1.7.0_05-b06 Java HotSpot(TM) Client VM User home directory = C:\Users\.. I don't know what is the meaning of the error. I am happy to help me by your idea about this error. Thanks
0
[ 2, 8247, 4037, 38, 485, 27, 14, 17140, 2067, 5782, 8128, 453, 800, 3726, 3726, 31, 57, 642, 14, 625, 34, 8247, 4037, 38, 9, 31, 144, 485, 14, 625, 34, 487, 43, 197, 465, 17, 31, 679, 14, 5112, 3893, 37, 14, 718, 75, 30, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Sitecore Web Forms for Marketers - Complex custom field === The client wants to be able to display, within a WFFM form, a list of Sitecore items (each item containing an image & some HTML text), each item next to a checkbox to allow the end user to pick one or more of these items. Within the form designer, for this particular field, we would like to have an item selector which can be used by the content editor to pick and choose which items to display in the list. Is this something feasible in WFFM? Are there examples of complex custom form fields that I could take a look at? Thanks!
0
[ 2, 689, 10375, 2741, 1997, 26, 1135, 445, 13, 8, 1502, 5816, 575, 800, 3726, 3726, 14, 6819, 2846, 20, 44, 777, 20, 3042, 15, 363, 21, 13, 15263, 5223, 505, 15, 21, 968, 16, 689, 10375, 3755, 13, 5, 14322, 9101, 3503, 40, 1961, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
SAS: Limiting variables in PROC EXPORT === I have a PROC EXPORT question that I am wondering if you can answer. I have a SAS dataset with 800+ variables and over 200K observations and I am trying to export a subset of the variables to a CSV file (i.e. I need all records; I just don’t want all 800+ variables). I can always create a temporary dataset “KEEP”ing just the fields I need and run the EXPORT on that temp dataset, but I am trying to avoid the additional step because I have a large number of records. To demonstrate this, consider a dataset that has three variables named x, y and z. But, I want the text file generated through PROC EXPORT to only contain x and y. My attempt at a solution below does not quite work. **The SAS Code** When I run the following code, I don’t get exactly what I need. If you run this code and look at the text file that was generated, it has a comma at the end of every line and the header includes all variables in the dataset anyway. Also, I get some messages in the log that I shouldnt be getting. data ds1; do x = 1 to 100; y = x * x; z = x * x * x; output; end; run; proc export data=ds1(keep=x y) file='c:\test.csv' dbms=csv replace; quit; Here are the first few lines of the text file that was generated ("C:\test.csv") x,y,z 1,1, 2,4, 3,9, 4,16, **The SAS Log** 9343 proc export data=ds1(keep=x y) 9344 file='c:\test.csv' 9345 dbms=csv 9346 replace; 9347 quit; 9348 /********************************************************************** 9349 * PRODUCT: SAS 9350 * VERSION: 9.2 9351 * CREATOR: External File Interface 9352 * DATE: 30JUL12 9353 * DESC: Generated SAS Datastep Code 9354 * TEMPLATE SOURCE: (None Specified.) 9355 ***********************************************************************/ 9356 data _null_; 9357 %let _EFIERR_ = 0; /* set the ERROR detection macro variable */ 9358 %let _EFIREC_ = 0; /* clear export record count macro variable */ 9359 file 'c:\test.csv' delimiter=',' DSD DROPOVER lrecl=32767; 9360 if _n_ = 1 then /* write column names or labels */ 9361 do; 9362 put 9363 "x" 9364 ',' 9365 "y" 9366 ',' 9367 "z" 9368 ; 9369 end; 9370 set DS1(keep=x y) end=EFIEOD; 9371 format x best12. ; 9372 format y best12. ; 9373 format z best12. ; 9374 do; 9375 EFIOUT + 1; 9376 put x @; 9377 put y @; 9378 put z ; 9379 ; 9380 end; 9381 if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */ 9382 if EFIEOD then call symputx('_EFIREC_',EFIOUT); 9383 run; NOTE: Variable z is uninitialized. NOTE: The file 'c:\test.csv' is: Filename=c:\test.csv, RECFM=V,LRECL=32767,File Size (bytes)=0, Last Modified=30Jul2012:12:05:02, Create Time=30Jul2012:12:05:02 NOTE: 101 records were written to the file 'c:\test.csv'. The minimum record length was 4. The maximum record length was 10. NOTE: There were 100 observations read from the data set WORK.DS1. NOTE: DATA statement used (Total process time): real time 0.04 seconds cpu time 0.01 seconds 100 records created in c:\test.csv from DS1. NOTE: "c:\test.csv" file was successfully created. NOTE: PROCEDURE EXPORT used (Total process time): real time 0.12 seconds cpu time 0.06 seconds Any ideas how I can solve this problem? I am running SAS 9.2 on windows 7. Any help would be appreciated. Thanks. - Karthik
0
[ 2, 9233, 45, 17567, 12157, 19, 13, 15617, 7487, 800, 3726, 3726, 31, 57, 21, 13, 15617, 7487, 1301, 30, 31, 589, 5712, 100, 42, 92, 1623, 9, 31, 57, 21, 9233, 1054, 3554, 29, 7993, 2430, 12157, 17, 84, 2327, 197, 9820, 17, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 place a character literal in a python string === I'm trying to write a regular expression in python, and one of the characters involved in it is the \001 character. putting \001 in a string doesn't seem to work. I also tried 'string' + str(chr(1)), but the regex doesn't seem to catch it. Please for the love of god somebody help me, I've been struggling with this all day. import sys import postgresql import re f = open(sys.argv[1], 'r') timeExp = re.compile('(\d{2}):(\d{2}):(\d{2})\.(\d{6}) (\S)') tagExp = re.compile('(?P<tag>\d+)=(?P<value>\S*)\001') for line in f: #parse the time m = timeExp.match(line) print(m.group(1) + ':' + m.group(2) + ':' + m.group(3) + '.' + m.group(4) + ' ' + m.group(5)); tagPairs = re.findall('\d+=\S*\001' + str(chr(1)), line) for t in tagPairs: tagPairMatch = tagExp.match(t) print ("tag = " + tagPairMatch.group(1) + ", value = " + tagPairMatch.group(2))
0
[ 2, 184, 20, 209, 21, 925, 20665, 19, 21, 20059, 3724, 800, 3726, 3726, 31, 22, 79, 749, 20, 2757, 21, 1290, 1803, 19, 20059, 15, 17, 53, 16, 14, 1766, 1013, 19, 32, 25, 14, 13, 1, 18951, 925, 9, 3873, 13, 1, 18951, 19, 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...
iOS 5 keyboardWasShown === I add a negative and a period button through the code to the basic numeric keyboard for text fields that accept decimal values. i call this code from the keyboardWasShown method and it seems to add these two keys to the keyboard in iOS 4 series, but does nothing in iOS 5. The code is called and the method is executed but the keys are not added to the keyboard. any help is appreciated. thanks.
0
[ 2, 13, 7760, 331, 8896, 4149, 9303, 103, 800, 3726, 3726, 31, 3547, 21, 3682, 17, 21, 620, 5167, 120, 14, 1797, 20, 14, 2125, 15764, 596, 8896, 26, 1854, 2861, 30, 3440, 26380, 4070, 9, 31, 645, 48, 1797, 37, 14, 8896, 4149, 930...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Calling a Windows DLL from PHP === I am trying to call function form a DLL using PHP. Based on my research, I need to do the following first from the command line: REGSVR32 MyDLL.dll Then I can do something like: <?php $my_dll = new COM(‘MyDLL.Functions’); $text_to_be_encryopted = ‘This needs to be encrypted.’; $output_text = $my_dll->EncryptString($text_to_be_encryopted); echo $output_text ?> The problem is that I cannot get Windows to register the DLL. I am getting the following message: The moduleMyDLL.dll may not be compatible with the version of windows that you're running. Check if the module is compatible with an x86 (32-bit) or x64(64bit) version of regsvr32.exe I tried this on a Windows 32 as well as a Windows 64 system with the same results. Any ideas (or an alternative way to do this)>
0
[ 2, 2555, 21, 1936, 13, 43, 211, 37, 13, 26120, 800, 3726, 3726, 31, 589, 749, 20, 645, 1990, 505, 21, 13, 43, 211, 568, 13, 26120, 9, 432, 27, 51, 527, 15, 31, 376, 20, 107, 14, 249, 64, 37, 14, 1202, 293, 45, 7953, 18, 69...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
After dynamically creating html elements, is there anyway to fire an event? === This is a goofy question, so sorry about that. I'm creating html elements dynamically from an ASP.NET server control. After an element is created, or all of the elments are created, is there a way to force an event to fire on one of them? I understand that it's coming from the server to the client, but I'm looking for a way around that. Is there anything in the document that can listen for html being added or anything? I'm creating the controls like this: protected override void RenderContents(HtmlTextWriter output) { // htmlString is a dynamically built string of html output.Write(htmlString); } The elements are a series of cascading drop-downs of which the user has the ability to save the selected value. So, if I select the value of the item when I create it, there's no way to kick off the event, which calls out to the database for data to fill its dependent control. There's a "no postbacks" rule here (not my rule). Any help would be appreciated.
0
[ 2, 75, 7782, 1326, 2936, 13, 15895, 2065, 15, 25, 80, 2774, 20, 535, 40, 807, 60, 800, 3726, 3726, 48, 25, 21, 28072, 1301, 15, 86, 1875, 88, 30, 9, 31, 22, 79, 2936, 13, 15895, 2065, 7782, 1326, 37, 40, 28, 306, 9, 2328, 81...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...