Vote count: 0 I have to implement a Custom alerts in my App programmatically using Swift language. i tried implementing using some third party library "SCLAlertView" but not able to understand from that, i need a implement simple alert pop ups with dynamic message and number of button changes in App. As there were lots of AlertView in my App. so i need to update the dynamically. below i have attached an sample image of custom alert how it looks to implement Please help me to implement this feature. asked 41 secs agonikey Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have an dynamically allocated array of structs that I need to print inside LLDB, while in a breakpoint. All this happening in some pure C code outside ObjC. I've written a static function that does the printing job and while I can call it inside LLDB, it will only print about 60 lines before silently stopping. Sometimes, it will not print anything unless I press Enter again inside LLDB. I assume this is due to threading somehow, but I tried to do a dispatch_async inside that function without any success - it wouldn't print anything. Therefore, I am looking into alteative solutions (maybe a Python script) to get a pretty print of that array as it is vital for my debugging effo...
ادامه مطلبVote count: 0 In the Sonata Admin Bundle you have a list view where you can add fields you want to show in your table. At the bottom of the table you have the number of results and pagination. I like the pagination and items per page. But I would like to show ALL the items at the load of the page. So all the items are shown on the page but you can still choose to decrease the number of results per page. The problem is I don't have a clue on how to do this. Can someone set me on my way? asked 2 mins agonielsv Let's block ads! بخوانید...
ادامه مطلبVote count: 0 In the Sonata Admin Bundle you have a list view where you can add fields you want to show in your table. At the bottom of the table you have the number of results and pagination. I like the pagination and items per page. But I would like to show ALL the items at the load of the page. So all the items are shown on the page but you can still choose to decrease the number of results per page. The problem is I don't have a clue on how to do this. Can someone set me on my way? asked 42 secs agonielsv Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I call this action method using an ajax call: [AuthorizeCheckCreator] [HttpPost] [OutputCache(Location = OutputCacheLocation.None, NoStore = true)] public ActionResult Delete(Guid id) { // code.... retu Content("ok"); } I have created a custom AuthorizeAttribute for checking permission of the user (I wanted to make sure whether the user is owner the record or not): public class AuthorizeCheckCreatorAttribute : AuthorizeAttribute { public IRequest RequestService { get; set; } protected override bool AuthorizeCore(HttpContextBase httpContext) { RequestCheckUserViewModel request; if (httpContext.Request.IsAjaxRequest()) { var ajaxId = JsonConvert.DeserializeObject(System.Text.Enco...
ادامه مطلبVote count: 0 I have two different custom cell in my tableview, In the first cell I add a custom cell line under the system cell line: _bottom_line = [[UIView alloc] initWithFrame:CGRectMake(0, 49, kScreen_Width, 1)]; _bottom_line.backgroundColor = Back_Color_QQ; [part3 addSubview:_bottom_line]; In the controller to setup my custom cell; - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.section == 0) { // my first cell static NSString *id_cell1 = @"cell1"; AgDetailTechCell *cell = [tableView dequeueReusableCellWithIdentifier:id_cell1]; if (cell == nil) { cell = [[AgDetailTechCell alloc] initWithStyle:UITableViewCellStyleDef...
ادامه مطلبVote count: 0 I'm using DSOFile to write custom attributes to a file by using the following code: DSOFile.OleDocumentProperties file = new DSOFile.OleDocumentProperties(); file.Open(@"C:More_info.docx",false,DSOFile.dsoFileOpenOptions.dsoOptionDefault); But it gives me the following error while ruing the code: An unhandled exception of type 'System.InvalidCastException' occurred in batchFile.exe Additional information: Unable to cast COM object of type 'DSOFile.OleDocumentPropertiesClass' to interface type 'DSOFile._OleDocumentProperties'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{58968145-CF01-4341-995F-2EE093F6ABA3}' failed due ...
ادامه مطلبVote count: 0 I am creating android platform over a xamarin form Image control. I can have onDraw to draw something on it. I don't see the image showing on the view [assembly: ExportRenderer(typeof(CanvasView), typeof(CanvasViewRenderer))] namespace Meeting.Droid { public class CanvasViewRenderer : VisualElementRenderer { protected override void OnElementChanged(ElementChangedEventArgs e) { base.OnElementChanged(e); if (e.OldElement != null || Element == null) retu; page = new Page(); var directory = Android.OS.Environment.GetExtealStoragePublicDirectory(Android.OS.Environment.DirectoryDownloads); var imagePath = directory + "/A.png"; Element.Source = ImageSource.Fro...
ادامه مطلبVote count: 0 I am trying to use the Custom Task to list and stop the active SAS sessions. I downloaded the dll files from https://communities.sas.com/t5/Administration-and-Deployment/A-custom-task-to-list-and-stop-active-SAS-sessions/m-p/251340 and then I created a folder named "Custom" in C:Program FilesSASEnterpriseGuide4.3 and pasted the dll file in this folder. But when I tried to run the Custom Task from SAS EG, it showed the error saying "Error: Procedure IOMOPERATE not found". I, also, tried to run the procedure using following code with my credentials...
ادامه مطلبVote count: 0 I am trying to create my own custom configuration section with following: Code in the web.config file:...
ادامه مطلبVote count: 0 My question is probably more of a PHP question than a concrete5 or Pro Events question so please bare with. I'm using the Pro Events add-on. I've added an Event List block to the page and with the help of someone, created a custom display template. In short, this allows me to lists movies in chronological order using the Event Dates attribute (which captures show dates and times against each movie). The code which does this is as follows: The result of this code looks like this:SUN, 07 AUGUST11:00 AM The Big Friendly Giant12:45 PM Finding Dory1:30 PM 6:15 PM Poi E - The Story of our Song3:00 PM Star Trek Beyond3:45 PM Ghostbusters5:30 PM 8:30 PM Suicide Squad1:30 PM 6:15 PM Poi...
ادامه مطلبVote count: 0 I have a simple form that will upload multiple files. I have created a custom file type in order to store other relevant data in the upload and i am trying to validate the files uploaded but the model fails to bind from my custom file type so the model.isvalid always retus false So i am trying to create a custom validation override that will work with my file structure but the value is always empty and i cant figure out the reason. The file property is : [Required(ErrorMessage = "Please select a file to upload")] [Display(Name = "Upload Files")] [ValidateFile] public virtual ICollection Files { get; set; } public class ValidateFileAttribute : ValidationAttribute { public overri...
ادامه مطلبVote count: 0 For example I have following input field inside some bigger form: Input field has formControlName directive for form model and one custom directive for manually setting value with jquery datepicker: import { Directive, ElementRef, AfterViewInit } from "@angular/core"; declare var jQuery:any; @Directive({ selector: "[bootstrapDatepicker]" }) export class BootstrapDatepicker implements AfterViewInit { private el: HTMLElement; constructor(el: ElementRef) { this.el = el.nativeElement; } ngAfterViewInit() { jQuery(this.el) .datepicker() .on("changeDate", function(e) { // ??? }.bind({el: this.el})); } } After i choose date from datepicker, input value is visually changed, but form mo...
ادامه مطلبVote count: 0 So, I've been struggling on this for a while and have searched on here for hours without finding anything that really helped. I have a custom class Streak. When the user creates a new Streak in my Main Activity, I want for that streak to be added to a list of total streaks, which I would then access from an AllStreaks activity. I have tried using Gson, but received errors. What I have below is working for the time being, but since my global variable has to be declared as new. I don't really want to use a MySQL database as this info needs to be quickly editable and I don't want to have to constantly coect to that to potentially change just one detail. Sorry if my code is a mess ...
ادامه مطلبVote count: 0 I am using the parse cloud code and I need to create a stripe customer and add a credit card to it and save it some how. How would I save the customer to that parse user? stripe.customers.create({ email: 'foo-customer@example.com', card: 12345 }).then(function(customer) { retu stripe.charges.create({ amount: 1600, currency: 'usd', customer: customer.id }); }).then(function(charge) { // New charge created on a new customer }).catch(function(err) { // Deal with an error }); asked 42 secs agoCoors Apps Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am trying to draw a custom popup menu on MFC single-document interface (SDI) project.From here, I found The framework calls this member function for the owner of an owner-draw button control, combo-box control, list-box control, or menu when a visual aspect of the control or menu has changed.So I added the handle OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct) and added some code inside this function, but I found that this callback didn't be called by the framework when I right click on the view, like this:How to make a popup menu dynamically? asked 1 min agosflee Let's block ads! بخوانید...
ادامه مطلبVote count: 0 i have customized select option menu by java script but there is a problem,this code is not working when option tag is disabled or selected as true. i want this solution by javas cript. apple mango banana var select = document.getElementsByTagName('select'); var customselect = []; var menu = []; var items = []; for(var i = 0 ; iasked 47 secs agoAbdul Munem Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I ve got a problem and could not find a solution till yet! I ve implemented a custom keyboard with several keys. Each key got a background image. I would like to change the background color of the pressed key itself as shown in the original keyboard below: I dont want to have a preview, I would like to change the background color of the key itself, when the key gets pressed. Here are my files: keyboard.xml keybackground.xml The background color will be changed to my drawable, but when I hit the key, it will not changed to the pressed - state. The background stays the same. Could you please help me? Thanks in advanced! Here my custom keyboard layout, with preview enabled to show...
ادامه مطلبVote count: 0 I have a struct which I am trying to Marshal which is defined as follows: enum BBB {BB1 =1, BB2 =2} [StructLayout(LayoutKind.Sequential, Pack = 1)] struct Foo { [MarshalAs(UnmanagedType.I2)] public BBB F1; public int F2; public short F3; } Seems like Marshal can't handle this enum field specification and throws an exception: caot be marshaled as an unmanaged structure; no meaningful size or offset can be computed. If I remove the [MarshalAs(UnmanagedType.I2)], then marshaling succeeds, but I would like to be able to marshal an enum field as a custom size field not necessarily a 4 byte one. Has anyone run into this issue? asked 21 secs agodmg Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I've styled and prepared my Contact Form on my website (using Wordpress plugin called Contact Form 7). I've styled the form, and made everything as I want it. But I only have one problem. I can't figure out how to enter custom text in a specific part of my contact form. This is the page: http://digesale.com/contact-us/ You will obviously see an empty part in the upper right coer of the form. I want to write some text there. I tried googling for a solution, and I tried looking through the plugin's settings and even php files. I can't figure it out. Can anyone help? Thanks asked 1 min agoOverloard Let's block ads! بخوانید...
ادامه مطلب