w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Decode a high profile H.264 stream to baseline profile
The Profile is an encoding setting, not a decoding setting. If you have a video in Main profile, and want it in Baseline, you must decode then re-encode (This is call transcode). The problem is that your device can not decode Main profile in hardware. You can decode in software, but that will likely be slow (possibly slower than real time) and kill the battery. You best bet is it transcode the video first on a PC, or a cloud transcoding service before sending to the device.

Categories : Android

Setting up the value of a field in a form taking from a Profile
You are defining the foreignAlias as SfGuardUserProfile, so you should use this name for the getter. In some action: $profile = $this->getUser()->getGuardUser()->getSfGuardUserProfile(); In some template: $profile = $sf_user->getGuardUser()->getSfGuardUserProfile(); Then: echo $profile->getIdempresa();

Categories : Symfony2

How to edit profile ? (using devise and has a model Profile but edit method is giving error)
Not sure what your controller looks like, but you can explicitly tell rails where to find the profile_id. something like this: <li><%= link_to "Profile".html_safe, edit_profile_path(current_user, profile_id: @profile) %></li> Edit: #<Class:0xb459b8c> is the whole user class, not an instance which is why you can't call profiles on it. try this: @user = current_user @profile = @user.profiles.find(params[:profile_id]) Edit 2: According to your original question: the problem is, I have put an edit link in application.rb <li><%= link_to "Profile".html_safe, edit_profile_path(current_user) %></li> but it is giving error Couldn't find Profile with id=10 so instead of searching for id=2, it is looking at user_id, how to fix

Categories : Ruby On Rails

Android FFMPEG: Could not execute the ffmpeg from Java code
Do you have root on the device? Mount '/data' and then enter your same 'ffmpeg' command in the shell and see whether the error is the same. Try using the shell to test out different command expressions. Try 'ffmpeg' alone and with just one input file. See whether those commands produce expected output. My wild guess would be that there is an issue with calling 'ffmpeg.main()' that relates to the details of your build.

Categories : Android

Wix Toolset - Setting a Property to User Profile Folder path and Program Files
As an alternative to using the properties you're defining, you might be able to use some built-in properties to better effect. Instead of %USERPROFILE, consider LocalAppDataFolder. This will avoid your data from being copied between machines as a user roams between machines on a network domain. I'm guessing you don't need that but, if you do, use AppDataFolder and beware of the latencies involved. Instead of %PROGRAMFILES, consider ProgramFilesFolder. This seems to be what you intend.

Categories : Wix

FFmpeg error code 254
Error code 254 for FFprobe means: File not found. Thanks to blahdiblah for the tip removing -v quiet from the command. The TESTVIDEOPATH was given with " at the beginning and end to get spaces in the pathname to work. When executing it, Java excaped these " and put some extra around.

Categories : Java

Error in ffmpeg when reading from UDP stream
Incoming frames needs to be handled in a callback function. So the mechanism should be such that a callback gets called whenever there is a new frame. In this way there is no need to manually fine tune the delay. Disclaimer: I have not used ffmpeg APIs.

Categories : C++

Error concatenating two files with ffmpeg ubuntu
Your ffmpeg build is simply too old. Download a recent Linux build of ffmpeg, or follow a step-by-step guide to compile ffmpeg.

Categories : Ubuntu

ffmpeg Getting image or thumbnail from video error
You did not give ffmpeg a name :-) So you tried to execute a \bin folder ! $ffmpeg = "C:\Ffmpeg\ffmpeg-20130605-git-3289670-win64-static\bin"; you forget ffmpeg.exe $ffmpeg = "C:\Ffmpeg\ffmpeg-20130605-git-3289670-win64-static\bin\ffmpeg"; I do it for a .avi with following command ffmpeg -i Echo2012.avi -r 1 -s 1024x576 -f image2 -vframes 1 foo-001.jpg Don't execute your command twice ! $command = "$ffmpeg -i $video -an -ss $second -s $size -vcodec mjpeg $image"; echo $command; shell_exec($command); if(shell_exec($command)){ EDIT : your command string : ffmpeg -i upload.tmp -an -ss 12 -s 150x90 -vcodec mjpeg manu.jpg -vcodec codec (output) : Set the video output codec. It's a switch for a output video. You want as output an image. -an : You can disable Audio

Categories : PHP

