w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Can't edit/review layout files in Android Studio
Android Studio Issue 124715 Solutions : You do that by editing the "studio.exe.vmoptions" file in this path: Program FilesAndroidAndroid Studioin. Remove the line that says "-ea". You can refer this link

Categories : Android

how to configure or edit wp-filebase plugin edit to show author of files
yes we can configure the plugin without touching the code. However, following link was very helpful to me. documentation for the templates

Categories : PHP

textbox value not being grabbed
Try putting if (!Page.IsPostBack) around your page_load code protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { string phoneNum = ""; cn.Open(); SqlCommand command = new SqlCommand("getContactInfo", cn); command.CommandType = CommandType.StoredProcedure; SqlDataReader myReader; myReader = command.ExecuteReader(); while (myReader.Read()) { phoneNum = myReader.GetString(3).ToString(); } cn.Close(); //If I take this part out and don't populate textbox, //my update works. If I leave it, it does not phone.Text = phoneNum.ToString(); } }

Categories : C#

PHP - where clause equals 2 values grabbed from URL is not showing any results?
As a starting point, when creating the GET variables for the URL, they should be passed through urlencode to convert the spaces into something that can be used. Once in the script on this page, use urldecode to replace the encoded characters with their normal ones. (This bit might not be required - try it) Then pass them through mysql_escape_string to make them play nice and lower the chance of SQL injection. Try echoing the created $sql string to the screen or a log so that you can see exactly what is being attempted. This will help with making sure the GET variables are coming through correctly. Also, you can try running this SQL directly in a MySQL session to check that your SQL is correct. Finally, stop using mysql_ functions - they're deprecated. mysqli_ or PDO is the way to o

Categories : PHP

How to Get Row Number while Multiple Union used and All (*) Data Column is not Grabbed?
It is impossible to tell from your question what result you require. A count of rows is not the same thing in SQL parlance as a row number. It also appears that you don't understand how to use COUNT and GROUP BY. This matters because your question does not describe what you want, and people who would try to help you must guess based on your query. Your UNION will return a row for each matching combination of mac and uid for january and february. Perhaps you want the total number of rows from your January and February tables that contribute to your report? Try this to summarize your January data. You can use a similar query for February, but I will leave that to you. SELECT COUNT(*) AS recordcount, `uid`, `mac`, SUM(`time`)/60 AS ConnTime,

Categories : Mysql

CodeIgniter: Populate an input text in the view from data array grabbed from database
Try something on the lines of: Controller: function get_customer_details() { $guest_name = $this->input->post('guest_name'); $data = $this->banquet_model->talk_to_new_guest_table($guest_name); if ($data != 0) { $this->load->view('/main/banquet_view', $data); } } Model: function talk_to_new_guest_table($guest_name) { $query = $this->db->query(" SELECT guest_name, guest_gender, guest_nic_pp_dl FROM new_guest WHERE guest_name LIKE '$guest_name%' LIMIT 1 "); if($query->num_rows()>0) { return $query->result(); } else { return 0; } } View: <div class="control-group"> <label for="guest_name

Categories : PHP

Text field data from PayPal button payment is not grabbed in Classic API NVP transaction details call
From a quick glance at your code it looks like you have everything set correctly. I am not aware of any bugs for this issue off hand. However, I would suggest opening up a ticket with PayPal's Merchant Technical Support so that this can be looked into further and a bug filed for this if needed.

Categories : PHP

How to edit RTF files on MVC website?
Your RTF files most likely will have to be presented as HTML Please check out How to make your own RTF Converter which should be useful in your own project.

Categories : HTML

Open and edit SVG files using C/C++
Cairo's scale function scales the entire coordinate system, but you can use it on an individual shape if you translate first to the shape's origin; and if you bracket these changes with a save/restore pair it will only affect drawing done within this span. Resetting the matrix before stroking allows you to resize a drawing without changing the stroke-width (alternately, you can adjust the stroke_width by 1/scaling-factor). cairo_matrix_t m; cairo_get_matrix(cr, &m); cairo_save(cr); cairo_translate(shape_x, shape_y); cairo_scale(shape_w, shape_h); //cairo_move_to(cr, x, y); //perform the actual drawing //cairo_line_to(cr, x, y); //cairo_closepath(cr); cairo_set_matrix(cr, &m); cairo_stroke(cr); cairo_restore(cr); And if resetting the matr

Categories : C++

How can I edit jQuery files within WordPress
If you are using a plugin that has this js, then yes you have access to the files in the wordpress backend. Just go to Plugins - Editor. And on the right hand side you can select your plugin in the drop down. Select it and press Select button. It should list the plugin files on the right hand side, find the file you want to add and the editor on the left will populate with what ever is in the js file.

Categories : Wordpress

Edit a configuration file w/o temp files
Looks like a case for sed -i since you're on Linux. Also, since this is system administration work, preserve a backup. sudo sed -i.bak -e '1i set eventqueue basedir /etc/monit/eventqueue/ slots 1000 set mmonit http://monit:monit@xxx.xxx.xxx.xxx:8080/collector set httpd port 2812 and use address ec2-xxx.xxx.xx.xx.com allow localhost allow 0.0.0.0/0.0.0.0 allow admin:swordfish ' /etc/monit/monitrc This says 'insert the following lines before line 1'...and the lines continue up to and including the one without a backslash at the end. You can also do the edit of the set daemon line too, even though you said it was out-of-scope: sudo sed -i.bak -e '1i set eventqueue basedir /etc/monit/eventqueue/ slots 1000 set mmonit http://monit:monit@xxx.xxx.xxx.xxx:8080/collector set httpd

Categories : Linux

How do I edit the system definition files for quicklisp
OK so you need to make these subfolders in your home directory. I'm guessing you installed under windows as I saw your comment on my video! Remember that part of the install was created a home folder and setting it's path in your environment variables. ~ is the symbol for the home directory so you need to create directories for this path ~/.config/common-lisp/source-registry.conf.d which for my setup would be c:home.configcommon-lispsource-registry.conf.d Inside that create directory creare a fuf.conf file and paste the lines from the instructions. I haven’t got a windows machine to hand but hopefully that's enough to get you going!

Categories : Emacs

How do i read and edit huge excel files using POI?
Assuming your memory size is large enough to use XSSF/SAX to read and SXSSF to write, let me suggest the following solution. 1) Read the file using XSSF/SAX. For each row, create an object with the row data and immediately write it out into a file using ObjectOutputStream or any other output format you find convenient. You will create a separate file for each row. And there will only be 1 row object in memory, because you can keep modifying the same object with each row's data. 2) Make whatever modifications you need to. For rows that need to be modified, read the corresponding file back into your row object, modify as needed, and write it back out. For new rows, simply set the data in your row object and write it out to a new file. 3) Use SXSSF to reassemble your spreadsheet by reading

