texts
list
tags
list
[ "BoxLayout: Compilation Errors", "I'm trying to make a BoxLayout layout in my program. I use Eclipse, so when I entered these lines,\n\nJTextArea fntxt = new JTextArea(1, 20);\nJTextArea lntxt = new JTextArea(1, 20);\nJButton back4 = new JButton(\"Back\");\nJButton sub2 = new JButton(\"Submit\");\nJLabel cal = new JLabel(\"Create new Account\");\nJPanel cac = new JPanel();\n//Error line:\ncac.setLayout(new BoxLayout(cac, BoxLayout.PAGE_AXIS));\n\n//In Constructor\n cal.setFont(new Font(\"Times New Roman\", Font.PLAIN, 24));\n cac.add(cal);\n cac.add(new JLabel(\"First Name:\"));\n cac.add(fntxt);\n cac.add(new JLabel(\"Last Name\"));\n cac.add(lntxt);\n cac.add(back4);\n cac.add(sub2);\n\n\nit showed these errors in the error line:\n\n- Syntax error on token \".\", @ expected after this token\n- Syntax error, insert \"Identifier (\" to complete \n MethodHeaderName\n- Syntax error, insert \")\" to complete MethodDeclaration\n- Syntax error, insert \"SimpleName\" to complete \n QualifiedName\n\n\nand when I try to run it, this comes up in the console:\n\nException in thread \"main\" java.lang.Error: Unresolved compilation problem: \n\nat Create.main(Create.java:125)\n\n\nThe 125 line is the main method declaration line.\nI can't understand what is the error and what to do to debug it." ]
[ "java", "swing", "layout", "jpanel", "boxlayout" ]
[ "How can I print object data from SimpleXMLElement Object?", "I am using php.\nHow can I get data(0d07d7d9-ccc2-4a3b-8feb-51eea7420056) from below object\n\nSimpleXMLElement Object ( [0] => 0d07d7d9-ccc2-4a3b-8feb-51eea7420056 )" ]
[ "php", "xml" ]
[ "Move amount of folders recursive to another folder in the same folder with PowerShell", "I have a root folder (a mapped network drive) to Z, in this folder I have a folder named Archive and I would like to move some folders in Z to archive folder.\n\nThe titles of folders to move I have in a csv file.\n\nI've created a PowerShell script, but somehow it does not really work, it does move one folder, but then nothing happens even in the PowerShell command, just empty and after a while nothing happens and I have to close the PowerShell window.\n\nSo if I have ten folders to copy only the first is moved and that is it.\n\nHere is the code:\n\n$currentPath = Split-Path -Parent $PSCommandPath;\n$areaCsvPath = $currentPath + \"\\CSVFile.csv\";\nwrite-host $areaCsvPath;\n\n$csv = Import-Csv $areaCsvPath;\n$count =0;\n\n$Creds = Get-Credential\n\nforeach ($row in $csv)\n{\n Get-ChildItem -Path \"Z:\\\" -Recurse |\n Where-Object {$_.name -eq $row.Title} |\n Move-Item -destination \"Z:\\_Archive\" -Credential $Creds\n\n $count++;\n write-host $count;\n\n}\n\n\nCSV is as follows\n\nTitle\n12345\n22223\n75687\n..." ]
[ "powershell", "network-drive" ]
[ "How can I print something out during onCreate", "During onCreate(), I'm downloading resources from the web, which takes time. I'd like to display a message on the screen to advise the user. I tried toast, but nothing shows up. Is there another way to print something to the screen?" ]
[ "android" ]
[ "Strange single quote escaping", "var a = \"Test \\'\"\n> undefined\nvar b = \"Test '\"\n> undefined\na === b\n> true\na\n> \"Test '\"\n\n\n\n\nYep. I know that both stings are equal ( a show it in example code ) - the question is why\n\nWhy escaping sing quote produce such strange result? Explain please.\n\nThx in advance" ]
[ "javascript", "escaping" ]
[ "in codeigniter Non-existent class: Commonlib is library file", "here is my library file\nlibraray file name Commonlib \n\n<?php\n class Commonlib extends CI_Controller\n {\n\n public function __construct()\n {\n parent::__construct();\n $ci=& get_instance();\n $ci->load->database();\n\n }\n\n function getcountries()\n {\n return $ci->db->get(\"countries\")->result();\n }\n }\n\n\nin config file \n\n$autoload['libraries'] = array('database','Commonlib');\n\n\nhere is my view\n\n$a = new Commonlib();\n$results=$a->getcountries();\nforeach ($results as $row) {\n // country_id\n echo '<a href=\"#\">'.$row->country .'</a><br>';\n}\n\n\nshow this error Non-existent class: \nwhere is trouble ? how to solve it ?" ]
[ "php", "codeigniter" ]
[ "How to AutoWire spring beans when using Mockito and Junit?", "I am trying to set up my class to be used in Junit.\n\nHowever when I try to do the below I get an error. \n\nCurrent Test Class:\n\npublic class PersonServiceTest {\n\n @Autowired\n @InjectMocks\n PersonService personService;\n\n @Before\n public void setUp() throws Exception\n {\n MockitoAnnotations.initMocks(this);\n assertThat(PersonService, notNullValue());\n\n }\n\n //tests\n\n\nError:\n\norg.mockito.exceptions.base.MockitoException: \nCannot instantiate @InjectMocks field named 'personService'\nYou haven't provided the instance at field declaration so I tried to construct the instance.\nHowever the constructor or the initialization block threw an exception : null\n\n\nHow can I fix this?" ]
[ "java", "spring", "junit", "mockito", "autowired" ]
[ "Numerical comparison in Python", "I'm working with very large numbers such as: 632382 to the power of 518061.\nWhen I try calculating it directly using Python (632382**518061), it takes a really long time.\nHowever, when I compare 2 very large numbers:\n>>> 632382**518061 > 519432**525806\nTrue\n\nPython does it very quickly.\nI assumed that in order to compare both numbers, Python would calculate them beforehand. But since the comparison is much faster than its actual calculation, Python is doing something different.\nHow is Python able to perform the comparison much faster (apparently without calculating the exact values)?" ]
[ "python" ]
[ "How can I filter data on chart in angularjs", "I am working on an angularjs project. I have to use chartjs or fusionchart for drawing charts. I use database to build chart. I want to filter data by client side. For example, user can be filter data by clicking on legend item or user can be filter data by dragging mouse on the graph. How can I do that? Also, I want to use range slider for filtering data on chart." ]
[ "angularjs", "chart.js", "fusioncharts" ]
[ "sql server clustered index on non unique keys", "We have a very large database and have been using shards which we want to get away from. The shards work by everytime a table gets really big, we start a new table that has the same schema as the previous table and keep a number in another table that helps us find which table the data is in. This is a cumbersome manual process and means we have data spread out over N different tables all with the same schema. \n\nThe idea we are trying for is to eliminate this need for sharding by using indexes. Our data lookup queries do not use unique keys and many records are returned that have the same values across columns.\n\nThe following illustrates many of our lookup selects for a particular table, the fields with the * indicate that field may or may not be in the select. \n\nwhere clause: scheduled_test, *script, *label, *error_message\n\ngroup/order: messenger_id, timeslice, script, label, error_message, step_sequence, *adapter_type\n\nMy thought is that I would not want to create an index with all of these 11 fields. I instead picked 3 of the ones that seemed to be used more commonly including the one that is always in the where clause. I had read that it is advisable not to have too wide an index with too many fields. I also had heard that the optimizer will use the indexed fields first and that it is not uncommon to have non unique indexes even though MSDN states to the effect that unique indexes is the big advantage. It's just not how our data is designed. I realize SQL will add something to the index to make it unique, but that doesn't seem to matter for our purposes. \n\nWhen I look at the execution plan in sql server management studio on a query that is similar to what we might run, it says \"clustered index seek cost 100%\", but it is using the clustered index that I created so I am hoping this is better than the default clustered index that is just the generated primary key (previously how the table was defined). I am hoping that what I have here is as good or better than our sharding method and will eliminate the need for the shards. \n\nWe do insert alot of data into the tables all at once, but these rows all have the same data values across many columns and I think they would even tend to get inserted at the end as well. These inserts don't share values with older data and if the index is just 3 columns hopefully that would not be a very big hit on the inserts.\n\nDoes what I am saying seem reasonable or what else should I look into or consider ? Thanks alot, I am not that familiar with these types of indexing issues but have been looking on various websites and experimenting." ]
[ "sql-server" ]
[ "Can I create an android, ios and web with the same codebase of kotlin", "I have created an android app with kotlin and it is on-demand to make it available for Web-app and IOS as well. So I searched on Google to find a way to do that and I got something like Kotlin for multiplatform and after reading that I got a point that it is possible to create an IOS app too with the same codebase.\nBut I don't know that the same codebase can also work for the web app or not? Or the question can be that "Is it possible to make an app for all the 3 platforms with the same codebase?"\nOr I should switch to Flutter?\nBut if I switch to flutter then I have to start migrating it from scratch. Which would be so time consuming. But I have listened, that we have to write the code for once on flutter and run it anywhere. While with kotlin I have to change many things for different platforms?\nAm I right? What would be a better approach for the long term?" ]
[ "android", "ios", "flutter", "web", "kotlin-multiplatform" ]
[ "Removing values from edges", "I have data in following format\n\nString [] data = new String[]{\"-166444026 0 file 20130801\",\n\"-166444026 0 file 20130802\",\n\"-166444027 0 file 20130802\"};\n\n\nThese are tab seperated strings.\nNow.. \nSo we have\nkey, value,type,date.\n\nWhat I want is to keep latest unique keys in the list.\nSo for example...\nThe output of this operation should be...\n\n[\"-166444026 0 file 20130802\",\n\"-166444027 0 file 20130802\"];\n\n\nBecause -166444026 is present twice but the one i removed has date of 20130801 and this one has a later date?\n\nI wrote the code.. but this just returns everything.(I thought it was suppose to remove.. but it isnt..)??\n\nAny clues?\n\npackage org.random_scripts;\n\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\nimport org.apache.hadoop.io.NullWritable;\nimport org.apache.hadoop.io.Text;\nimport org.json.simple.JSONObject;\n\npublic class Regex {\n private static boolean alreadyExists(Map<String, Long> dict, String key) {\n if(dict.containsKey(key))\n return true;\n return false;\n }\n private static void removeEdge(ArrayList<JSONObject>edgeList, String key) {\n\n for(JSONObject edge:edgeList) {\n if (edge.get(\"destination\").equals(key))\n edge.remove(key);\n }\n }\n\n public static void main(String[] args) {\n\n String [] data = new String[]{\"-166444026 0 file 20130801\",\n \"-166444026 0 file 20130802\",\n \"-166444026 0 file 20130802\"};\n\n try {\n String key = \"185479485\";\n JSONObject jsn = new JSONObject();\n jsn.put(\"source\", key.toString());\n\n ArrayList<JSONObject> edges = new ArrayList<JSONObject>();\n Map<String, Long> tracker = new HashMap<String, Long>();\n for (int i=0; i < data.length; i++) {\n String value = data[i];\n //edgeString+= value.toString()+\",\";\n String[] typeChunks = value.toString().split(\"\\t\");\n\n String destination = typeChunks[0];\n Double reputation = Double.parseDouble(String.valueOf(typeChunks[1]));\n System.out.println(tracker.values().toString());\n JSONObject edgeJson = new JSONObject();\n Long date = Long.valueOf(typeChunks[3]);\n if(alreadyExists(tracker,destination)) {\n Long prev_date = tracker.get(destination);\n System.out.println(true);\n if (date > prev_date) {\n //remove edge\n removeEdge(edges,destination);\n System.out.println(\"edges are\" + edges.toString());\n\n }\n }\n else {\n tracker.put(destination, date);\n\n }\n\n\n edgeJson.put(\"destination\", destination);\n edgeJson.put(\"reputation\", reputation);\n edgeJson.put(\"type\", typeChunks[2]);\n edges.add(edgeJson);\n\n }\n jsn.put(\"edgelist\", edges);\n System.out.println(jsn.toJSONString());\n //context.write(NullWritable.get(), new Text(jsn.toJSONString()));\n //edgeString = edgeString.substring(0,edgeString.length()-1);\n //edgeString+=\"]\";\n }\n catch (Exception e) {\n System.out.println(\"Exceptiom\");\n //context.write(NullWritable.get(),new Text(s) );\n }\n\n\n\n\n }\n\n}" ]
[ "java" ]
[ "Is there a way to maintain the serializer order?", "If I write this order for AddressRegionDetailSerializer and AvailableAreaSerializer:\n\nclass AddressRegionDetailSerializer(ModelSerializer):\n \"\"\"\n 地域详情(包含可用区域)\n \"\"\"\n availableareas = AvailableAreaSerializer(many=True, read_only=True)\n class Meta:\n model = AddressRegion\n fields = \"__all__\"\n\nclass AvailableAreaSerializer(ModelSerializer):\n \"\"\"\n 可用地区\n \"\"\"\n\n class Meta:\n model = AvailableArea\n fields = \"__all__\"\n\n\nThere will report NameError issue:\n\nNameError: name 'AvailableAreaSerializer' is not defined\n\n\nin this line:\n\navailableareas = AvailableAreaSerializer(many=True, read_only=True) \n\n\nSo, I must put the AvailableAreaSerializer in the front. \nBut however in my idea, I want to write the Serializer as the Models order, I don't want to break this law. \n\nSo, is there a simple way to maintain this order?" ]
[ "python", "django" ]
[ "Dealing with higher amount of events on angular-bootstrap-calendar", "We're currently starting to build an appointment system based on angular-bootstrap-calendar. We're curious about any performance tips or considerations we should have in mind when dealing with a relatively big amount of events (~120 per day). \n\nIs there anything in particular we should do or try to avoid in order to maintain good performance (as in responsive UI and memory consumption) on the frontend ?" ]
[ "angularjs", "calendar" ]
[ "Report Designer V2.0 Custom Code Unable to pass a parameter as type Date", "I am attempting to create a report using report designer V2.0 and have written a VB function to calculate the number of weekdays between two dates. \n\nI have written the code in vb.Net and ported it into the custom code tab within in the report.\n\nThe signature of the function looks like this\n\n Public Function CalculateWorkdays(ByVal startdate As Date, ByVal enddate As Date) As String\n Return \"Test\"\n End Function\n\n\nI then attempt to pass my report variables to this function\n\n =Code.CalculateWorkdays(CDate(Parameter.MyStartDate), CDate(Parameter.MyEndDate))\n\n\nThis fails to execute\n\nIf I change the signature to \n\n Public Function CalculateWorkdays(ByVal startdate As String, ByVal enddate As String) As String\n Return \"Test\"\n End Function\n\n =Code.CalculateWorkdays(Parameter.MyStartDate, Parameter.MyEndDate)\n\n\nThis executes and succeeds. \n\nSo rather than try and cast/convert my string dates prior to the function call I've tried to do it within the function itself e.g.\n\n Dim startdate as Date\n startdate = Date.Parse(strstartdate)\n\n\nbut any attempt to cast/convert the string to a Date type within the function fails. The strange thing is I can do things like\n\n Public Function CalculateWorkDays(ByVal strstartdate As String) As String\n Dim startDate as Date\n startDate = Today.AddDays(30)\n Return startDate.ToString()\n End Function\n\n\nAny help greatly appreciated." ]
[ "vb.net", "tfs", "vbscript", "report", "reporting-services" ]
[ "touchesBegan: inside UITableView", "I need to implement a drag and drop feature for a UIView added as a subview of UITableViewCell. I catch the drag according to MoveMe example from Apple by using touchesBegan: touchesMoved: events.\n\nThis is the view that is added inside the cell:\n\n\n\nThe gradientview is the subview of the cell. I need to move the white rectangles only (white boxes are the subviews of the orange-blue gradient view). My problem is that after a few pixels of upward or downward dragging the tableview starts to scroll. Horizontaly it is OK. Seems that the tableView catches the drag after a certain amount of drag. I need to prevent the vertical scroll until the drag is ongoing.\n\nIs there a solution to prevent this from happening?" ]
[ "ios", "uitableview", "uiview" ]
[ "Common Exposed filter for each tab in drupal 7", "I have different fields and showing in different blocks, and want to apply exposed filter to all but my problem is it shows different exposed filters for each different block. I want to make it common for each block.\n\nBelow are the steps,\n\n\nI made 5 blocks to be displayed for each buttons.\nAdded exposed filter for languages for each block.\n\n\nNow each block showing its different exposed filter.\nBut I want the exposed filter should be shown above the buttons and should work for each block display. Attached screenshot for the issue.\n\n\n\nI installed Views Global Filter but is gives Session error." ]
[ "drupal-7", "drupal-exposed-filter" ]
[ "Selecting from Type 2 Dimension based Report Start and End Date", "I have a large Type 2 Dimension table and causing performance issues in the select queries...I want to limit the Dimensions based on the report Start and End Dates ...But I am struggling to get the right query for that...Here is an example of what I am looking for...\n\n declare @DimCustomers table (CKey int, ID nvarchar(20), Customer nvarchar(50), StartDate datetime, EndDate datetime)\n\ninsert into @DimCustomers values\n(100, 'C1', 'Customer1', '2010-01-01', '2010-12-31'),\n(101, 'C1', 'xCustomer1', '2011-01-01', '2011-12-31'),\n(102, 'C1', 'xxCustomer1', '2012-01-01', '2012-12-31'),\n(103, 'C1', 'xxxCustomer1', '2013-01-01', NULL)\n\ndeclare @ReportStartDate datetime = '2010-05-01', @ReportEndDate datetime = '2011-03-01'\n\nselect \n* from @DimCustomers\n\n\nThe expectation is that when someone runs a report between '2010-02-01' and '2011-02-01', I get an out put for Ckey 100 and 101.\n\nFor a report between '2011-02-01' and current date -> 101, 102 and 103\n\nFor a report between '2015-02-01' and current date -> 103\n\nI hope that explains what I am looking for...how should my WHERE clause look like on the @DimCustomers?\n\nThanks\n\nNote: I do not want to join with the Fact Table to start with..." ]
[ "sql-server", "tsql", "type-2-dimension" ]
[ "Android- Scrollview : change layout position by dragging", "I create Scrollview with 10 layout.\nI want to change the layout position by dragging.\n\nlayout_view.setOnTouchListener(new View.OnTouchListener() { \n\n@Override\n\npublic boolean onTouch(View v, MotionEvent ev) {\nfinal int action = ev.getAction(); \n\nswitch (action) { \ncase MotionEvent.ACTION_DOWN: {\n...\n\n\nThe problem is when i dragging DOWN/UP (When I dragging right/left it's work perfect):\n\n1) MotionEvent.ACTION_CANCEL happen\n\n2) the Scrollview is moving\n\n1)How Can I disable Scrollview scrolling when I dragging my layout?\n\n2) Do you have any idea how to stay in layout without getting MotionEvent.ACTION_CANCEL?\n\nThanks" ]
[ "android", "scrollview" ]
[ "How to construct regular expression to balance characters in a string?", "I have come across regular expressions for different problems but I could not find out regex s to balance characters in a string.\n\nI came across a problem, to find if a string is balanced.\nex: aabbccdd is a balanced one, as a characters are repeated in even numbers\nbut aabbccddd is not a balanced one since ddd is repeated in odd number mode. This is applicable for all characters give an input not to specific a,b,c and d. If i give input as 12344321 or 123454321, it should return balanced and unbalanced result respectively.\n\nHow to find the balance using regex. What type of regular expression we should use to find if the string is balanced?\n\nEdit:\n\n\nI tried to find solution using regex only as the problem demands answer in regex pattern. I would implemented using any other solution if regex was not mentioned explicitly" ]
[ "java", "regex", "string", "balance" ]
[ "database encoding problem? Double and single quotes being displayed w/ question marks", "Old server db = MySQL v4.0.21\nNew server db = MySQL v5.0.45\n\nI am moving an app to a new server, and I copied over the database.\n\nThe app sends an agenda for the day and whenever there are double & single quotes \" ', they show up as question marks ?\n\nComes up like this on the server it was moved to ?The Horror of Race: HBO?s True Blood?\n\nThis is what it looks like on the original server app was built on: “The Horror of Race: HBO’s True Blood”\n\nScreenshot of database w/i phpmyadmin http://grab.by/2EsU (original server mysql v4.0.21) and http://grab.by/2EtN (new server mysql 5.0.45)\n\nScreenshot of table the data is stored within: http://grab.by/2Et2 (it only happens w/i the body column)\n\nScreenshot of data within new server table: http://grab.by/2Etb (you'll notice the question marks ?)\n\nScreenshot of data within original server table: http://grab.by/2Etl\n\nThe app is built w/ PHP, and it prints the body like nl2br($body);\n\nThe string is stored w/i the $body variable before being inserted into the db table, like this: $body=addslashes($_POST['body']);\n\nAny help as to why it is displaying the ? marks in the place of double and single quotes, would be helpful - much appreciated." ]
[ "php", "mysql", "linux" ]
[ "How to match latin and not latin characters by normalised version of string?", "How to find by Bartlomiej Zolc also string with latin version?\nMy current version matches only english version.\n\nregex101\n\n/Bartlomiej Zolc/g\n\nhello Bartłomiej Żółć match me!\nhello Bartlomiej Zolc match me too!" ]
[ "ruby", "regex" ]
[ "PHP UTF-8 mb_convert_encode and Internet-Explorer", "Since some days I read about Character-Encoding, I want to make all my Pages with UTF-8 for Compability. But I get stuck when I try to convert User-Input to UTF-8, this works on all Browsers, expect Internet-Explorer (like always).\n\nI don't know whats wrong with my code, it seems fine to me.\n\n\nI set the header with char encoding\nI saved the file in UTF-8 (No BOM)\n\n\nThis happens only, if you try to access to the page via $_GET on the internet-Explorer myscript.php?c=äüöß\nWhen I write down specialchars on my site, they would displayed correct.\n\nThis is my Code:\n\n// User Input\n$_GET['c'] = \"äüöß\"; // Access URL ?c=äüöß\n//--------\nheader(\"Content-Type: text/html; charset=utf-8\");\nmb_internal_encoding('UTF-8');\n\n$_GET = userToUtf8($_GET);\n\nfunction userToUtf8($string) {\n if(is_array($string)) {\n $tmp = array();\n foreach($string as $key => $value) {\n $tmp[$key] = userToUtf8($value);\n }\n return $tmp;\n }\n\n return userDataUtf8($string);\n}\n\nfunction userDataUtf8($string) {\n print(\"1: \" . mb_detect_encoding($string) . \"<br>\"); // Shows: 1: UTF-8\n $string = mb_convert_encoding($string, 'UTF-8', mb_detect_encoding($string)); // Convert non UTF-8 String to UTF-8\n print(\"2: \" . mb_detect_encoding($string) . \"<br>\"); // Shows: 2: ASCII\n $string = preg_replace('/[\\xF0-\\xF7].../s', '', $string);\n print(\"3: \" . mb_detect_encoding($string) . \"<br>\"); // Shows: 3: ASCII\n\n return $string;\n}\necho $_GET['c']; // Shows nothing\necho mb_detect_encoding($_GET['c']); // ASCII\necho \"äöü+#\"; // Shows \"äöü+#\"\n\n\nThe most confusing Part is, that it shows me, that's converted from UTF-8 to ASCII... Can someone tell me why it doesn't show me the specialchars correctly, whats wrong here? Or is this a Bug on the Internet-Explorer?\n\nEdit:\nIf I disable converting it says, it's all UTF-8 but the Characters won't show to me either... They are displayed like \"????\"....\n\nNote: This happens ONLY in the Internet-Explorer!" ]
[ "php", "internet-explorer", "encoding", "utf-8" ]
[ "Progress Bar While Creating Database", "I know that this has been asked before but I have a different setup.\n\nMy Sqlite Database:\n\nprivate void SetUpLibrary() {\n ArrayList<String> results = new ArrayList<String>();\n //Declare SQLiteDatabase object\n SQLiteDatabase sampleDB = null;\n\n try {\n //Instantiate sampleDB object\n sampleDB = this.openOrCreateDatabase(db.dbname, MODE_PRIVATE, null);\n //Create table using execSQL\n\n try{\n //add table\n sampleDB.execSQL(\"CREATE TABLE \" + db.tblnames[0]+ \" (disease_no INTEGER, disease_name VARCHAR, disease_desc VARCHAR, disease_symptoms VARCHAR, disease_control VARCHAR);\");\n\n\n Toast.makeText(getApplicationContext(), \"Application library has been set successfully!\", Toast.LENGTH_LONG).show();\n }catch (SQLiteException se ) {\n }\n\n } catch (SQLiteException se ) {\n Toast.makeText(getApplicationContext(), \"Couldn't create or open the database\", Toast.LENGTH_LONG).show();\n }\n\n}\n\n\nAnd my Progress bar:\n\n progressBar = (ProgressBar) findViewById(R.id.progressBar1);\n\n // Start long running operation in a background thread\n new Thread(new Runnable() {\n public void run() {\n while (progressStatus < 30) {\n progressStatus += 1;\n // Update the progress bar and display the \n //current value in the text view\n handler.post(new Runnable() {\n public void run() {\n progressBar.setProgress(progressStatus);\n // textView.setText(progressStatus+\"/\"+progressBar.getMax());\n }\n });\n try {\n // Sleep for 200 milliseconds. \n //Just to display the progress slowly\n Thread.sleep(200);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }).start();\n\n\nAnd here's the XML:\n\n<ProgressBar\n android:id=\"@+id/progressBar1\"\n style=\"?android:attr/progressBarStyleHorizontal\"\n android:layout_width=\"wrap_content\"\n android:layout_height=\"wrap_content\"\n android:layout_below=\"@+id/bStart\"\n android:layout_centerHorizontal=\"true\"\n android:layout_marginTop=\"42dp\"\n android:indeterminate=\"false\"\n android:max=\"30\"\n android:minHeight=\"50dp\"\n android:minWidth=\"200dp\"\n android:progress=\"1\" />\n\n\nI wanna ask how to make progress bar work while setting up the SQLite Database. I have tried some suggestions but none of them worked." ]
[ "android" ]
[ "SAS Forecast Studio code download", "SAS Forecast Studio is a programming tool that is used for business intelligence forecasting. It (presumably) generates SAS code on the back end that then produces the output.\n\nIs there any way to get access to the generated SAS code that was used to produce the output, and save it as a .SAS file, a program in the project, or to the clipboard?" ]
[ "sas" ]
[ "Jquery.form AjaxSubmit adding tags to response?", "When I ajaxSubmit a form, the service returns a number. For some reason, ajaxSubmit seems to add a bunch of tags to it.\n\n form.ajaxSubmit(function(data){\n alert(data);\n });\n});\n\n\nHere, the alert prints out: \"<head></head><body><pre style=\"word-wrap: break-word; white-space: pre-wrap;\">130</pre></body>\"\n\nWhereas if I check in my debugger, the value is simply 130.\n\n\n\n\nI have made the assumption that since the service seems to return a correct value, this issue is caused only on the clientside. Please correct me if I'm wrong.\n\nWhy is the value different in the javascript from that in the response?" ]
[ "javascript", "jquery", "jquery-forms-plugin" ]
[ "Why svg blur dosen't work in html or browser?", "I'm using Figma editor and I tried to blur element, in the editor everything looks fine, then I export it into SVG. I see that there are tags that should make my element blur <feGaussianBlur in="BackgroundImage" stdDeviation="16"/>\nBut it dosen't work, look in the href.\n\nJSFiddle\nDunno why it doesn't work. I also can not find information about it is there HTML reason or the browser." ]
[ "html", "svg", "user-experience", "svg-filters" ]
[ "Select rows with similar value in one column", "I have a table called trades and has a field session id. The table has specific rows with a similar session id. This reason some rows have a similar session id is that when a trade is placed, it takes an existing session id.\n\nI now want to select rows with similar sessions ids and do something with it.\n\nThis is my first query that lists all the rows\n\nSELECT * FROM trades \nwhere trade_session_status=\"DONE\" AND \n trade_profit_worker_status=\"UNDONE\" \n\n\nI have tried this query as well\n\nSELECT * FROM trades \nwhere trade_session_status=\"DONE\" AND \n trade_profit_worker_status=\"UNDONE\" \norder BY(session_id)\n\n\nI have looked at the distinct queries and came up with this query\n\nSELECT DISTINCT session_id,id \nFROM trades \nWHERE trade_session_status=\"DONE\" AND \n trade_profit_worker_status=\"UNDONE\" \nORDER BY session_id\n\n\nThe #2 and #3 queries all return the same number of rows. My question is,will the #2 and #3 queries always return the rows with distinct session_id without leaving any rows out?." ]
[ "mysql" ]
[ "One @ in email address", "I want there to only be one at sign allowed in the email address and also to only contain ( a-z,A-Z, underscores (_), dot(.) and dash (-)). This is what i have so far. \nThanks\n\nvar email = document.forms[\"register\"][\"email\"].value;\nvar atpos = email.indexOf(\"@\");\nvar dotpos = email.lastIndexOf(\".\");\n\nif (atpos < 3 || dotpos < atpos + 4 || dotpos + 2 >= email.length)\n{ \n alert(\"You have not entered a valid Email address, please check for mistakes and re-submit\");\n return false;\n}" ]
[ "javascript", "validation" ]
[ "Why can't I embed a PDF from my local machine on my website?", "I'm working on a website where the users can solve a practice exam.\nMy client wants to include a div next to the exam with a PDF viewer.\nThe idea is that the user can select a PDF file from his local machine and it will be loaded into the PDF viewer next to the exam.\nI made it work using pdf.js and pdfobject.\nThe problem is that both options require the PDF file to be uploaded to our server.\n\nDue to intellectual property law, that is unacceptable to our client.\nThey want the PDF file to be embeded without uploading it to our server. So it has to be loaded directly from the user's machine.\nI found that it can't be done. All the plugins I tried require a virtual url, and will not accept a physic one (file:///local/path/file.pdf).\n\nI don't want to just tell my client \"it can't be done\". I would like to know a technical explanation of why can't it be done.\n\nIf somebody knows a way to make it work it would be better!" ]
[ "javascript", "pdf", "embedding" ]
[ "String to string array conversion in Python", "I have a string: \n\n\n [('I', 'PRP'), ('have', 'VBP'), ('lost', 'VBN'), ('a', 'DT'), ('pant', 'NN')]\n\n\nNow I need to take the words in between single quotes in an array. as example: \n\n\n array1[0] = I \n array1[1] = PRP \n array1[2] = have \n array1[3] = VBP\n And so on ... \n\n\n\nThe number of entries [assuming ('x', 'y') makes an entry] is variable in the original string. And the array needs to be a string array, not something like numpy ndarray. Now, how to do that with Python?\n\nI also have a List object just like the original string. If the same result can be achieved by processing the list object, that would also work fine." ]
[ "python", "arrays", "string" ]
[ "Printing guarantee of uintX_t and intX_t types", "I want to know whether there is a standard if I use uint16_t type for a variable and want to print it out on screen by using std::cout <<, it is printed as number not char. I read on some tutorial websites that uint8_t or int8_t prints doesn't guarantee as character or number. Yet, I can't find any clause or quotation from standard. Do I need always casting to be sure to get the wished output for all these mentioned types?" ]
[ "c++", "c++11", "c++17" ]
[ "How to know if a resource is protected in a jsr-196 auth module?", "I wrote a custom JSR-196 module, which combines multiple mechanisms to protect resources.\n\nIt works quite well if authentication is provided.\n\nNow, if a protected resource is accessed and authentication isn't provided, I'd like to redirect my user to some login page.\n\nHow can I know that a resource is protected? I don't want to redirect for unprotected images or for the login page itself. I used web.xml to allow unrestricted access to that. For those pages, sending AuthStatus.SUCCESS seems to be the only way to display them. I'd rather think I need to send AuthStatus.SEND_CONTINUE. And I'd need a way to tell if I need to restrict access on those.\n\nI'm using Glassfish 3.1." ]
[ "java", "jakarta-ee", "glassfish" ]
[ "C# Excel import data from CSV into Excel", "How do I import data in Excel from a CSV file using C#? Actually, what I want to achieve is similar to what we do in Excel, you go to the Data tab and then select From Text option and then use the Text to columns option and select CSV and it does the magic, and all that stuff. I want to automate it. \n\nIf you could head me in the right direction, I'll really appreciate that.\n\nEDIT: I guess I didn't explained well. What I want to do is something like\n\nExcel.Application excelApp;\nExcel.Workbook excelWorkbook;\n\n// open excel\nexcelApp = new Excel.Application();\n\n// something like\nexcelWorkbook.ImportFromTextFile(); // is what I need\n\n\nI want to import that data into Excel, not my own application. As far as I know, I don't think I would have to parse the CSV myself and then insert them in Excel. Excel does that for us. I simply need to know how to automate that process." ]
[ "c#", "excel", "csv", "import", "vsto" ]
[ "Error to install PM2 globally on Ubuntu Server 20.04LTS", "I have a VM running Ubuntu Server 20.04LTS and I want to run a nodejs program using PM2. I'm having problems to install pm2 npm install -g pm2@latest and sudo npm install -g pm2@latest. \n\nnpm ERR! code ENOENT\nnpm ERR! syscall chmod\nnpm ERR! path /usr/lib/node_modules/pm2/node_modules/mocha/node_modules/mkdirp/bin/cmd.js\nnpm ERR! errno -2\nnpm ERR! enoent ENOENT: no such file or directory, chmod '/usr/lib/node_modules/pm2/node_modules/mocha/node_modules/mkdirp/bin/cmd.js'\nnpm ERR! enoent This is related to npm not being able to find a file.\nnpm ERR! enoent \n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR! /root/.npm/_logs/2020-06-04T18_01_48_656Z-debug.log\n\n\n\nPs: I tried npm install -g npm@latest and cleaning npm cache but nothing seems to work. The error says that this file doesn't exist but despite knowing that, I don't know what I can do or what is causing the problem. I don't know if this affects something but I'm on root mode" ]
[ "node.js", "npm", "pm2", "ubuntu-server" ]
[ "Recursion using repeat controls and custom controls", "I am trying to generate a hierarchical list of categories and sub-categories on an X-Page. So far I have attempted two methods:\n\nThe first, which works, is based on code by Jesse Gallagher in this blog post and that outputs the list in exactly the order I want it using an xe:outline control. However, I want be able to add extra functions and styling to each entry (e.g. edit and delete links) but can't work out how to render custom controls within the outline control.\n\nThe second method is trying to leverage nested repeats and custom controls to generate the list but for the life of me I can't quite get this work and I don't know if it's because it just won't work or I'm just missing something fundamental. The basic code for the XPage is:\n\n<xp:view xmlns:xp=\"http://www.ibm.com/xsp/core\" xmlns:xc=\"http://www.ibm.com/xsp/custom\">\n<xp:this.data>\n <xp:dominoView var=\"Categories\" viewName=\"vLUTopCat\"></xp:dominoView>\n</xp:this.data>\n\n<xc:ccUI navigationPath=\"Admin/Main\" pageName=\"Admin\">\n <xp:this.facets>\n <xp:panel xp:key=\"facetMiddle\">\n <h2>Categories</h2> \n <ul id=\"adminCatList\">\n <xp:repeat id=\"parentCat\" rows=\"30\" value=\"#{Categories}\" var=\"DocCat\" indexVar=\"catIdx\" disableOutputTag=\"true\"> \n <xc:ccCategoryList>\n <xc:this.catID><![CDATA[#{javascript:DocCat.getColumnValue(\"docID\")}]]></xc:this.catID>\n <xc:this.catName><![CDATA[#{javascript:DocCat.getColumnValue(\"categoryName\")}]]></xc:this.catName>\n </xc:ccCategoryList> \n </xp:repeat>\n </ul>\n </xp:panel>\n </xp:this.facets>\n</xc:ccUI>\n\n\n\n\nand the code for the custom control (ccCategoryList) is:\n\n<xp:view xmlns:xp=\"http://www.ibm.com/xsp/core\" xmlns:xc=\"http://www.ibm.com/xsp/custom\">\n\n\n<xp:text escape=\"true\" id=\"computedField1\"\n value=\"#{compositeData.catName}\" tagName=\"li\" />\n<xp:repeat id=\"rptSubCat\" rows=\"30\" var=\"subCat\"\n disableOutputTag=\"true\">\n <xp:this.facets>\n <xp:text disableTheme=\"true\" xp:key=\"header\"\n escape=\"false\">\n <xp:this.value><![CDATA[<ul>]]></xp:this.value>\n </xp:text>\n <xp:text disableTheme=\"true\" xp:key=\"footer\"\n escape=\"false\">\n <xp:this.value><![CDATA[</ul>]]></xp:this.value>\n </xp:text>\n </xp:this.facets>\n <xp:this.value><![CDATA[#{javascript:var tview = database.getView(\"vLUSubCat\");\nvar v = compositeData.catID;\nvar vc:NotesViewEntryCollection = null;\nif (v != null) {\nvc = tview.getAllEntriesByKey(v);\n}\nvc}]]></xp:this.value>\n <xc:ccCategoryList>\n <xc:this.catID><![CDATA[#{javascript:subCat.getColumnValues()[3]}]]></xc:this.catID>\n <xc:this.catName><![CDATA[#{javascript:subCat.getColumnValues()[1]}]]></xc:this.catName>\n </xc:ccCategoryList>\n</xp:repeat>\n</xp:view> \n\n\nSo my related questions are:\n\n\nIs there anyway to output a custom control in an xe:outline control using a bean node?\nCan I use repeats and custom controls to recursively output data from views like I can using a bean node?\nIs there a better alternative method I'm overlooking (e.g. using a Java Collection in a bean and a repeat control?)\n\n\nThanks" ]
[ "xpages" ]
[ "How to encapsulated sql field result with quotations", "What command can be used to encapsulate the results outputted to a file with uotations as shown below :\n\n\"Name\" \"Surname\"\n\"Joe\" \"Soap\"" ]
[ "sql", "sqlcmd" ]
[ "Pandas - Add values from series to dataframe column based on index of series matching some value in dataframe", "Data\n\npb = {\"mark_up_id\":{\"0\":\"123\",\"1\":\"456\",\"2\":\"789\",\"3\":\"111\",\"4\":\"222\"},\"mark_up\":{\"0\":1.2987,\"1\":1.5625,\"2\":1.3698,\"3\":1.3333,\"4\":1.4589}}\ndata = {\"id\":{\"0\":\"K69\",\"1\":\"K70\",\"2\":\"K71\",\"3\":\"K72\",\"4\":\"K73\",\"5\":\"K74\",\"6\":\"K75\",\"7\":\"K79\",\"8\":\"K86\",\"9\":\"K100\"},\"cost\":{\"0\":29.74,\"1\":9.42,\"2\":9.42,\"3\":9.42,\"4\":9.48,\"5\":9.48,\"6\":24.36,\"7\":5.16,\"8\":9.8,\"9\":3.28},\"mark_up_id\":{\"0\":\"123\",\"1\":\"456\",\"2\":\"789\",\"3\":\"111\",\"4\":\"222\",\"5\":\"333\",\"6\":\"444\",\"7\":\"555\",\"8\":\"666\",\"9\":\"777\"}}\npb = pd.DataFrame(data=pb).set_index('mark_up_id')\ndf = pd.DataFrame(data=data)\n\n\nExpected Output\n\ntest = df.join(pb, on='mark_up_id', how='left')\ntest['cost'].update(test['cost'] + test['mark_up'])\ntest.drop('mark_up',axis=1,inplace=True)\n\n\nOr..\n\ndf['cost'].update(df['mark_up_id'].map(pb['mark_up']) + df['cost'])\n\n\nQuestion\n\nIs there a function that does the above, or is this the best way to go about this type of operation?" ]
[ "python", "pandas" ]
[ "Runtime error 1004 application-defined or object-defined error", "Private Sub cmb_Cancell_Click() '\n\n Unload uf_Estes\n \n \nEnd Sub\n\nPrivate Sub cmb_Enter_Click() \n \n Me.Hide\n \n wsEstes.Select\n Range("F187").End(xlDown).Offset(1, 0).Select\n \n ActiveCell.Value = txt_Truck.Value \n ActiveCell.Offset(0, 1).Value = txt_PU_Timein.Value\n ActiveCell.Offset(0, 2).Value = txt_PU_Timeout.Value\n ActiveCell.Offset(0, 3).Value = txt_PU_Trailerin.Value\n ActiveCell.Offset(0, 4).Value = txt_PU_Trailerout.Value\n ActiveCell.Offset(0, 5).Value = txt_Manifest.Value\n ActiveCell.Offset(0, 9).Value = txt_DEL_Timein.Value\n ActiveCell.Offset(0, 10).Value = txt_DEL_Timeout.Value\n ActiveCell.Offset(0, 11).Value = txt_DEL_Trailerin.Value\n ActiveCell.Offset(0, 12).Value = txt_DEL_Trailerout\n\n \nEnd Sub\n\nPrivate Sub UserForm_Initialize() \n\n txt_Truck.Value = 0\n \nEnd Sub\n\nPrivate Sub UserForm_Terminate() \n\n wsForm.Select\n\nEnd Sub\n\ni have this code , i am new to vba , i get run time error and debuger points to this line- Range("F187").End(xlDown).Offset(1, 0).Select\n---any suggestions..." ]
[ "excel", "vba" ]
[ "Disabling some options in select using jQuery", "I have the following html code:\n\n<select class=\"pointSelect\" id=\"mySelect\" tabindex=\"2\" name=\"mySelect\">\n <option value=\"01\" selected=\"selected\">Choose Country</option>\n <option>United States</option>\n <option>Canada</option>\n <option>United Kingdom</option>\n <option>Czech Republic</option>\n <option>Any other Country</option>\n</select>\n\n<select class=\"pointSelect\" id=\"mySelect1\" tabindex=\"3\" name=\"mySelect1\">\n <option value=\"nothing\" selected=\"selected\">Choose Shipping Options</option>\n <option>Free Shipping</option>\n <option>Registered Airmail</option>\n <option>Express Shipping</option>\n</select>\n\n\nand the following jQuery code:\n\n$(\"#mySelect\").change(function() {\n debugger;\n var index = $(this).find(\"option:selected\").index();\n $(\"#mySelect1\").find(\"option:lt(\"+index+\")\").attr(\"disabled\",\"disabled\");\n $(\"#mySelect1\").find(\"option:gt(\"+index+\")\").removeAttr(\"disabled\");\n});\n\n\nDemo jsFiddle\n\nHow can i disable Free Shipping only for \"Any other country\"." ]
[ "javascript", "jquery" ]
[ "WordPress - How to add something after first paragraph in get_the_content()", "Can someone tell me how to change my code to work with get_the_content() function? I was trying to change \"the_content\" to \"get_the_content\", but it's not working.\n\n//Insert ads after first paragraph of single post content.\nadd_filter( 'the_content', 'prefix_insert_post_ads' );\n function prefix_insert_post_ads( $content ) {\n\n $ad_code = '<div>Ads code goes here</div>';\n\n if ( is_single() && ! is_admin() ) {\n return prefix_insert_after_paragraph( $ad_code, 1, $content );\n }\n\n return $content;\n}\n\n// Parent Function that makes the magic happen\nfunction prefix_insert_after_paragraph( $insertion, $paragraph_id, $content ) {\n $closing_p = '</p>';\n $paragraphs = explode( $closing_p, $content );\n foreach ($paragraphs as $index => $paragraph) {\n\n if ( trim( $paragraph ) ) {\n $paragraphs[$index] .= $closing_p;\n }\n\n if ( $paragraph_id == $index + 1 ) {\n $paragraphs[$index] .= $insertion;\n }\n }\n\n return implode( '', $paragraphs );\n}" ]
[ "php", "wordpress" ]
[ "Clone a remote branch in remote", "I already had a remote branch mainline on origin and now I would like to clone another remote branch (call it mainline-clone) from mainline on origin.\n\nThis is what I plan to do:\n\ngit checkout -b mainline-clone origin/mainline\n\ngit push -u origin mainline-clone\n\nBut I am not sure this is the right way to go since mainline-clone is initially set up to track origin/mainline, is there any side effect to the origin/mainline branch after git push -u origin mainline-clone? (I just want to make sure origin/mainline would be intact after this git push).\n\nThank you." ]
[ "git" ]
[ "ASP.NET Core policy to allow all HttpGet requests", "I have been asked to create a read-all policy for my API. Can I Create a filter of some kind that allows all HttpGet actions?\nI have this polices that I apply manual on each controller/actions\npublic static void AddPolicies(this IServiceCollection services)\n {\n services.AddAuthorization(options =>\n {\n // APP_CE_READER\n options.AddPolicy("Reader", policy =>\n policy.RequireClaim("group", "89625d9c-6c0f-490e-8fe5-a06584b7a022"));\n // APP_CE_EDIT_CUSTOMER\n options.AddPolicy("EditCustomer", policy =>\n policy.RequireClaim("group", "5f56395d-99d7-4f96-bc89-08e7c2206fc7"));\n // APP_CE_EDIT_AGREEMENT\n options.AddPolicy("EditAgreement", policy =>\n policy.RequireClaim("group", "44cd2c55-9f78-440b-a77e-708e466433b4"));\n });\n }" ]
[ "asp.net-core" ]
[ "Console is undefined error in IE9", "I have a graphics page which shows SVG graphics. I am using Raphael graphics framework. The page displays properly in Firefox, Also if the F12 developer tools is set 'on' in IE9 it works fine. \nThe map show partial data (its a node link diagram and it shows only one child node out of 12 nodes) in IE9 if the F12 developer mode is set off and application is started with browser cache cleared (simulating a general user).\n\nUpdate: I kept the Debugger on and Shows me the error \"Console is undefined\". So I think its not a graphics rendering issue, and also I am not using the console explicitly, maybe the mindmap js is using it internally, but how to again get rid of this issue?\n\nUpdate:\nI found the issue and commented out the console.log entries from the js files.\n\nThanks." ]
[ "javascript", "console", "internet-explorer-9" ]
[ "How to get strings in parentheses into array with java", "Lets say I have string like this:\n\nString q = \"foo (one) bla (two) zoo key hola (tree) (four) five\"\n\n\nI want to extract the strings in parentheses into string array\n\nso this would be true:\nstringArray[3].equals(\"four\") \n\n\nIs there something in commons package or other trick to do this?" ]
[ "java", "string", "extract", "apache-commons" ]
[ "Redirect request from specific domain", "Hey guys,\nEx: - root domain - domain.com\nA link on example.net leads to domain.com\n\nCould that request be redirected to domain.com/redirect/ and allow requests from other domain names to access domain.com with no redirection?\n\nThank you for your time and help!" ]
[ "redirect", "dns" ]
[ "WordPress 4.4 Image Conflict with Srcset and Bxslider", "Our company has multiple sites utilizing Wordpress with an installation of Genesis, a custom Genesis child theme, and bxslider for image sliders.\n\nWhen viewing the slider specifically on Firefox, there are appears to be a conflict with the responsiveness, we believe which is attributed to the new srcset responsive image classes in Wordpress 4.4.\n\nUpon loading a site, for example http://brightervisiontheme.com/ only about 50 pixels of the slider image appear. Upon resizing the browser, the issue is resolved and the slider regains its normal responsive qualities and height. Also, if you open Inspect Element the size rights itself.\n\nTesting sites that were not updated to 4.4, the issue does not appear, so we are assuming it is Bug in relation to the new installation.\n\nBut we aren't sure and can't figure out how to fix.\n\nAny help?" ]
[ "jquery", "css", "wordpress", "bxslider", "genesis" ]
[ "Failed to execute 'addEventListener' on 'EventTarget'", "I struggle with a javascript error, that I cannot get rid of: Uncaught TypeError: Failed to execute 'addEventListener' on 'EventTarget': The callback provided as parameter 2 is not an object.\n\nThis is the script, that is used in a cookie consent module after the tag:\n\nwindow.addEventListener(\"load\", setTimeout( function(){\n window.cookieconsent.initialise({ \n \"palette\": { \"popup\": {\"background\": \"#DCDCDC\"}, \n \"button\": {\"background\": \"#9bba44\"}\n }, \n \"position\": \"bottom-right\", \n \"content\": { \"message\": \"We use cookies.\", \n \"accept\": \"Accept all\", \n \"deny\": \"Decline all\",\n \"link\": \"Find out more.\" } \n })\n}, 3000));\n</script>\n\n\nIf needed I can look into cookieconsent.initialise, but the error may be something else, more trivial to anyone with experience. \nWhat is the second parameter here?" ]
[ "javascript" ]
[ "OpenCL Implementation for Intel Core i5 (linux)", "My laptop's processor is intel core-i5, and am running ubuntu on it. I visited the page: http://software.intel.com/en-us/vcsource/tools/opencl , but I found that the intel opencl implementation does not support the configuration I have.\n\nCan someone please let me know of an opencl implementation which will work for my machine." ]
[ "linux", "opencl", "intel" ]
[ "SQL Server Tables Relationship in Access", "I connected a sql server through ODBC and lined sql tables. I manually created my relationships in my database but, when I do that, my other tables are not editable. My drop downs I created won't allow me to select it or my text box doesn't let me type in it. \n\nHow am I supposed to create a relationship so I can use Access as a front-end to enter in data into the database?" ]
[ "sql-server", "ms-access-2007", "relational-database" ]
[ "Method load fails in codeigniter 3", "I was using codeigniter 2.2.1. And now codeigniter 3 released. I just tried it and ended up with error.\n\nWhen I try to load method as in codeigniter2.x, it shows \n\nUnable to locate the model you have specified: Demo\n\n\nwhere Demo is my method file.\n\nController - welcome.php\n\n<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\nclass Welcome extends CI_Controller {\n\n public function __construct() {\n parent::__construct();\n $this->load->model('demo');\n }\n\n public function index() {\n $data = $this -> demo ->check();\n print_r($data);\n }\n\n}\n\n\nModel - demo.php\n\n<?php\nif (!defined('BASEPATH'))\nexit('No direct script access allowed');\n\nclass Demo extends CI_Model {\n\n public function __construct() {\n $this->load->database();\n }\n\n}\n\n\nI can't figure-out what is wrong with this code. Please help. Thank you in advance..\n\nEdit:- This is works well in my wamp machine. But I am checking it now in another local machine where my institute host the websites. There it is not working" ]
[ "php", "codeigniter", "model", "codeigniter-3" ]
[ "Ease rotation and position of MovieClip to mouse, math help", "Essentially what I'm trying to do is nearly the same as this:\nhttp://www.senocular.com/flash/source/?id=0.16\n\nHowever I'd like to ease/tween the movieclip position and rotation to the mouse position.\n\nThe main issue I see is trying to get the current movieclip rotation and the target rotation, then tween it cockwise or counterclockwise from current to target. The way a movieclips rotation uses positive and negative numbers throws it off. If you just want to lock the mc rotation to the mouse rotation its fine, but once you try to tween it you run into difficulties.\n\nSo the end effect would be like if you were to draw imaginary clockwise circles around the object, it should just keep rotating clockwise towards the mouse. Then if you started going counter clockwise it should just keep easing counter clockwise to the mouse.\n\nThanks for any help." ]
[ "flash", "actionscript-3", "actionscript" ]
[ "Docker Update old pem file", "So far I have generated my own pem file and moved it to my ubuntu virtual machine on azure resources group which has one of our backend api.\n\nafter running docker secret ls I have got to know there is one .pem key which was created an year ago and has to be updated with the new one that I have in my /home/cert/cert.pem directory.\n\nI have read the docker documentation and it says I have to start with docker secret create but my concern is I have already my own .pem and just need to update it with old one.\n\nHow can do I it and is it safe to do that? my concern is to update old SSL expired certificate with new one" ]
[ "docker", "ssl", "azure-devops" ]
[ "Date partition size 10GB read efficiently", "We are using Cassandra DataStax 6.0 and Spark enabled. We have 10GB of data coming every day. All queries are based on date. We have one huge table with 40 columns. We are planning to generate reports using Spark. What is the best way to setup this data. Since we keep getting data every day and save data for around 1 year in one table. \n\nWe tried to use different partition but most of our keys are based on date. \n\nNo code just need suggestion\n\nOur query should be fast enough. We have 256GB Ram with 9 nodes. 44 core CPU." ]
[ "apache-spark", "cassandra", "apache-spark-sql", "datastax", "datastax-enterprise" ]
[ "UITableView Deleteing row error", "I am a newbie to iPhone app development. So please go easy with me :)\n\nI was trying to implement delete row from UItableView when i get this error, which i am not able understand why\n\nInvalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (6) must be equal to the number of rows contained in that section before the update (4), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted).'\n\n\nHere is my code to delete item method\n\n-(void)deleteItem:(NSIndexPath *)path{\nItem *i = (Item *)[list objectAtIndex:path.row];\nNSLog(@\"Deleting item [%@]\", i.iName);\nint ret;\n\nconst char *sql = \"delete from items where id = ?;\";\nif (!deleteStmt)\n{ // build update statement\n if ((ret=sqlite3_prepare_v2(db, sql, -1, &deleteStmt, NULL))!=SQLITE_OK)\n {\n NSAssert1(0, @\"Error building statement to delete items [%s]\", sqlite3_errmsg(db));\n }\n}\n\n// bind values to statement\nNSInteger n = i.iId;\nsqlite3_bind_int(deleteStmt, 1, n);\n// now execute sql statement\nif ((ret=sqlite3_step(deleteStmt)) != SQLITE_DONE)\n{\n NSAssert1(0, @\"Error deleting item [%s]\", sqlite3_errmsg(db));\n}\n\n// now reset bound statement to original state\nsqlite3_reset(deleteStmt);\n\n[list removeObjectAtIndex:path.row]; // remove from table\n[self readTable]; // refresh array\n\n\n}\n\nand this is the commitediting style of the UITableView\n\n- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {\n\nif (editingStyle == UITableViewCellEditingStyleDelete) {\n [appDelegate deleteItem:indexPath];\n[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];\n } \n}\n\n\nCan someone please tell me what i am doing wrong. From what i understand the number of rows in the section is not updated. Am i right ??\n\nThanks in advance." ]
[ "iphone", "objective-c", "xcode", "uitableview" ]
[ "Kendo MVC line chart tooltip from model", "In a Kendo MVC line chart, when the user hovers over a point, I'd like to display several custom values, resulting in a tooltip looking something like:\n\nDate produced: 10/18/2018\nQuality value: A+\nGrade: STD\n\n\nObviously, each point would display different values. I've seen other posts that refer to template dataitem, but can't figure out how to populate the dataitem. Can someone steer me in the right direction?\n\nThx,\nSteve." ]
[ "kendo-asp.net-mvc", "linechart" ]
[ "ExtJS mask a TreePanel without toolbar", "Im trying to mask a tree panel without the toolbar so that the user can keep typing as the panel is masked. This seems to be harder than I thought so some suggestions would be great!\n\nAlthough its prob not necessary, Here is my (stripped down) base tree panel:\n\nExt.tree.TreePanel({\n id:'quicksearch_panel',\n root:{\n nodeType:'async', \n preloadChildren:false \n },\n loader: new Ext.tree.TreeLoader({\n dataUrl:'...', \n baseParams:{} \n }),\n tbar:['Quicksearch:', { \n xtype:'textfield',\n id:'quicksearch_combo',\n emptyText: 'search...',\n listeners:{\n keyup:{buffer:400, fn:function(field, e) {\n\n // Mask Panel and not Combo HERE\n }} \n }\n }]\n});" ]
[ "javascript", "extjs" ]
[ "How do I include .html files in the Typescript compilation process when outputting to another directory", "I have built an application which has the following file structure:\n\n\n\nI am using Typescript and Angular2 for this application. I have watchers on the .ts files where when anything changes, typescript files are automatically compiled. The .ts files are in the /assets/app folder and the output directory for the transpiled .js files is the /public app file.\n\nThis is working fine but when CRUD'ing any .html files I have to edit these directly in the /public/app files as they do not get transpiled due to being .html and not .ts files.\n\nI was wondering (as fairly new to Angular2 and Typescript) if there is any way of having the html view files automatically moved across to the public folder whilst they are being created and updated? \n\nThis is my current npm command which watches for changes on the NodeJS and .ts files:\n\n\"start\": \"concurrently \\\"tsc -w \\\" \\\"nodemon ./bin/www\\\"\",\n\n\nThanks" ]
[ "node.js", "typescript" ]
[ "How to compare two long value at runtime in java", "How to compare two long value at runtime. When I got the value of both of long type variable at runtime which same so it should be print else part but the both value is different from each other so it should be print if part. \n\nLong dbData = 54188439.... // Got the value at run time\nLong spreadSheet = 54188439.....//Got the value at run time\n\nif(dbData != spreadSheet)\n{\nLog.i(\"\",\"Please update your contact\");\n}\nelse\n{\nLog.i(\"\",\"Not required\");\n} \n\n\nHere I always got if part whatever be the condition. Please help me out." ]
[ "java", "if-statement", "runtime", "long-integer" ]
[ "Java Infix to Postfix method using queue and stack not working", "I'm trying to convert infix to postfix expressions in Java, but somehow it's not reading it in correctly or there might be something wrong with my queue implementation. I tried debugging but I can't see where I went wrong.\n\nInputs:\n\n2 + 3\n\n4 + 5+6\n\n(7+8) * 9\n\nOutput:\n\n2+\n\n4+5\n\n78\n\nCorrect outputs would be:\n\n23+\n\n45+6+\n\n78+9*\n\nThis is my code: \n\npublic int Prior (char c) {\n\n if (c == '/' || c == '*')\n return 2;\n else if (c == '+' || c == '-')\n return 1;\n else\n return 0;\n\n}\n\npublic String convertIn2Post() throws StackException, QueueException{\n\n infix = infix.trim();\n for(int i = 0; i < infix.length(); i++) {\n\n if(Character.isDigit(infix.charAt(i))) {\n\n expQueue.enqueue(infix.charAt(i) + \"\");\n\n }\n if (infix.charAt(i) == '(') {\n\n opStack.push(infix.charAt(i) + \"\");\n\n }\n if (infix.charAt(i) == ')') {\n\n while(opStack.peek().equals(\"(\") != true) {\n\n expQueue.enqueue(opStack.pop());\n\n }\n opStack.pop();\n\n }\n if ( infix.charAt(i) == '+' || \n infix.charAt(i) == '-' ||\n infix.charAt(i) == '/' ||\n infix.charAt(i) == '*' ) {\n\n if(opStack.isEmpty()){\n opStack.push(infix.charAt(i) + \"\");\n }\n while(Prior(infix.charAt(i)) <= Prior(opStack.peek().charAt(0))){\n\n expQueue.enqueue(opStack.pop());\n\n if(opStack.isEmpty()){\n break;\n }\n }\n\n }\n\n\n }\n\n while(!opStack.isEmpty()){\n expQueue.enqueue(opStack.pop());\n }\n\n for(int y = 0; y < expQueue.size(); y++){\n postfix += expQueue.dequeue();\n }\n\n\n return \"postfix:: \" + postfix;\n\n\n }" ]
[ "java", "stack", "infix-notation" ]
[ "How can I delay the presentation of a DisplayAlert to a user?", "I have code that presents the user with a dialog box:\n\n public async Task ReviewAppAsync(int count)\n {\n if (count == 0 || await MainPage.DisplayAlert(\"Review\", \"abc\", \"Yes\", \"No\"))\n {\n // some code here\n }\n }\n\n\nReviewAppAsync is called from the onStart of my application like this:\n\n await ReviewAppAsync(Settings.Trk2);\n\n\nIs there a way that I could delay the presentation of the DisplayAlert to the user by 60 seconds?" ]
[ "c#", "xamarin", "xamarin.forms" ]
[ "How to avoid init_per_suite and end_per_suite to be counted as test cases in Common Test?", "I have a test suite which has the init and end functions implemented in it.\n\nWhen I run the suite it produces some html outputs to show the results of the test cases (pass and fail etc.) from the suite. \n\nBut in the log the init_per_suite and end_per_suite are also counted as test cases and their run result is shown in the log. Is there a way to avoid this? I guess there might be a flag in Erlang common test which can be used to disable this." ]
[ "erlang", "common-test" ]
[ "Prestashop - Product default combination doesn't want to save", "I'm relatively new with working with Prestashop and I cannot fix one problem.\n\nAfter deleting one combination for a product new default combination doesn't want to save and therefore the price showing on the website is not correct. \n\nAny ideas how to fix it?\n\nThanks!" ]
[ "prestashop" ]
[ "How to insert multiple days into a calendar intent?", "I'm trying to set up an intent to prepopulate an event in the calendar app with the days the user selects. Here is the intent: \n\n Calendar cal = Calendar.getInstance();\n Intent intent = new Intent(Intent.ACTION_EDIT);\n intent.setType(\"vnd.android.cursor.item/event\");\n intent.setData(CalendarContract.Events.CONTENT_URI);\n intent.putExtra(\"beginTime\", cal.getTimeInMillis());\n intent.putExtra(\"allDay\", false);\n intent.putExtra(CalendarContract.Events.RRULE, \"FREQ=WEEKLY;BYDAY=\" + duration );\n intent.putExtra(\"endTime\", cal.getTimeInMillis()+60*60*1000);\n intent.putExtra(CalendarContract.Events.TITLE,name + \" Reminder\" );\n mContext.startActivity(intent);\n\n\n\"Duration\" Can contain the names of the days in the following format.\"Monday, Tuesday, Wednesday, etc\".The problem is from what I've seen so far BYDAY is in the formation of MO, TU, WE, etc... Is there anyway for me to include the full name of the days in the calendar intent or must put the days of the week in the terms of MO, TU, WE, etc... If that is not the case is there anyway to do that since duration can contain the full names of the days of the week separate by commas? \n\nI figured out how to change the formation of the string to two characters but it is only for one word. For example if the user just selects Monday I'm able to change it to Mo using the following code: \n\n int durationColumnIndex = mCursor.getColumnIndex (PrescriptionContract.PrescriptionEntry.COLUMN_PRESCRIPTION_FREQUENCY_DURATION);\n String duration1 = mCursor.getString(durationColumnIndex);\n if (duration1.length()>=2){\n duration1 = duration1.substring(0,2);\n\n\nHowever if the user selects multiple dates duration1 becomes: \"Monday Wednesday Sunday\" for example. Is there a way to change this string to just Mo,We,Su so it can be sent in an calendar intent?" ]
[ "android", "android-intent", "calendar" ]
[ "Using one NodeJs docker image inside React Container", "Step1: I have created a local docker image of one NodeJS app.\nHere is the dockerfile for this app -\n\nFROM node:8\n\n# Create app directory\nWORKDIR /usr/src/app\n\n# Install app dependencies\n# A wildcard is used to ensure both package.json AND package-lock.json are copied\n# where available (npm@5+)\nCOPY package*.json ./\n\nRUN npm install\n# If you are building your code for production\n# RUN npm ci --only=production\n\n# Bundle app source\nCOPY . .\n\n#EXPOSE 8080\nCMD [ \"npm\", \"start\" ]\n\n\n**Step 2:**Then I built a docker image for this Node app. Here is the build command output -\n\nC:\\Users\\shibathethinker\\Documents\\GitHub\\NodeProjects\\API_Proxy_ABN>docker build -t api-proxy .\nSending build context to Docker daemon 8.637MB\nStep 1/6 : FROM node:8\n ---> 0bf36d7ccc1e\nStep 2/6 : WORKDIR /usr/src/app\n ---> Running in 7187d65639f1\nRemoving intermediate container 7187d65639f1\n ---> 0e34dc93439c\nStep 3/6 : COPY package*.json ./\n ---> 47c0d0ca8c77\nStep 4/6 : RUN npm install\n ---> Running in d7e5163371df\nnpm WARN [email protected] No repository field.\n\nadded 98 packages from 91 contributors and audited 194 packages in 8.598s\nfound 0 vulnerabilities\n\nRemoving intermediate container d7e5163371df\n ---> 72da705ae792\nStep 5/6 : COPY . .\n ---> 0293df6aa27d\nStep 6/6 : CMD [ \"npm\", \"start\" ]\n ---> Running in 251e98c0a0ae\nRemoving intermediate container 251e98c0a0ae\n ---> a92d8a95b8cd\nSuccessfully built a92d8a95b8cd\nSuccessfully tagged api-proxy:latest\nSECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.\n\n\n**Step 3:**Then, I wanted to use this docker image in another 'React' app.\nHere is the Dockerfile of the app -\n\n FROM api-proxy:latest\nWORKDIR /app\nRUN npm install\nCMD [ \"npm\", \"start\" ]\n\n# stage: 2 — the production environment\nFROM nginx:alpine\n#COPY —from=react-build /app/build /usr/share/nginx/html\n#COPY nginx.conf /etc/nginx/conf.d/default.conf\nCOPY /build /usr/share/nginx/html\nEXPOSE 80\nCMD [\"nginx\", \"-g\", \"daemon off;\"]\n\n\nStep4: Now I built and ran this docker image generated on step 3.\n\nQuestion:\n\nIt looks like the node app is not running on the newly created docker container.\nIf I 'ssh' into the docker container I can not see any node server running there.\nI also could not find the WORKDIR (/usr/src/app) created in the step1 in this container.\n\nWhat I am doing wrong?\nPlease let me know if I can clarify further." ]
[ "docker", "dockerfile" ]
[ "How to apply a sentiment classifier to a dataframe", "I have a dataframe which contains survey answers. Three of those columns are open-ended answers. Using HuggingFace NLP I'm using a pre-trained sentiment analysis classifier. Please find the code below:\nfrom transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline\nmodel_name = "nlptown/bert-base-multilingual-uncased-sentiment"\nmodel = AutoModelForSequenceClassification.from_pretrained(model_name)\ntokenizer = AutoTokenizer.from_pretrained(model_name)\nclassifier = pipeline('sentiment-analysis', model=model, tokenizer=tokenizer)\nclassifier("This community is so helpful!")\n\nThe results for the classifier test is: "[{'label': '5 stars', 'score': 0.800311}]\nWhat I'd like to do is have the classifier run on my open-ended responses and, in new columns in my dataframe, have it include the stars and ranking score.\nAny help would be greatly appreciated.\nedit: I uploaded the dataset through a local csv. The dataframe column name I want to work with is "Q72"" ]
[ "python", "pandas", "huggingface-transformers" ]
[ "lua function from c++", "Let we have a code in \"luafunc.lua\":\n\nfunction foo(a, b)\n return a + b\nend\n\na = io.read('*n')\nb = io.read('*n')\nprint (foo(a, b))\n\n\nLet's try to use function foo from C++ file:\n\n#include <iostream>\n\nusing namespace std;\n\nextern \"C\"{\n #include <lua.h>\n #include <lualib.h>\n #include <lauxlib.h>\n};\n\nint main()\n{\n lua_State *lvm = lua_open();\n luaL_openlibs(lvm);\n luaL_loadfile(lvm, \"luafunc.lua\");\n\n int a, b;\n cin >> a >> b;\n lua_pcall(lvm, 0, LUA_MULTRET, 0);\n lua_getglobal(lvm, \"foo\");\n lua_pushnumber(lvm, a);\n lua_pushnumber(lvm, b);\n if (lua_pcall(lvm, 2, 1, 0))\n {\n cout << \"Error: \" << lua_tostring(lvm, -1) << endl;\n return 0;\n }\n\n cout << \"The result is: \" << lua_tonumber(lvm, -1) << endl;\n\n lua_close(lvm);\n return 0;\n}\n\n\nSo, the problem is that this C++ code executes the whole luafunc.lua. Naturally I can remove reading part from lua-file and then from C++ only foo is executed. But can I use function foo from C++ even if there's other stuff in lua-file?" ]
[ "c++", "lua" ]
[ "Xamarin update 4.2.0.680 today (2016-09-15) caused ColorTypeConverter.ConvertFrom(string) to throw a null reference exception", "Today I got a warning when showing my students the code from the Xamarin book Chapter 8, ColorViewList program. I didn't think too much of a deprecation warning, but the program then threw a null reference exception on the following line:\n\nColor color = (Color)colorTypeConv.ConvertFrom(colorName);\n\n\nHowever, there were no null references. The warning indicates that ConvertFrom is deprecated." ]
[ "c#", "xamarin" ]
[ "\"if (MouseEvent.CLICK = true) \" error in Actionscript 3?", "These are the two errors;\n\n1067: Implicit coercion of a value of type Boolean to an unrelated\ntype String.\n1049: Illegal assignment to a variable specified as\nconstant.\n\nI want to basically set it so, if mouse is click\nthe -y speed of symbol helicopter = variable 'speed'\nAny help? Thanks" ]
[ "actionscript-3" ]
[ "Update UpdatePanel on MasterPage from ContentPage - Dont updates", "Im trying to refresh content inside UpdatePanel that is on my masterpage from another contentpage\n\nCode i want to update in my usercontrol is inside if that matter, without it code will refresh when i want but also a whole lot of other times i dont want it to refresh. \n\nif (!IsPostBack){}\n\n\nMasterpage\n\n<asp:UpdatePanel ID=\"UpdateShoppingCart\" runat=\"server\" UpdateMode=\"Conditional\">\n <ContentTemplate>\n <uc1:ShoppingCart ID=\"ShoppingCart1\" runat=\"server\" />\n </ContentTemplate>\n </asp:UpdatePanel>\n\n\nContentpage Product.aspx.cs\n\nUpdatePanel panel = (UpdatePanel)this.Form.Parent.FindControl(\"UpdateShoppingCart\");\npanel.Update();\n\n\nIt don't Update.\n\nSomeone wants to show me how to do it right?" ]
[ "c#", "asp.net", "ajax", "asp.net-ajax", "updatepanel" ]
[ "Distribution of Enterprise iOS Apps", "I have an iOS app that is to be distributed among the employees of the company. I know that for this purpose we need to take enterprise developer account. The doubt that i have is that how will i distribute the builds. Does apple provide an enterprise store? If not suppose i distribute the build via services like diawi.com or something like that, how will the updates be installed. When i am rolling out an update, should the user remove the older version and then re-install it.\n\nI tried to search in many places and i could not get a clear answer. Hope someone can help me clear my doubts..\n\nThanks in advance" ]
[ "ios", "iphone", "app-store", "enterprise", "software-distribution" ]
[ "determine furthest Point away from other Point's", "I am creating a simple game with some simple AI implementations on some of the ingame computer steerd players.\n\nI have a list of Point that represent possible moves for the player. I need to write a method that moves the player to the Point furthest away from possible enemies in that list. I illustrated it with the picture:\n\n\n\nNumbers represent Points poistion in List\n\nWhat I want is for player(4) to move to either Point in position 2 or 6 that are furthest away from any enemies. I've managed to solve this if there is one enemy by iterating the list and using the distance() method of Point to determine which point is furthest away. But the code must work even if there are several enemies in the grid." ]
[ "java", "grid", "point" ]
[ "How to update individual JSON field in mongoDb from Springboot", "I'm trying to update the value of a single field of a stored JSON in MongoDb from Springboot. I'm not using POJO since the JSON schema will be random always.\n\n// this is what I'm trying to achieve. But I don't know how to do it from SpringBoot.\n db.collection.update( { _id:12345} , { $set: { a.b.c.d : updatedValue } } \n\n\n\nThis is how I saved my JSON Object to MongoDB:\n\n Mongo mongo = new Mongo(\"localhost\", 27017);\n DB db = mongo.getDB(\"dbOne\");\n DBCollection collection = db.getCollection(\"data\");\n\n // convert JSON to DBObject directly\n DBObject dbObject = (DBObject) JSON.parse(jsonString);\n\n collection.insert(dbObject);\n\n\n\nMy JSON sample data:\n\n {\n \"a\":{\n \"b\":{\n \"c\":{\n \"d\":\"value1\",\n \"e\":\"value2\"\n }\n }\n }\n }" ]
[ "json", "mongodb", "spring-boot", "spring-data-mongodb" ]
[ "How to configure proxy server in polymer cli", "Is there any way to configure proxy server in polymer-cli ? similar to webpack-dev-server proxy. I've check any possible documentation with no success" ]
[ "polymer-cli" ]
[ "Google Places autocomplete for Airports", "I am trying to build an auto-complete for airports using Googles auto-complete places API.\nI found the following code in an question here, but it returns no results:\nSetting Google Places 'Types' on Dropdown Input\n\n<script type=\"text/javascript\">\nfunction initialize() \n{\n var input = document.getElementById('searchTextField');\n var options = {\n types: ['airport'],\n\n };\n\n autocomplete = new google.maps.places.Autocomplete(input, options);\n}\n\ngoogle.maps.event.addDomListener(window, 'load', initialize);\n</script>\n<input id=\"searchTextField\" type=\"text\" size=\"50\" placeholder=\"Search for an Airport!\">\n\n\nCan anyone help me?" ]
[ "javascript", "google-maps-api-3", "google-places-api" ]
[ "Detect whether user is logged in to Facebook", "I want to show Login button and Login status as \"LOGGED IN\" if the user has Facebook open in any other tab of their browser, and otherwise show \"NOT LOGGED IN\"." ]
[ "asp.net", "facebook", "facebook-javascript-sdk", "loginview" ]
[ "Display maximum value of an axis", "I want to know if it is possible to display the maximum value of an axis in chart.js even if the data doesn't reach it yet?\nI'm trying to get a graph that fills up with asynchronous data. I know how to \"update\" it and it works well but the chart is visually filled from the start." ]
[ "chart.js", "chart.js2" ]
[ "if else statement not work in option input", "HERE is my code :\n\nvar $myarray =array ('black','blue','brown','yellow')\n\nif ( $row['color']==\"\") {\n echo\"<option value='' selected>---select---</option>\";\n}\n\nforeach ($myarray as $color) {\n\n if ($row['color']!=\"\" && $row['color']==$color) {\n\n echo\"<option value='$color' selected>$color</option>\";\n\n }else {\n echo\"<option value='$color'>$color</option>\";\n }\n\n}\n\n\nMy question is how to get rid of the (<option value='' selected>---select---</option>)\nif $row['color'] is not null or not empty?\n\nI´ve tried many ways...but nothing helped. :S" ]
[ "php" ]
[ "Nodes disappear from portrait to landscape mode (Sprite Kit | Swift | Flappy Bird)", "I am working on a Flappy Bird clone. I'm running into a bug where my ground nodes disappear when I switch from portrait mode to landscape mode.\n\nEDIT: I am basing my code off this: https://github.com/fullstackio/FlappySwift\n\n\n\n\n\nAs you can see, Kirby acts like the bottom is the ground, so it's clear that the node is there, it just cannot be seen. Here's the relevant code:\n\noverride func didMoveToView(view: SKView) {\n ...\n backgroundScrollUpdate()\n ...\n}\n\nfunc backgroundScrollUpdate() {\n ...\n let groundTexture = SKTexture(imageNamed: \"Ground\")\n groundTexture.filteringMode = SKTextureFilteringMode.Nearest\n let moveGroundDur = 0.02 * groundTexture.size().width*2\n let moveGroundSprite = SKAction.moveByX(-groundTexture.size().width*2, y:0, duration:NSTimeInterval(moveGroundDur))\n let resetGroundSprite = SKAction.moveByX(groundTexture.size().width*2, y:0, duration:0)\n let moveGroundSpriteForever = SKAction.repeatActionForever(SKAction.sequence([moveGroundSprite, resetGroundSprite]))\n // ground\n for var i:CGFloat = 0; i < 2 + self.frame.size.width / (groundTexture.size().width*2); ++i {\n let groundSprite = SKSpriteNode(texture: groundTexture)\n groundSprite.setScale(2.0)\n groundSprite.position = CGPointMake(i * groundSprite.size.width, groundSprite.size.height / 2)\n groundSprite.runAction(moveGroundSpriteForever)\n moving!.addChild(groundSprite)\n }\n // ground physics\n let dummyGround = SKNode()\n dummyGround.position = CGPointMake(0, groundTexture.size().height)\n dummyGround.physicsBody = SKPhysicsBody(rectangleOfSize: CGSizeMake(self.frame.size.width, groundTexture.size().height*2))\n dummyGround.physicsBody?.dynamic = false\n dummyGround.physicsBody?.categoryBitMask = worldCategory\n self.addChild(dummyGround)\n ...\n}\n\n\nThanks in advance." ]
[ "ios", "swift", "sprite-kit", "flappy-bird-clone" ]
[ "VBA code to validate XML using XSD files and retrieving all validation errors in Excel", "I am building an application using Excel VBA to validate xml files against xsd. I used below code snipped and added to my application. \n\nhttps://stackoverflow.com/a/11709428/8854979\n\nNow, the problem I am facing is, it doesn't provide full list of validation errors, instead it gives me only first error encountered. \n\nWhile searching on Internet I came to know that I can use 'IXMLDOMParseError2' object with property allErrors, see below;\n\nhttps://msdn.microsoft.com/en-us/library/ms759143(v=vs.85).aspx\n\nthis will give me list of all errors during xml validation. \n\nI just wanted to know how to use this in VBA code. \n\nAny help on this will be highly appreciated. \n\nThanks you in advance" ]
[ "xml", "excel", "vba", "validation", "xsd" ]
[ "What is the difference between using round braces “()” and not using it in instance declaration of php?", "I see some people use braces \"()\" when creating a new instance of a class using new. Some do not.\n\nIs there any difference?" ]
[ "php" ]
[ "PHP Mail Form: From Name indicates [email protected] instead of user provided email and name", "I am trying to set up a simple contact form for my website. The end goal of the form is for the user to submit their information and have the server process and deliver the email as if it came directly from the user. In other words, if John Doe, whose email address is [email protected], fills out the form, then the email would read as if John Doe sent it from his email address, [email protected]. What's mind-boggling to me is that I figured my server might not have authorization to send on the user's behalf; however, an older PHP form that I'm trying to move away from executes just fine.\n\nCurrently, this is my mail processing form PHP:\n\n<?php \nif (($_SERVER['REQUEST_METHOD'] == 'POST') && (!empty($_POST['action']))):\n\nif (isset($_POST['myname'])) { $myname = $_POST['myname']; }\nif (isset($_POST['myemail'])) {\n $myemail = filter_var($_POST['myemail'], FILTER_VALIDATE_EMAIL ); \n}\nif (isset($_POST['mysubject'])) { $mysubject = $_POST['mysubject']; }\nif (isset($_POST['mycomments'])) {\n $mycomments = filter_var($_POST['mycomments'], FILTER_SANITIZE_STRING ); \n}\nif (isset($_POST['reference'])) { $reference = $_POST['reference']; }\nif (isset($_POST['requesttype'])) { $requesttype = $_POST['requesttype']; }\n\n$formerrors = false;\n\nif ($myname === '') :\n $err_myname = '<div class=\"error\">Sorry, your name is a required field</div>';\n $formerrors = true;\nendif; // input field empty\n\nif ($mysubject === '') :\n $err_myname = '<div class=\"error\">Please enter a subject for your message.</div>';\n $formerrors = true;\nendif; // input field empty\n\nif ( !(preg_match('/[A-Za-z]+, [A-Za-z]+/', $myname)) ) :\n $err_patternmatch = '<div class=\"error\">Sorry, the name must be in the format: Last, First</div>';\n $formerrors = true;\nendif; // pattern doesn't match\n\nif (!($formerrors)) :\n $to = '[email protected]';\n $subject = \"$mysubject\";\n $message = \"\\nName: $myname\\n\\nEmail: $myemail\\n\\nSubject: $mysubject\\n\\nComments: $mycomments\\n\";\n $from = $myname.'<'.$myemail.'>';\n $headers = 'From: '.$from.\"\\r\\n\".\n 'Reply-To: '.$myemail.\"\\r\\n\";\n\n if (mail($to, $subject, $message, $headers)):\n $msg = \"Thanks for filling out our form\";\n else:\n $msg = \"Problem sending the message\";\n endif; // mail form data\n\nendif; // check for form errors\n\nendif; //form submitted\n?>\n\n\nCurrently the reply-to works just fine, but the email received via the form indicates [email protected]. Thank you for your contributions." ]
[ "php", "forms", "email", "email-headers" ]
[ "Find density of the Edges in a image", "I have used Canny edge detector to detect the edges and below is the output. I need to detect the density of edges in the image and select the region where ever the density is high. How to do that in opencv.How to find the density of high intensity pixels using opencv?\n\nBelow is the output after Canny Edge: \n\n\nHow to get the below output?" ]
[ "opencv", "image-processing", "machine-learning", "computer-vision", "edge-detection" ]
[ "Updating JIRA issues from gitlab pipeline", "I want to move an issue to the deployed stage (transition) when the gitlab pipeline of a merge request has finished. Is that even possible?\n\n\n\nMy Idea so far:\n\nThe pipeline is related to that specific issue by both the branch name (see 1.) of the merge request and also the message of that merge request like so \"Finish PV-1234\".\n\n\nI can parse the issue key from the branch name.\nI can call a server to run a script making the Jira api call." ]
[ "jira", "gitlab-ci", "jira-rest-api" ]
[ "How to supply SQL functions and views required for testing Django app", "I've created a file <APP>/<MODEL>.sql according to the Django docs in order to make use of a hook to pass arbitrary SQL after syncdb is run. Inside this file are two function declarations for PostgreSQL and a statement that creates a database view. This runs fine in production but -- just as the docs say -- the code is not run for the test database because the use of fixtures is suggested. Now my unittests are missing the crucial database views and functions and thus fail.\n\nHow do I test code that relies on raw sql functions / views?\n\nUPDATE\n\nI dug up this ticket which concerns this question directly and also presents a small workaround." ]
[ "sql", "django", "unit-testing", "testing", "django-postgresql" ]
[ "UICollectionView very slow to load because of dequeueWithReusableIdentifier, can I load it in background?", "I'm facing an issue I reaaaally don't find any answer to.\nI have a collectionView, and every time I tap a button, I reloadData of the collectionView with new parameters. My problem is that it takes around 1-2s to do so wich is very annoying and freeze my UI.\n\nI would like to know if there is a way to reload the collectionView in background and diplay it only when it's done, something like (in pseudo-code) :\n\nself.collectionView.hidden = yes;\ndispatch_async({\n [self.collectionView reloadData];\n});\n\n\nand when the it's fully updated :\n\nself.collectionView.hidden = no;\n\n\nI haven't found anything about how to this on the internet, and i really need some help.\n\nFull code for cellForRowAtIndexPath method : \n\n- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath\n{\n UICollectionViewCell *cell = nil;\n\n if (indexPath.row >= 1 && indexPath.row <= 7)\n {\n static NSString *cellIdentifier = @\"AGZDayLetterCell\";\n cell =(AGZDayLetterCollectionViewCell*)[collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];\n ((AGZDayLetterCollectionViewCell*)cell).dayFirstLetterLabel.text = [self.daysFirstLetterArray objectAtIndex:(indexPath.row-1)];\n cell.userInteractionEnabled = NO;\n }\n else if (indexPath.row%8 == 0)\n {\n static NSString *cellIdentifier = @\"AGZSeparatorCell\";\n cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];\n cell.userInteractionEnabled = NO;\n }\n else if (indexPath.row > 8+self.delay)\n {\n NSString *dayNumberTapped = [NSString stringWithFormat:@\"%ld\", (long)indexPath.row-7-(int)indexPath.row/8-self.delay];\n\n static NSString *cellIdentifier = @\"AGZDayCell\";\n cell =(AGZDayCollectionViewCell*)[collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];\n ((AGZDayCollectionViewCell*)cell).dateTappedString = [self getDateStringForDayNumber:dayNumberTapped];\n\n NSDate *selectedDayDate = [[self getDateStringForDayNumber:dayNumberTapped] dateFromStringForRFC3339Format];\n ((AGZDayCollectionViewCell*)cell).dayAppointmentsArray = (NSMutableArray*)[self.appointmentsDictionary objectForKey:[selectedDayDate getDateOnlyRFC3339Format]];\n\n // We check if the cell is today's date and set the design according to the result\n if ([[self.viewDate getDateOnly] isEqualToString:[[NSDate date] getDateOnly]] && [[NSDate date] getDay] == [dayNumberTapped intValue])\n ((AGZDayCollectionViewCell*)cell).isTodayDay = YES;\n else\n ((AGZDayCollectionViewCell*)cell).isTodayDay = NO;\n }\n else {\n static NSString *cellIdentifier = @\"AGZDayCell\";\n cell =(AGZDayCollectionViewCell*)[collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];\n ((AGZDayCollectionViewCell*)cell).dateTappedString = @\"\";\n cell.userInteractionEnabled = NO;\n ((AGZDayCollectionViewCell*)cell).isTodayDay = NO;\n }\n\n return cell;\n}" ]
[ "ios", "objective-c", "xcode", "uicollectionview" ]
[ "How to display one million in dimple measure axis as 1000k instead of 1m?", "We are displaying price value in y axis for a chart using dimpleJs. When the price more than 1 million, its automatically converted to 1m while displaying in the chart. I would like the millions to be displayed in terms of thousands or lakhs / hundreds of thousands, see Indian Numbering System. How to do it? I have searched and tried this answer \n but it doesn't seem to work. Below is my code snippet:\n\nconst yAxis = chart.addMeasureAxis('y', 'total');\nyAxis.tickFormat = function(d) {\n let result = d;\n if ((d / 1000) >= 1) {\n result = d / 1000 + 'K';\n }\n return result;\n};" ]
[ "javascript", "d3.js", "dimple.js" ]
[ "Fog directory can't be blank, Aws access key can't be blank, Aws secret access key can't be blank", "Im using asset_sync gem to upload assets to Amazon S3 bucket. I used dotenv to store my keys and secret keys and deployed using capistrano to Amazon EC2. Everything was fine.\n\nBut when I moved the keys to .bash_profile on my server and added an initializer, asset upload failed with this error.\n\nrake aborted!\nFog directory can't be blank, Aws access key can't be blank, Aws secret access key can't be blank\n\n\nPlease help me to figure out why the keys/secrets are not found." ]
[ "ruby-on-rails", "amazon-s3", "asset-sync" ]
[ "How to Mysql ASC order 1,2,3,4,5 not 1,10,11,12?", "Here is my query\n\n$sql=executeQuery(\"select * from \".PREFIX.\"frame_info \n where Id='\".$Id.\"' $where_clause \n order by left(FName, 2), substr(FName, 3) + 0, FName\");\n\n\nPS. I have tried the following but nothing worked\n\n\ncast(FName as unsigned) ASC\nFName + 0\nLENGTH(FName), FName\n\n\nHere is the sample data:\n\nRayban Slim Fit 5,\nRayban Slim Fit 6,\nRayban Slim Fit 7,\nRayban Slim Fit 3,\nRayban Slim Fit 2,\nRayban Slim Fit 1,\nRayban Slim Fit 9,\nRayban Slim Fit 8,\nRayban Slim Fit 10,\nRayban Princess 149,\nRayban Princess 146,\nRayban Princess 118,\nRayban Princess 147,\nRayban 3141,\nRayban 3143,\nRayban 3153,\nRayban 3152,\nRayban 3130,\nRayban 3128\n\n\nExpected result:\n\nRayban 3128,\nRayban 3130,\nRayban 3141,\nRayban 3143,\nRayban 3152,\nRayban 3153,\nRayban Princess 118,\nRayban Princess 146,\nRayban Princess 147,\nRayban Princess 149,\nRayban Slim Fit 1,\nRayban Slim Fit 2,\nRayban Slim Fit 3,\nRayban Slim Fit 5,\nRayban Slim Fit 6,\nRayban Slim Fit 7,\nRayban Slim Fit 8,\nRayban Slim Fit 9,\nRayban Slim Fit 10" ]
[ "mysql", "sql-order-by" ]
[ "JavaScript event happens when scroll comes to the element without jQuery", "I have some div with scroll.\n\nI want to do with javascript, that function will active when the scroll of the div will comes to element.\n\nI want to do this without jQuery.\n\nHow can I do it?\n\n\n\nexample for source:\n\nthe div id=bb, is the element that when the scroll comes to, it will active the 'example' function\n\n<div id=aa> // this div have scrollbar\n <br><br><br><Br><br><br><br><br><br><br><br><br><br><Br><br><br><br><br>\n\n <div id=bb>this is the element that will active the function</div>\n\n <br><br><br><Br><br><br><br><br><br><br><br><br><br><Br><br><br><br><br>\n</div>\n\n\nthis is the function that i want to active when the scroll comes to the element:\n\nfunction example() {\n document.write('work!');\n}" ]
[ "javascript" ]
[ "How to give a subpage it's own domain name?", "I have a Joomla site mysite.com.\n\nI want to have the subpage mysite.com/example act like a separate website using a separate domain name anothersite.com. \n\nCan this be achieved using DNS settings on the domain and htaccess?\n\nHosting sites at cloudaccess.net but want this solution for one-page sites and landing pages without using a whole other hosting account / joomla instance.\n\nThanks." ]
[ ".htaccess", "dns", "subdomain", "hosting" ]
[ "Multiple Sinon stubs against global window not working as expected", "I'm using Karma with Mocha, Chai and Sinon to test code in a project using this boilerplate. The Subject Under Test uses the Speech Synthesis API.\n\nI start by establishing window.speechSynthesis.getVoices in a beforeEach method\n\nbeforeEach(() => {\n global.window.speechSynthesis = {\n getVoices: () => (null),\n };\n});\n\n\nThen I have two test cases, in each one, I want to test what happens when a different set of voices is returned. To accomplish this I'm using Sinon stubs\n\nFirst test case\n\nit('supports speech and locale', () => {\n const getVoicesStub = sinon.stub(\n global.window.speechSynthesis,\n 'getVoices');\n\n getVoicesStub.callsFake(() => (\n [{lang: 'en_US'}]\n ));\n\n\nSecond test case\n\nit('will choose best matching locale', () => {\n const getVoicesStub = sinon.stub(\n global.window.speechSynthesis,\n 'getVoices');\n\n getVoicesStub.callsFake(() => (\n [{lang: 'es_MX'}, {lang: 'es_US'}]\n ));\n\n\nThe problem is, when the SUT calls window.speechSynthesis.getVoices during the second test case, it's getting the results from the first stub. It's as if the second stub is doing nothing...\n\nIf I comment out the first test case, the second test case succeeds, but if I leave them both in, the second one fails because the wrong set of voices are being returned.\n\nAny idea how to get the second stub to work as expected?" ]
[ "javascript", "unit-testing", "mocha.js", "karma-runner", "sinon" ]
[ "How to set defaultDate", "How to set defaultDate to 1 month ago from moment date\n\n<DatePicker\n defaultDate={}\n minimumDate={new Date()}\n ...\n/>\n\n\nI can't imagine what I must to put into defaultDate" ]
[ "javascript", "react-native", "native-base" ]
[ "Identify all open System/Special Folders", "I am currently using the following to Get Path in a ListBox of all Open Explorer Windows:\n\nforeach (SHDocVw.InternetExplorer j in new SHDocVw.ShellWindows()) {\n if (j.Name == \"Windows Explorer\") {\n ListView1.Items.Add(j.LocationURL);\n }\n}\n\n\nBut it doesn't return the location of special folders like Computer, Recycle Bin, Network etc. Is there a way to identify those folders so I can put the path on my own like shell:MyComputerFolder for Computer?" ]
[ "c#", ".net", "vb.net", "shdocvw" ]
[ "makefiles and their targets and dependencies", "I have a question on my mind regarding makefiles.\n\n$(OBJECTS) : OBJEC/%.o : %.c\n gcc -c $< -o $@\n\n\nI am unable to understand this rule.\n\nUsually, there is only one target and its dependencies in a makefile rule, but there are 2 colons in the above piece of code.\n\nI am unable to figure out which is the target and which is the dependency.\nHow does the code work?\n\nCan anyone clear it up for me?" ]
[ "makefile", "gnu-make" ]
[ "Angular get route parameters from location change start", "I have routes setup like so:\n\napp.config(function($routeProvider) {\n\n $routeProvider\n\n //login\n .when(\"/\", {\n templateUrl : \"framework/views/login.html\",\n controller : \"LoginCtrl\",\n title: \"Login\",\n authenticate: false\n })\n\n //dashboard\n .when(\"/dashboard\", {\n templateUrl : \"framework/views/dashboard.html\",\n controller : \"DashboardCtrl\",\n title: \"Dashboard\",\n authenticate: true\n });\n});\n\n\nNow I want to redirect location changes if authenticate is set to true on the route but a session variable is not true.\n\nFor example:\n\n$rootScope.$on(\"$locationChangeStart\", function(event, newURL, oldURL){ \n if (toState.authenticate && $window.sessionStorage.isLoggedIn) {\n $location.path(\"/\");\n }\n});\n\n\nThis works if I use $routeChangeStart instead, but then I see the next route briefly before it redirects. Location change seems to stop that, but I can't work out how to access the route parameters (i.e. the authenticate parameter).\n\nHow do I do this? Or is there a better way entirely?" ]
[ "javascript", "angularjs", "routes" ]
[ "how to print html particular size", "I created an html that I need will be printable. It looks ok online, however when I send it to the printer it looks huge. How can I adjust the size so it will be printed as A6 or A4 size?" ]
[ "html", "printing" ]
[ "Cassandra : Delete the data without removing the table structure", "I'm running some tests on cassandra, that need the data in the table to be removed after every run. So I wrote a script that TRUNCATES the data. My question is, does it leave the table unconfigured(removes all columns) after I TRUNCATE the table? I'm a cassandra beginner. Need some insights on this." ]
[ "cassandra", "cql", "truncate", "cassandra-python-driver" ]
[ "Changing a property of my ObservableObject instance doesn't update View. Code:", "//in ContentView.swift:\n\nstruct ContentView: View {\n\n@EnvironmentObject var app_state_instance : AppState //this is set to a default of false.\n\nvar body: some View {\n\nif self.app_state_instance.complete == true {\n\nImage(\"AppIcon\")\n\n}}\n\npublic class AppState : ObservableObject {\n\n @Published var inProgress: Bool = false\n @Published var complete : Bool = false \n\npublic static var app_state_instance: AppState? //I init this instance in SceneDelegate & reference it throughout the app via AppState.app_state_instance\n\n...\n\n}\n\n\nin AnotherFile.swift:\n\nAppState.app_state_instance?.complete = true\n\n\nin SceneDelegate.swift:\n\napp_state_instance = AppState( UserDefaults.standard.string(forKey: \"username\"), UserDefaults.standard.string(forKey: \"password\") )\n\nAppState.app_state_instance = app_state_instance\n\nwindow.rootViewController = UIHostingController(rootView: contentView.environmentObject(app_state_instance!))\n\n\nThis ^ does not trigger an update of my view.Anyone know why?\n\nAlso, is it possible to make a static var @ published?\n\nAlso, I'm kind somewhat new to class-based + structs-as-values paradigm, if you have any tips on improving this please do share. \n\nI've considered using an 'inout' ContentView struct reference to update struct state from other files (as going through app_state_instance isn't working with this code)." ]
[ "swift", "observable", "swiftui" ]
[ "onChange Search by using Select ReactJS", "I have a problem implementing something like when user click the select tag option and then conversion pair will automatically find the data ask.\n\nEXAMPLE\n\nwhen USER select GBPAUD so the ask value will be 7429.4\nnow i slice the pairs GBPAUD turn as AUD using var resultLast. After that i create some string called var conversionPairs = 'USD' + resultLast;. So i console it i get USDAUD. My problem is how to make search filter on the local.json so i can get USDAUD ask value.\n\nHere is my code.\n\nI really appreciate for your help.\n\nReact Code\n\n class PipValueCalculator extends Component {\n constructor(props) {\n super(props);\n this.state = {\n selectValue: ''\n };\n this.selectAccountCurrency = this.selectAccountCurrency.bind(this);\n }\n\n componentDidMount() {\n fetch('local.json')\n .then(data => data.json())\n .then(data => {\n this.setState({\n Values: data\n });\n });\n }\n\n renderCalculatorOption(Values){\n return (\n <option data-symbol={Values.Symbol} value={Values.ask}>{Values.Symbol}</option>\n );\n }\n\n selectAccountCurrency(e){\n console.log('target-value', e.target[e.target.selectedIndex].getAttribute('data-symbol'));\n var sliceLast = e.target[e.target.selectedIndex].getAttribute('data-symbol');\n var resultLast = sliceLast.slice(3,6);\n console.log(resultLast);\n var conversionPairs = 'USD' + resultLast;\n console.log(conversionPairs);\n\n this.setState({\n selectValue: e.target.value,\n currentValuePrice : e.target[e.target.selectedIndex].getAttribute('data-symbol')\n });\n\n }\n\n\n render() {\n if(!this.state.Values) return <p>Loading...</p>;\n return (\n <div>\n <FormGroup className=\"col-sm-12 col-md-4\" controlId=\"formControlsSelect\">\n <FormControl className=\"calculator-option\" componentClass=\"select\" placeholder=\"select\" ref=\"tester\" value={this.state.selectValue} onChange={this.selectAccountCurrency} >\n <option value=\"select\">Currency Pairs</option>\n {this.state.Values && this.state.Values.map(this.renderCalculatorOption, this)}\n </FormControl>\n </FormGroup>\n<div className=\"calculator-group text-left\">\n <p className=\"calculator__text\" >Current Conversion Price: {this.state.currentValuePrice}</p>\n <p className=\"calculator__text\" >Ask Price: {this.state.selectValue}</p>\n </div>\n </div>\n );\n }\n }\n\n export default PipValueCalculator;\n\n\nLocal.json\n\n[\n {\n \"Symbol\":\"GBPAUD\",\n \"ask\":7429.4\n },\n {\n \"Symbol\":\"USDAUD\",\n \"ask\":5705.0\n }\n]" ]
[ "javascript", "reactjs" ]