Convert audio Linear pcm to mp3 ( using LAME ) Low ,Medium,High audio Quality setting
Try this, Low quality: AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication]delegate]; NSMutableDictionary *dictAudioQuality =[[NSMutableDictionary alloc]init]; [dictAudioQuality setValue:@"Low" forKey:@"audioquality"]; [dictAudioQuality setValue:@"11025" forKey:@"samplerate"]; [dictAudioQuality setValue:@"16" forKey:@"bitdepth"]; [dictAudioQuality setValue:@"120" forKey:@"bitrate"]; [dictAudioQuality setValue:@"1" forKey:@"channel"]; Medium Quality: AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication]delegate]; NSMutableDictionary *dictAudioQuality =[[NSMutableDictionary alloc]init]; [dictAudioQuality setValue:@"Medium" forKey:@"audioquality"]; [dictAudioQuality set

Categories : Iphone

node.js : fluent-ffmpeg throws error when converting mp4 to mp3
the spawn system call ends with error ENOENT if the program cannot be found. In this case, ffmpeg is not found, so you have to tell it where it is: proc = new ffmpeg({source:mp4}) .setFfmpegPath("wherever ffmpeg is installed ") <-- this is the new line .toFormat('mp3') .saveToFile(mp3, (stdout, stderr)-> return console.log stderr if err? return console.log 'done' ) More info is available in a related issue

Categories : Node Js

error: undefined reference to 'av_free_packet(AVPacket*)' when use NDK to compile ffmpeg
Please try to reshuffle the libraries: LOCAL_SHARED_LIBRARIES := libavformat libavcodec libavfilter libavutil libpostproc libswscale libswresample

Categories : Android

Azure Could Computing high availoability vs NEO4J high availability?
The short answer is probably yes. Windows Azure provide you infrastructure that allow you to build high availability system, it won't make any system high available by magic. As NEO4J is state-full, each node (with only one node Azure don't give you any SLA, you instance will be down) will need to share some state and the way to do it will be dependent on how NEO4J is working. So you will need to rely on NEO4J mechanism to do it. I don't know how NEO4J is working but you won't be able to skip designing an high available architecture around NEO4J using Windows Azure infra. Cloud may be a magic buzz word that can make things append on management level, but when we are on hard real world level Harry magic wand doesn't exist.

Categories : Neo4j

Building FFMpeg Error in IOS6.1 unable to create an executable file
You are using... --cc=/applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc That's wrong for armv7, you should be doing... --cc=/applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 Change the above to whatever arm-apple-darwin10-gcc-x.x.x version you have that bin folder. As well, change the gas-preprocessor's target compiler to the same. --as='gas-preprocessor/gas-preprocessor.pl /applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1' Additionally, don't put an -arch armv7 in your --extra-cflags, you don't need it and you may get an error: unrecognized command line option "-arch"

Categories : Iphone

quicksand sorting price values low to high / high to low
val() gives you a string, so > and < comparisons are lexographical (not numeric). Try wrapping the values in parseInt() or parseFloat(). Make sure to add appropriate error handling as well.

Categories : Jquery

Varnish High DB Connections In High Traffic
Mostly spiking backend connections has little to do with your varnish configuration but alot to do with the cachability of your site. Are there cookies that prevents you from caching efficiently? You can chose to strip them or remove all but chosen ones, there are examples for both on the varnish site. Do a varnishstat and check your hit rates during peaks. Is it a good cache hitratio? Is it the same as during low load? If it's the same or higher in low load it's easy to work on improving it at any time. Do a varnishtop -i txurl to see what requests are the most frequently sent to backend servers. Maybe it's some URLs that are just not cached due to faulty headers? Maybe some pages can be cached longer? Maybe some parts of the pages can be cached with ESI? Make sure your varnish is not

Categories : Mysql

quickfix/n error : MsgSeqNum too high
Your sequence numbers are out of sync. The output you pasted says that pretty clearly. I suggest you do some reading about FIX protocol. The unfocused nature of your question indicates that you don't know much about it. QuickFIX/n will be much easier to use and ask questions about if you spend some time learning about how the protocol actually works. It's a pretty simple protocol.

Categories : C#

Using Images of high resolution gives an BITMAP error?
You shouldn't load all these images into memory at the same time. Why would you? You should create some gallery of thumbnails or something along those lines and lazy load as needed. There is no way around this. You're going to run out of memory loading images the way you're doing, even on the high end devices since android only gives you a very small memory footprint within which to operate.

Categories : Android

iOS Facebook get user's profile image randomly opens profile homepage instead of permission dialog
This is how I would collect the User Profile picture, although there are plenty of ways to do this: I would use a notification (or any other method) to notify once the user is signed in, then call a method to collect the Facebook Profile picture. Once they are logged in you can pass their facebook Id to a value. (kUserFacebookIDKey) NSLog(@"Downloading user's profile picture"); // Download user's profile picture NSURL *profilePictureURL = [NSURL URLWithString:[NSString stringWithFormat:@"https://graph.facebook.com/%@/picture?type=large", self.kUserFacebookIDKey]; NSURLRequest *profilePictureURLRequest = [NSURLRequest requestWithURL:profilePictureURL cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:10.0f]; // Facebook profile picture cache policy: Expires in 2 weeks [NSURLCo