Categories : Apache

How to navigate/view/edit android platform sources (AOSP) using Intellij IDE (Android Studio preferably)?
Well, first you have to install Android studio from here: http://developer.android.com/sdk/installing/studio.html Then, if you already have a project in Eclipse here is how you export it to Android Studio: http://developer.android.com/sdk/installing/migrate.html

Categories : Android

Versioning software without having to edit lots of config files
If you want all of the assemblies to have the same version, you can make a single .cs file for the versioning in one of your libraries, and add it as a link to the other projects. This will cause the single file to be part of all three assemblies, and keep the version constant across them all.

Categories : C#

Edit certain files in multiple directories using a shell script
Can you use find to match the user files ? e.g. find ./ -maxdepth 1 -name "user*" -exec script_that_does_text_replace.sh {} ; where script_that_does_text_replace.sh is the code you wrote above.

Categories : Bash

Batch file to edit multiple files in a directory
Just doing what you have asked: @echo off for %%F in ("C:xml*.xml") do ( echo Processing %%F echo Removing... for /f "skip=17 delims=*" %%a in ("%%F") do ( echo %%a >>C: ewfile.xml ) >nul echo Lines removed, rebuilding file... xcopy C: ewfile.xml "%%F" /y >nul echo File rebuilt, removing temporary files del C: ewfile.xml /f /q >nul msg * Done! echo( ) exit >nul But I believe you wanted "delims=" (no delimiters) or "tokens=*" (all tokens), not "delims=*" (break at *). Also, the code can be greatly simplified and be made much more efficient: @echo off for %%F in ("C:xml*.xml") do ( >"%%F.new" (for /f "skip=17 delims=" %%a in ("%%F") do echo %%a) move /y "%%F.new" "%%F" >nul echo %%F ) msg * Done! exit /b Even faster, use MORE as lo

Categories : Batch File

I have an external executable jar file that I wish to edit the java files in it with Eclipse
Jar files are usually a compiled form of your java classes. The source CAN be included with the jar, but it rarely is. So instead of the expected ".java" files, you'll see ".class" files, which are compiled forms of your code. If you want to edit the files, you have a couple of options Look for the source elsewhere This is your best bet really. If its an open source project, look for the source of it. You can probably google it pretty easily, or search in search engines for maven repositories like this one. For example, if you see here, I looked for junit, and found an entry called "sources.jar". If its not an open source project, but a project internal to your work, there might be a team in charge of that project. Reach out to them, as getting the original sources as they where o

Categories : Java

git pull executed as wrong user. Unable to edit files now
# chown -R your_user git_repo_directory This will set you (username youruser) as the owner of the git_repo_directory. -R tells to apply the new owner to files recursively.

Categories : GIT

How to UNDO last edit 'References' files from the project in Visual Studio 2010?
There is no key combination or undo facility for this. Your best option is to use a source control system, then you can undo your check out (or do a get-latest) on the project file that you added the references to. Alternatively, plugins like ReSharper can offer options like Remove unused references which can help.

Categories : Visual Studio 2010

How to upload and access spreadsheet files from Google Drive in Dr.Edit sample code?
For Google Docs (Spreadsheet, Presentation, etc) file formats, you cannot get downloadUrl which is the way Dr.Edit accesses file. Instead, in same file metadata resource where you can get downloadUrl, you can get exportLinks, which exports spreadsheet to known file formats such as Microsoft Excel or csv. You can work with those known file format and upload it again to Google Spreadsheet by setting convert=true when uploading file.

Categories : IOS

github very irritating condition or not finding local repo directory and not able to edit files
Read the error message a little more carefully. You're missing fastcgi, a dependency. You need to install fastcgi first, so that dependencies are satisfied. The install instructions on the page you linked tell you to install fastcgi. https://github.com/billywhizz/node-fastcgi-parser

Categories : GIT

how to put tracker on Edit box in android
1) Create a hightlight.xml in drawable directory. <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/highlight_bg" android:state_focused="true"></item> <item android:drawable="@drawable/normal_bg" android:state_focused="false"></item> </selector> 2) Create normal_bg in drawable directory. <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid android:color="#00FFFFFF" /> </shape> 3) Create highlight_bg in drawable directory. <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid a

