Vote count: 0 I'm trying to use PDFMerger.php (https://github.com/myokyawhtun/PDFMerger) to set up a script which will merge PDF's and output a download. So far, everything is working - However, the orientation doesn't seem to be working, my eBook is in Landscape mode, but PDFMerger keeps outputting the download in Portrait mode, thus cutting off half of my page. The code I'm using to test is: The output of which can be seen here: http://crunch.alunfisher.co.uk/uniclearing/PDF/pdf.php If anyone ...
ادامه مطلبVote count: 0 I was mapping all the users. Migration done successfully to visual studio online. But its still migration doesn't have changeset with corresponding user name. It displays only with who is ruing migration tool . Can you help me on this ? asked 2 mins agoNelson Let's block ads!...
ادامه مطلبVote count: 0 I want to disable column resize, but "stretch = False" is not working, I don't know why, my python version 3.4.3 . from tkinter import * from tkinter import ttk def main(): gMaster = Tk() w = ttk.Treeview(gMaster, show="headings", columns=('Column1', 'Column2')) w.heading('#1', text='Column1', anchor=W) w.heading('#2', text='Column2', anchor=W) w.column('#1', minwidth = 70, width = 70, stretch = False) w.column('#2', minwidth = 70, width = 70, stretch = False) w.grid(row = 0, colum...
ادامه مطلبVote count: 1 I use doctrine events (listener and subscriber ), in both of them i have such a problem : when i run postPersist they do not run all the time. I mean in a foreach i call doctrine remove but the event only call once and not more? can some one give me some directions? Sample code is below: foreach ($input as $key => $value) { $entity = $this ->findOneBy([$this->primaryKeyName => $value[$this->primaryKeyName]]); if($i!=1) $this->_em->getEventManager()->dispatchEvent('postUpdate',new L...
ادامه مطلبVote count: 0 I have data like below sample. VariableName variableValue row_count 5326 FileName [OrderFeed_20160406.tsv] TableName OrderFeed TableID 1 row_count 788 FileName [CategoryFeed_20160406.tsv] TableName Category TableID 2 row_count 224 FileName [ItemFeed_20160406.tsv] TableName Item TableID 3 row_count 991 FileName [ContactFeed_20160406.tsv] TableName Contact TableID 4 I want show that data like below: row_count | FileName | TableName |TableID 5326 |[OrderFeed_20160406.tsv] |OrderFeed |...
ادامه مطلبVote count: 0 how to load Gesturelibrary inside Fragment Activity ...Please help me @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view =inflater.inflate(R.layout.fragment_a, container, false); //error is here..."this" is not working mLibrary = GestureLibraries.fromRawResource(this, R.raw.gestures); gestureOverlayView = (GestureOverlayView)view.findViewById(R.id.gestureOverlayView); retu v...
ادامه مطلبVote count: 0 I am trying to find all the numeric values in a textbox text and highlight them but nothing is happening. The code is below. Can you please help identify what is that I am doing wrong? model Notes.Models.NotesModel Notes .highlight {background-color :yellow;} function PIIHighlight() { var regex = new RegExp("D+", "gi"); alert(document.getElementById("Notes").value.toString()); retu $("Notes").each(function () { document.getElementById("Notes").value.replace(regex,function (matched)...
ادامه مطلبVote count: 0 I have artists information in the angular scope and used ng-repeat to repeat to list all artist info in the template. I am trying to sort (name, title, label, view) data using list.js. Unfortunately, the sorting part doesn't seems to work. I have installed list.js using bower and mentioned the source in the html template . I am exactly trying to replicate this codepen but with angular. I am aware about angular sorting! Sort by name Sort by Project Sort by Label Change View...
ادامه مطلبVote count: 0 I have some problems with this code.. I'm trying to make a list where users can insert their favourite beer. there have to be a check if the "userinput" is already in the array.. My thoughts where as follow: loop through the beersArray and check if there is a value in the array that is the same as what user puts in. -> if so -> alert and do not add. IF NOT > add the user input to a list item I tried to find a solution to make it work but couldn't find it, I hope someone can help me...
ادامه مطلبVote count: 0 function eventlisteOnclick(_class, ability, _src, _id){ var cell_onclick = document.querySelectorAll(_class); for(var c = 0; c < cell_onclick.length; c++){ cell_onclick[c].addEventListener('click', function(){ //problem here , ability(_src) = fun1(mysrc); //error ability(_src); }, false); } } function fun1(mysrc){ console.log(); } eventlisteOnclick("abc", "fun1", "this.src", null); the fun1 is a function and i was trying to set as variable at eventlisterOnclick , and run the functi...
ادامه مطلبVote count: 0 Im using Laravel 5.2 with bootstrap. In the code you see that I use a "button" style for my checkboxes. This requires the data-toggle="button". But now, no form submit buttons work anymore. Any ideas? {!! Form::open(array('url' => '/participants/add', 'class' => 'form-horizontal')) !!} @foreach($data[$course->id]['freeParticipants'] as $participants) {!! $participant->name !!} @endforeach {!! Form::close() !!} asked 2 mins agoAkeno Let's block ads!...
ادامه مطلبVote count: 0 I'm trying to select/highlight certain parts of my RTB-Lines. Splitted by ":" i want to have both parts to have each their own selectioncolor. This is what my RTB-Text looks like: Key1:Value1Key2:Value2Key3:Value3Key4:Value4Key5:Value5... This is my code so far: For i As Integer = 0 To rtbxPreview.Lines.Count - 1 Dim currStartIndex As Integer = rtbxPreview.Text.IndexOf(rtbxPreview.Lines(i)) rtbxPreview.Select(currStartIndex, rtbxPreview.Text.IndexOf(":", currStartIndex) - currStart...
ادامه مطلبVote count: 0 To structure my JavaScript code I would like to use classes, the syntactical sugar for prototype inheritance new to ES6. I am having trouble though: it seems my prototype methods are not working as expected, which makes me feel I may have a fundamental misunderstanding of JavaScript classes, and/or how they work. Take the following code, which declares a traditional constructor Cat and modifies its prototype, and an ES6 class Dog with a prototype method defined within it. // Tradit...
ادامه مطلبVote count: 0 The page refreshes instead of going to index.php. The header function seems to be not working, even if I move it anywhere in the code. Does anyone know why this is happening? Would be thankful for the help!...
ادامه مطلبVote count: 0 I'm building a site which will have no border radius on any element, and rather than using outline: 0; multiple times in my stylesheet I'm trying to use the * selector to apply outline: 0; to everything; * { -moz-appearance: none; -webkit-appearance: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); outline: 0; outline: none; border-radius:0; } This CSS works on some elements such as input fields but not buttons. I am using bootstrap and then including my own stylesheet afterwar...
ادامه مطلبVote count: 0 I have this method and I have not been able to order my result. It wont order at all. Do you know what am doing wrong ? public IEnumerable GetBranches() { List objList = null; var strQuery = (from sl in _objDataCollection.Edmm_Tester orderby sl.Code select new SelectListItem() {Text = sl.Name, Value = sl.Code}).Distinct(); objList = strQuery.ToList(); retu objList; } asked 1 min agouser2320476 Let's block ads!...
ادامه مطلبVote count: 0 I have following query which is not working with WHERE clause.Any help will be appreciated. UPDATE abc SET col1 = CASE WHEN a1_date < now() THEN "xyz" END, col2 = CASE WHEN a2_date < now() THEN "xyz" END, col3 = CASE WHEN a3_date < now() THEN "xyz" END WHERE a1_date != NULL AND a2_date != NULL asked 1 min agoDiksha Let's block ads!...
ادامه مطلبVote count: 0 I have a problem with my try/catch statement. I know it's probably an easy fix but I'm new to java. Here I want the console to prompt the user to add their initial deposit, for example, if I input something like "hello" the program will crash rather than ask again? thanks System.out.println("Please enter an initial deposit:"); try{ deposit.add(keyboard.nextInt()); }catch(NumberFormatException e){ System.out.println("Invalid input"); System.out.println("Please enter an account numbe...
ادامه مطلبVote count: 0 My localhost is seriously messed up after I uninstalled MAMP Pro. I can see the files in the folder, but I get a 404 error when I try to pull up localhost. I've tried several attempts at fixing but things may be getting worse. Now the apache server doesn't seem to be starting either. How do I get things back to normal? asked 30 secs agoFelix B Let's block ads!...
ادامه مطلبVote count: 1 I followed exactly what the documentation said: Controllers are automatically rendered with a template that makes their name. Our TeamsController would be rendered with a TeamsController.ss template. Individual actions are rendered in TeamsController_{actioame}.ss. templates/TeamsController.ss works but the ones for actions does not, for example one allowed action is someaction so I created a templates/TeamsController_someaction but is not outputting at all all I get is a blank. Ca...
ادامه مطلب