Categories : IOS

Why does XCode switch the profile from automatically selected one to the iOS Team Profile
After much nashing of teeth and hair pulling finally tracked down the cause of this, dont you just love xcode error msgs. Although the correct mobile provision was automatically selected in Debug line of the code signing section, the sub selection line "Any iOS SDK" had the team profile selected somehow. Changing this to match the automatic selection solved the problem.

Categories : Iphone

How to display profile friends' avatars of a specific profile user?
I suppose that fid in user_friends table is related to an user_accounts id select ua.avatars from user_friends uf inner join user_accounts ua on uf.fid = ua.id inner join pages p on p.uid = uf.uid where p.pid = <somepid> or probably clearer select ua.avatars from pages p inner join user_friends uf on uf.uid = p.uid inner join user_accounts ua on ua.id = uf.fid where p.pid = <somepid>

Categories : Mysql

XCode--When do I sign with developer provisioning profile vs distribution profile?
Failed to get task sounds like you're trying to run this build via Xcode on device. If that's the case, you want to use a development profile, not a distribution profile (AdHoc). If you're attempting to create an enterprise release build, you'll want to select your target and choose the iOS device option, then use Product > Archive to create a release build.

Categories : IOS

When to use low < high or low + 1 < high for loop invariant
If your invariant is that the target must lie in low <= i <= high, then you use while (low < high); if your invariant is that the target must lie in low <= i < high then you use while (low + 1 < high). [Thanks to David Eisenstat for confirming this.]

Categories : Algorithm

PHP profile update error with mysql_num_rows
Try with something like that : $email = mysql_real_escape_string($_POST['email']); $username = mysql_real_escape_string($_POST['username']); // You can also get it from the session or wherever you want $row = mysql_query("SELECT * FROM users WHERE email='$email'"); if(mysql_num_rows($row) > 0) { if ($username != $row["username"]) { echo "The e-mail is already in use."; } } It can be the username or any other information that identified the current user.

Categories : PHP