Categories : Android

Android - Edit XML through Java
You can't change what's in the xml at runtime. resource files can't be changed once they're compiled. But you can change some properties in Java. Here you would set it on your animation object If you look at that property in the Docs then it will show you if it has a Java counterpart. This one looks like it has setDuration(long). So it has a function but you will have to convert your int to long.

Categories : Android

Project imported from Eclipse to Android Studio. APK files and some other files in bin folder are not updating anymore
I don't know if there's a way to get a clean build via the UI (I haven't found it yet, anyway), but it's pretty easy via commandline. From the root directory of your project: ./gradlew clean

Categories : Android

How to store file in Android which I want edit later?
First since you might want to load it via code, you may need to include the .vcf file in /assets folder just for loading. Then you can copy the .vcf file to the device's internal or external storage for doing overwrite/edit operation on the fly. For more information about the internal and external storage, please refer to Android Developers: Storage Options

Categories : Android

how to edit an android animation interpolator?
Use ipfx.org to create custom interpolators. Take the bounce example and edit to your needs. http://ipfx.org/?p=7ffffffe575efffe9e02fffed8f6fffe&l=2f13c5ac138b3d6ad338a5a77a8386807d6e Than use created interpolator in your app () import org.ipfx.Interpolator; ... ... final org.ipfx.Interpolator interpolator = org.ipfx.Interpolator.parseUrl(urlData); ObjectAnimator animator = ObjectAnimator.ofFloat(...); animator.setDuration(1000); animator.setInterpolator(new TimeInterpolator() { @Override public float getInterpolation(float input) { return interpolator.calc(input); } }); animator.start();

Categories : Android

How can I edit Android's application menu?
What you are showing in the pic, is called a Launcher. You can create a custom Launcher. Check this question to get started.

Categories : Android

How to edit android build.prop in my app
That's actually very simple. Once you have the exact path of the build.prop on the Android system, you create a FileInputStream with that path, use some type of tokeniser to parse the individual items in there and change the rotation element, then use a FileOutputStream to re-write back to the file.

Categories : Android

0-byte files not detected when downloading files on Android
You should call flush() on your FileOutputStream to ensure that all data is written to the file. This should make your issue with 0-byte files occur less often. To check for 0 byte files using File.length() should work properly. Can you open a shell (adb shell) on the device and run ls -l to see the byte count displayed by it is 0 (maybe your file manager has some weird issues). Also please debug (or put some log statements) that sFullPath contains the correct file paths. I can't see where sFullPath gets set in your code above and why you don't just use outputFile but recreate another File object.

Categories : Android

Edit the text in a simple list in android
The following link contains the sample edit listview http://vikaskanani.wordpress.com/2011/07/27/android-focusable-edittext-inside-listview/

Categories : Java

Android Edit Source Lookup Path
change below line in manifest <activity android:name="com.example.example.DeviceScanActivity" /> with this <activity android:name="com.example.bletest.DeviceScanActivity" /> and it will work like a charm :) P.S:- error is in your activity path/location in name.