syntax error near unexpected token `fi' - High load Notification mail
I don't really get the same error than you but you can already test this solution: if [ `uptime | awk '{ print$11 }' | cut -d. -f1` -gt 1 ]; This condition try to compare a float with an integer. I would make this test with an extended test command. And you can forget semicolon if you don't put then keyword on the same line than your condition : if [[ `uptime | awk '{ print$11 }' | cut -d. -f1` > 1 ]] then mail -s "$SUBJECT" $TO < /tmp/load exit fi

Categories : Bash

Liberty Profile 8.5.5 WebAppSecurityCollaboratorImpl.isUserInRole error
Today, I faced the exact same problem you're describing here. I am using WebSphere Liberty Profile 8.5.5.1 with Eclipse Kepler. My project uses the Wicket framework, so in my web.xml I had the Wicket filter, like so: <filter> <filter-name>wicket.filter</filter-name> <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> <init-param> <param-name>applicationClassName</param-name> <param-value>my.wicket.Application</param-value> </init-param> <init-param> <param-name>configuration</param-name> <param-value>deployment</param-value> </init-param> </servlet> <filter-mapping> <filter-name>wicket.fi

Categories : Java

Provisioning Profile ERROR while running in iPad
you need to follow this step:- You Provisioning profile Generate with developer certificate from iTunes dev center. remove old install App from device may be you Ipad contain old profile reference. After connect your device to Xcode-Organizer->device->yuorIpad->Provisioning--check there old Provisioning profile is ther or not. if there then remove it. In your target And Project check-> your Identifier is currect or not for example com.yourprofile.yourId In Build setting you->code signing ->selection profile is correct identifier or not Now just clean your Project. Build and run. EDIT Do not forget to Adding New testing Device ID into your new Generate Provisioning profile. in iTunes Dev there is Column to adding Device and also asking Device while you Generate Provisioning profile. M

Categories : IOS

facebook profile image fetching error
You are trying to fetch the image on the UI thread. This is not compliant with android standards. You should use a Async task for example. Find info here: http://developer.android.com/reference/android/os/AsyncTask.html Or use this class: private class DownloadImageTask extends AsyncTask<String, Void, Bitmap> { ImageView bmImage; public DownloadImageTask(ImageView bmImage) { this.bmImage = bmImage; } protected Bitmap doInBackground(String... urls) { String urldisplay = urls[0]; Bitmap mIcon11 = null; try { InputStream in = new java.net.URL(urldisplay).openStream(); mIcon11 = BitmapFactory.decodeStream(in); } catch (Exception e) { Log.e("Error", e.getMessage()); e.printStackTrace(); } return mIcon11; } protected void on

Categories : Android

Maven - CDI error when deploying on Glassfish Web Profile
@rdcrng is right. This has nothing to do with maven. We are moving the application from Glassfish Full Profile to Web Profile and starting to use maven. So i found a JAX-WS 2.2 annotation in one of the injected dependencies. JAX-WS is not included in Glassfish 3.1.2.2 Web Profile as says here. I remove it and the build was deployed successfully.

Categories : Java

Selenium Webdriver error: "Can't load the profile"
It seems like Firefox 23 is not yet supported. Selenium 2.34 added support for Firefox 22, now there is 2.35 released, but there is nothing mentioned about FF23. So i suggest you downgrade your firefox to v22 or try the new 2.35 selenium library. https://github.com/SeleniumHQ/selenium/blob/master/py/CHANGES How it works on mac? - i don't know, are you sure you are running ff23 there?

Categories : Python

Error retrieving LinkedIn user's profile using ASP.NET MVC and OAuthWebSecurity
This is because the current MVC implementation uses oauth1 and the OAuth1 accessToken will not work for oath2 requests. It is very complicated and I struggle with it myself. You will have to write your own provider. See https://coderwall.com/p/rznlfg. But I need an OAuth2Client integrated implementation for MVC4. Can anybody help, please?

Categories : Asp Net Mvc

C# - Save profile ASP.NET giving 'Object reference not set' error
The line this.Profile.ProfileDetail might not be the one throwing the exception. Have you stepped into the code? It probably is on the lines with the .SelectedValue. It will throw null if there is no value selected.

Categories : C#

CreateRecurringPaymentsProfile Profile description is invalid Error: 11581
The desc variable has a character limit of 127. A shorter value should resolve the problem. If a field was missing you would get a field format error which tells you the variable that wasn't provided.

Categories : Paypal

Google Analytics API error 403: "User does not have permission to access profile"
Just to confirm -- in the original post, you said you added the email in "APIs console". But you actually need to add the email to your Google Analytics Profile using the Analytics web UI. Did you do that? This error occurs only if the user id you're making the request with is not on the analytics profile.

Categories : Google Analytics

db.setProfilingLevel(1, 10000) return error: "profile currently not supported via mongos"
Collection system.profile is not sharded, this is why you have to manually enable profiling on each of your shards(not from mongos). You also won't be able to query system.profile though mongos, you'll have to use mongo shell on each shard. UPD I found interesting post on this topic. You should try this solution.

Categories : Mongodb

Creating APN Development Profile Error, "Valid signing identity not found"
Create the provisioning profile using xCode organizer instead of iOS Dev Centre. Generate CSR using Keychain Access. You can specify any email address Create an APP ID at iOS Dev Center. Specify the certSigningRequest file created in step 1 Create the Provisioning Profile using xCode organizer Generate the PEM files

Categories : Misc

What is causing this Shibboleth error: SAML 2 SSO profile is not configured for relying party?
The real Identity Provider generally needs your metadata up front before you can begin accepting SSO sessions. The IdP will need to load your metadata, and optionally configure/release attributes to your Service Provider, which your SP may require to make an authorization decision. IdPs can accept requests from anonymous Service Providers, given it is configured appropriately. I don't believe the Shibboleth IdP is configured to accept anonymous requests by default. If the IdP administrator is open to accepting anonymous requests, there is more information on that configuration here: http://shibboleth.1660669.n2.nabble.com/Problem-configuring-and-IdP-to-support-anonymous-relying-parties-td6750775.html

Categories : Authentication

xcodebuild code sign error provisioning profile even though all profiles are in correct folder
Look for provision profile id in the profilename.mobileprovision file. Open the file and search for UUID to find this, it will be in XXX-XXX-XXXX format. Pass this as the value of PROVISIONING_PROFILE in xcodebuild command sudo xcodebuild -configuration Debug PROVISIONING_PROFILE=<Provisioning Profile Id>

Categories : IOS

how to retrieve facebook, twitter, and google profile images without error using paperclip in rails 3.2
The problem is that paperclip requires an image file and you are just passing an image url. I'd suggest having 2 different attributes: photo and remote_photo: If logging in with facebook, google and twitter, you would set the remote_photo attribute to the auth.info.image returned. If uploading a photo, you would use the photo attribute. However, if you want to download a person's facebook, google and twitter picture anyway, you can do this: user.photo = URI.parse(auth.info.image) if auth.info.image? This feature is kinda new so be sure that the version of Paperclip you are using is > 3.1.3.

Categories : Authentication

ffmpeg: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory
Fortunately, I stumbled across this similar question, and I was able to see that all I needed to do was look at the bin/release file from the buildpack I was using and make sure the correct PATH and LD_LIBRARY_PATH were set to match the config_vars in that file. I set them using the heroku config:set command. Apparently the config_vars are only taken from the apps first deploy. Anyway, hope this will save someone else some time down the road.

Categories : Python



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