Categories : Android

edit (SOLVED) how to add one checkbox in a listview in android?
In the BaseAdapater Class in the getView u can try this public View getView(int position, View convertView, ViewGroup parent) { View vi=convertView; vi = inflater.inflate(R.layout.your_layout, null); if(position = yourcondtion){ //set the visibility of the checkbox true or false } return vi; } For checked checkbox try this CheckBox checkBox = (CheckBox)v.findViewById(R.id.Checkbox); checkBox.setChecked(!checkBox.isChecked());

Categories : Android

Android list with edit texts in Samsung
Try this, Add this code in your manifest.xml for a particular activity. android:windowSoftInputMode="adjustPan" Note : The activity's main window is not resized to make room for the soft keyboard. Rather, the contents of the window are automatically panned so that the current focus is never obscured by the keyboard and users can always see what they are typing. This is generally less desirable than resizing, because the user may need to close the soft keyboard to get at and interact with obscured parts of the window.

Categories : Android

Cant get ImageView onItemClick from custom ListView Android [EDIT]
Instead of: Bitmap bmp = BitmapFactory.decodeResource(a.getResources(), R.id.imagenEvento); to get your bitmap image. Try this: ImageView image = (ImageView)v.findViewByID(R.id.iamgeenEvento); Bitmap bmp = ((BitmapDrawable)image.getDrawable()).getBitmap(); Your original code was trying to decode the imageview itself as a bitmap and as it's not a bitmap would return a null value.

Categories : Android

adding another string in autocomplete edit text in android
Thanks Muhammed Babar for your suggestion, and here is my answer for my question.. Sms = (MultiAutoCompleteTextView) findViewById(R.id.message); quickM = getResources().getStringArray(R.array.quickmessages); //SMS message view autocomplete......... ArrayAdapter<String> adapterMessage = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, quickM); Sms.setAdapter(adapterMessage); //Set Tokenizer for SMS editText MultiAutoTextView Sms.setTokenizer(new MultiAutoCompleteTextView.Tokenizer() { @Override public CharSequence terminateToken(CharSequence arg0) { // TODO Auto-generated method stub return ""; } @Override public int findTokenStart(CharSequence arg0, int arg1)

Categories : Android

Readium Android SDK - Does anyone edit the code of epub3-Library?
Readium on Android receives a file path to the openBook call. You basically have two options: Decrypt the encrypted ePub to a temporary file and use that temporary file's path as the path to the openBook method. Remove the temporary file when the viewer exits. Alter the Readium library to be able to receive the ePub archive as a data buffer. You can then do the decryption in memory. Doing this has some problems. One is that an ePub might be too large for a mobile device to hold in memory (if there are lots of images or video embedded within it). The other being that you would have to alter Readium to add a method for opening an in-memory book and expose that back to Java via the NDK.

Categories : Android

Android Google Navigations app: can I edit the source code?
Is there open-source code for it that I could modify and recompile? No, sorry, Google Maps is not open source, which includes its Google Navigation component.

Categories : Java

moving edit text along with soft keyboard android
Try like this inside your Android manifest file.. <activity name="YourActivity" android:windowSoftInputMode="stateVisible|adjustResize"> </activity> or <activity name="YourActivity" android:windowSoftInputMode="stateVisible|adjustPan"> </activity> Please also read this for ref/Clarity

Categories : Android

Android Eclipse Edit String of values directory in Java
Based on some research i did on SO. How to change R.string.some_variable at run time? It seems that what your trying to do is not possible. R is generated at development time by the SDK tools.

Categories : Java



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.